Package org.apache.uima.util
Class NameClassPair
java.lang.Object
org.apache.uima.util.NameClassPair
- All Implemented Interfaces:
- Serializable
A class that stores the name of an attribute and the Class of that attribute's value.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionNameClassPair(String aName, String aClassName) Creates a newNameClassPairwith the specified name and class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDetermines if two NameClassPairs are equal.Gets the class name of the attribute's value.getName()Gets the name of the attribute.inthashCode()Gets the hash code for this object.toString()Gets string representation of this object; useful for debugging.
- 
Constructor Details- 
NameClassPairCreates a newNameClassPairwith the specified name and class.- Parameters:
- aName- the name of an attribute
- aClassName- the name of the class of that attribute's value
 
 
- 
- 
Method Details- 
getNameGets the name of the attribute.- Returns:
- the name
 
- 
getClassNameGets the class name of the attribute's value.- Returns:
- the class name
 
- 
equalsDetermines if two NameClassPairs are equal. Two NameClassPairs are equal if both their Name and ClassName properties are equal.
- 
hashCodepublic int hashCode()Gets the hash code for this object. The hash codes of two NameClassPairsxandymust be equal ifx.equals(y)returns true;
- 
toStringGets string representation of this object; useful for debugging.
 
-