Package org.apache.uima.util
Class NameClassPair
- java.lang.Object
-
- org.apache.uima.util.NameClassPair
-
- All Implemented Interfaces:
java.io.Serializable
public class NameClassPair extends java.lang.Object implements java.io.Serializable
A class that stores the name of an attribute and the Class of that attribute's value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
mClassName
A class nameprivate java.lang.String
mName
A nameprivate static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description NameClassPair(java.lang.String aName, java.lang.String aClassName)
Creates a newNameClassPair
with the specified name and class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object aObj)
Determines if two NameClassPairs are equal.java.lang.String
getClassName()
Gets the class name of the attribute's value.java.lang.String
getName()
Gets the name of the attribute.int
hashCode()
Gets the hash code for this object.java.lang.String
toString()
Gets string representation of this object; useful for debugging.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
mName
private java.lang.String mName
A name
-
mClassName
private java.lang.String mClassName
A class name
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the attribute.- Returns:
- the name
-
getClassName
public java.lang.String getClassName()
Gets the class name of the attribute's value.- Returns:
- the class name
-
equals
public boolean equals(java.lang.Object aObj)
Determines if two NameClassPairs are equal. Two NameClassPairs are equal if both their Name and ClassName properties are equal.- Overrides:
equals
in classjava.lang.Object
- Returns:
- the class name
-
hashCode
public int hashCode()
Gets the hash code for this object. The hash codes of two NameClassPairsx
andy
must be equal ifx.equals(y)
returns true;- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code for this object
-
toString
public java.lang.String toString()
Gets string representation of this object; useful for debugging.- Overrides:
toString
in classjava.lang.Object
- Returns:
- string representation of this object
-
-