Class ConfigurableFeature
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.utils.ConfigurableFeature
-
public class ConfigurableFeature extends java.lang.ObjectThe Class ConfigurableFeature.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayListattributeListThe attribute list.private ValuePairvalueThe value.
-
Constructor Summary
Constructors Constructor Description ConfigurableFeature(java.lang.String oldV, java.lang.String newV)Instantiates a new configurable feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(ValuePair value)Adds the attribute.voidaddAttributes(java.util.ArrayList attList)Adds the attributes.intattributeListSize()Attribute list size.java.lang.StringgetNewAttributeValue(int index)Gets the new attribute value.java.lang.StringgetNewAttributeValue(java.lang.String key)Gets the new attribute value.java.lang.StringgetNewFeatureName()Gets the new feature name.java.lang.StringgetOldAttributeValue(int index)Gets the old attribute value.java.lang.StringgetOldAttributeValue(java.lang.String key)Gets the old attribute value.java.lang.StringgetOldFeatureName()Gets the old feature name.
-
-
-
Field Detail
-
value
private ValuePair value
The value.
-
attributeList
private java.util.ArrayList attributeList
The attribute list.
-
-
Method Detail
-
getOldFeatureName
public java.lang.String getOldFeatureName()
Gets the old feature name.- Returns:
- the old feature name
-
getNewFeatureName
public java.lang.String getNewFeatureName()
Gets the new feature name.- Returns:
- the new feature name
-
addAttribute
public void addAttribute(ValuePair value)
Adds the attribute.- Parameters:
value- the value
-
addAttributes
public void addAttributes(java.util.ArrayList attList)
Adds the attributes.- Parameters:
attList- the att list
-
getOldAttributeValue
public java.lang.String getOldAttributeValue(int index)
Gets the old attribute value.- Parameters:
index- the index- Returns:
- the old attribute value
-
getOldAttributeValue
public java.lang.String getOldAttributeValue(java.lang.String key)
Gets the old attribute value.- Parameters:
key- the key- Returns:
- the old attribute value
-
getNewAttributeValue
public java.lang.String getNewAttributeValue(int index)
Gets the new attribute value.- Parameters:
index- the index- Returns:
- the new attribute value
-
getNewAttributeValue
public java.lang.String getNewAttributeValue(java.lang.String key)
Gets the new attribute value.- Parameters:
key- the key- Returns:
- the new attribute value
-
attributeListSize
public int attributeListSize()
Attribute list size.- Returns:
- the int
-
-