Package eu.clarin.weblicht.wlfxb.tc.xb
Class MatchedItemStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.MatchedItemStored
-
- All Implemented Interfaces:
MatchedItem
public class MatchedItemStored extends Object implements MatchedItem
- Author:
- Yana Panchenko
-
-
Field Summary
Fields Modifier and Type Field Description protected List<MatchedItemCategoryStored>
categories
protected String[]
srcIds
protected List<MatchedItemTargetStored>
targets
protected String[]
tokIds
static String
XML_ATTRIBUTE_SOURCE_IDs
static String
XML_ELEMENT_CATEGORY
static String
XML_ELEMENT_TARGET
static String
XML_NAME
-
Method Summary
Modifier and Type Method Description LinkedHashMap<String,String>
getCategoriesExtraAttributes(String categoryName)
Set<String>
getCategoriesNames()
String
getCategoryValue(String categoryName)
String[]
getOriginCorpusTokenIds()
LinkedHashMap<String,String>
getTargetExtraAttributes(String targetName)
Set<String>
getTargetNames()
String
getTargetValue(String targetName)
String
toString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
XML_ATTRIBUTE_SOURCE_IDs
public static final String XML_ATTRIBUTE_SOURCE_IDs
- See Also:
- Constant Field Values
-
XML_ELEMENT_TARGET
public static final String XML_ELEMENT_TARGET
- See Also:
- Constant Field Values
-
XML_ELEMENT_CATEGORY
public static final String XML_ELEMENT_CATEGORY
- See Also:
- Constant Field Values
-
tokIds
protected String[] tokIds
-
srcIds
protected String[] srcIds
-
targets
protected List<MatchedItemTargetStored> targets
-
categories
protected List<MatchedItemCategoryStored> categories
-
-
Method Detail
-
getOriginCorpusTokenIds
public String[] getOriginCorpusTokenIds()
- Specified by:
getOriginCorpusTokenIds
in interfaceMatchedItem
-
getTargetNames
public Set<String> getTargetNames()
- Specified by:
getTargetNames
in interfaceMatchedItem
-
getTargetValue
public String getTargetValue(String targetName)
- Specified by:
getTargetValue
in interfaceMatchedItem
-
getCategoriesNames
public Set<String> getCategoriesNames()
- Specified by:
getCategoriesNames
in interfaceMatchedItem
-
getCategoryValue
public String getCategoryValue(String categoryName)
- Specified by:
getCategoryValue
in interfaceMatchedItem
-
getCategoriesExtraAttributes
public LinkedHashMap<String,String> getCategoriesExtraAttributes(String categoryName)
- Specified by:
getCategoriesExtraAttributes
in interfaceMatchedItem
-
getTargetExtraAttributes
public LinkedHashMap<String,String> getTargetExtraAttributes(String targetName)
- Specified by:
getTargetExtraAttributes
in interfaceMatchedItem
-
-