public class CategoryKey extends java.lang.Object implements XMLizable, NumericKey
XML Snippet of CategoryKey:
<CategoryKey> <DN>ou=b2c,o=seller organization,o=root organization</DN> <Name>Furniture</Name> </CategoryKey>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CategoryKey()
Default Constructor for CategoryKey.
|
CategoryKey(java.lang.String aDN,
java.lang.String aName)
Constructor for CategoryKey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this Category key equals to another Category key.
|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
getDN()
Returns the DN associated with category key.
|
java.lang.String |
getName()
Returns the name associated with category key.
|
java.lang.Number |
getNumericKey()
Returns the numeric key of the category key.
|
int |
hashCode()
Returns the hashcode of the Category key.
|
boolean |
isNumericKeySet()
Checks if numericKey is set or not.
|
void |
setDN(java.lang.String aDN)
Sets the
DN of key. |
void |
setName(java.lang.String aName)
Sets the
Name of the key. |
void |
setNumericKey(java.lang.Number aNumericKey)
Sets the numeric key of the category key.
|
java.lang.String |
toString()
Give a String representation of this CategoryKey.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public CategoryKey()
public CategoryKey(java.lang.String aDN, java.lang.String aName)
aDN
- java.lang.String of DNaName
- java.lang.String of category key namepublic java.lang.String getDN()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object
of category keytrue
if both category keys are equal;
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Number getNumericKey()
getNumericKey
in interface NumericKey
public boolean isNumericKeySet()
isNumericKeySet
in interface NumericKey
true
if key is set;
false
otherwise.public void setNumericKey(java.lang.Number aNumericKey)
aNumericKey
- is to set numeric key of the category key.public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
node
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void setDN(java.lang.String aDN)
DN
of key.aDN
- The DN to set.public void setName(java.lang.String aName)
Name
of the key.aName
- The Name to set.