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>categoriesprotected String[]srcIdsprotected List<MatchedItemTargetStored>targetsprotected String[]tokIdsstatic StringXML_ATTRIBUTE_SOURCE_IDsstatic StringXML_ELEMENT_CATEGORYstatic StringXML_ELEMENT_TARGETstatic StringXML_NAME
-
Method Summary
Modifier and Type Method Description LinkedHashMap<String,String>getCategoriesExtraAttributes(String categoryName)Set<String>getCategoriesNames()StringgetCategoryValue(String categoryName)String[]getOriginCorpusTokenIds()LinkedHashMap<String,String>getTargetExtraAttributes(String targetName)Set<String>getTargetNames()StringgetTargetValue(String targetName)StringtoString()
-
-
-
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:
getOriginCorpusTokenIdsin interfaceMatchedItem
-
getTargetNames
public Set<String> getTargetNames()
- Specified by:
getTargetNamesin interfaceMatchedItem
-
getTargetValue
public String getTargetValue(String targetName)
- Specified by:
getTargetValuein interfaceMatchedItem
-
getCategoriesNames
public Set<String> getCategoriesNames()
- Specified by:
getCategoriesNamesin interfaceMatchedItem
-
getCategoryValue
public String getCategoryValue(String categoryName)
- Specified by:
getCategoryValuein interfaceMatchedItem
-
getCategoriesExtraAttributes
public LinkedHashMap<String,String> getCategoriesExtraAttributes(String categoryName)
- Specified by:
getCategoriesExtraAttributesin interfaceMatchedItem
-
getTargetExtraAttributes
public LinkedHashMap<String,String> getTargetExtraAttributes(String targetName)
- Specified by:
getTargetExtraAttributesin interfaceMatchedItem
-
-