Class ConfigurableFeature
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.utils.ConfigurableFeature
-
public class ConfigurableFeature extends java.lang.Object
The Class ConfigurableFeature.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList
attributeList
The attribute list.private ValuePair
value
The 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 void
addAttribute(ValuePair value)
Adds the attribute.void
addAttributes(java.util.ArrayList attList)
Adds the attributes.int
attributeListSize()
Attribute list size.java.lang.String
getNewAttributeValue(int index)
Gets the new attribute value.java.lang.String
getNewAttributeValue(java.lang.String key)
Gets the new attribute value.java.lang.String
getNewFeatureName()
Gets the new feature name.java.lang.String
getOldAttributeValue(int index)
Gets the old attribute value.java.lang.String
getOldAttributeValue(java.lang.String key)
Gets the old attribute value.java.lang.String
getOldFeatureName()
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
-
-