/*
 * Copyright 2009-2011 Collaborative Research Centre SFB 632 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package annis.dao;

import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
import java.util.Properties;


@SuppressWarnings("serial")
public class Match extends ArrayList<Long>
{
  
  private long toplevelCorpusId;
  private HashMap<Long, Properties> corpusConfiguration;
  
  public Match()
  {
    corpusConfiguration = new HashMap<Long, Properties>();
  }

  public Match(List<Long> nodes)
  {
    corpusConfiguration = new HashMap<Long, Properties>();
    addAll(nodes);
  }

  public long getToplevelCorpusId()
  {
    return toplevelCorpusId;
  }

  public void setToplevelCorpusId(long toplevelCorpusId)
  {
    this.toplevelCorpusId = toplevelCorpusId;
  }

  public HashMap<Long, Properties> getCorpusConfiguration()
  {
    return corpusConfiguration;
  }

  public void setCorpusConfiguration(HashMap<Long, Properties> corpusConfiguration)
  {
    this.corpusConfiguration = corpusConfiguration;
  }
  
}

@@ -705,52 +705,45 @@
 java
-.util.HashMap;%0Aimport java.util.Properties;%0A
+x.xml.bind.annotation.XmlRootElement;
 %0A%0A@S
@@ -768,16 +768,32 @@
 erial%22)%0A
+@XmlRootElement%0A
 public c
@@ -829,18 +829,16 @@
 Long%3E%0A%7B%0A
-  
 %0A  priva
@@ -867,705 +867,279 @@
 Id;%0A
-  private HashMap%3CLong, Properties%3E corpusConfiguration;%0A  %0A  public Match()%0A  %7B%0A    corpusConfiguration = new HashMap%3CLong, Properties%3E();%0A  %7D%0A%0A  public Match(List%3CLong%3E nodes)%0A  %7B%0A    corpusConfiguration = new HashMap%3CLong, Properties%3E();%0A    addAll(nodes);%0A  %7D%0A%0A  public long getToplevelCorpusId()%0A  %7B%0A    return toplevelCorpusId;%0A  %7D%0A%0A  public void setToplevelCorpusId(long toplevelCorpusId)%0A  %7B%0A    this.toplevelCorpusId = toplevelCorpusId;%0A  %7D%0A%0A  public HashMap%3CLong, Properties%3E getCorpusConfiguration()%0A  %7B%0A    return corpusConfiguration;%0A  %7D%0A%0A  public void setCorpusConfiguration(HashMap%3CLong, Properties%3E corpusConfiguration)%0A  %7B%0A    this.corpusConfiguration = corpusConfiguration;%0A  %7D%0A  
+%0A  public Match()%0A  %7B%0A  %7D%0A%0A  public Match(List%3CLong%3E nodes)%0A  %7B%0A    addAll(nodes);%0A  %7D%0A%0A  public long getToplevelCorpusId()%0A  %7B%0A    return toplevelCorpusId;%0A  %7D%0A%0A  public void setToplevelCorpusId(long toplevelCorpusId)%0A  %7B%0A    this.toplevelCorpusId = toplevelCorpusId;%0A  %7D
 %0A%7D%0A

Add mapping to xml for Match class and delete getters and setters for corpus configuraton.