public class PTDBGenericAttribute
extends java.lang.Object
Constructor and Description |
---|
PTDBGenericAttribute(java.lang.String attributeName)
Construct the PTDBGenericAttribute class.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.String newValue)
Add more value for OR relationship to this attribute.
|
boolean |
equals(java.lang.Object attribute)
Check whether the given attribute equals to this attribute.
|
java.lang.String |
getAttributeName()
Get the name of this attribute.
|
java.lang.String |
getClassName()
Get the class name of this attribute.
|
java.util.ArrayList<java.lang.String> |
getValues()
Get the values of this attribute.
|
int |
hashCode()
Calculate the hash code for this PTDBGenericAttribute instance.
|
void |
setAttributeName(java.lang.String attributeName)
Set the name of the attribute.
|
void |
setClassName(java.lang.String className)
Set the class name of this attribute.
|
void |
setValues(java.util.ArrayList<java.lang.String> values)
Set the values of the attribute.
|
java.lang.String |
toString()
Return the String representation of this attribute.
|
public PTDBGenericAttribute(java.lang.String attributeName)
attributeName
- The name of the attribute.public void addValue(java.lang.String newValue)
newValue
- The new value to be added.public java.lang.String getAttributeName()
setAttributeName(String)
public java.lang.String getClassName()
setClassName(String)
public java.util.ArrayList<java.lang.String> getValues()
setValues(ArrayList)
public void setAttributeName(java.lang.String attributeName)
attributeName
- The name to be set for the attribute.getAttributeName()
public void setClassName(java.lang.String className)
className
- The class name to be set for this attribute.getClassName()
public void setValues(java.util.ArrayList<java.lang.String> values)
values
- The values to be set for the attribute.getValues()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object attribute)
equals
in class java.lang.Object
attribute
- The given attribute to be checked.public int hashCode()
hashCode
in class java.lang.Object