public class CatalogEntryKey extends java.lang.Object implements XMLizable, NumericKey
XML Snippet for CatalogEntryKey:
<CatalogEntryKey>
<SKU>FULO-01</SKU>
<DN>ou=b2c,o=seller organization,o=root organization</DN>
</CatalogEntryKey>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
| Constructor and Description |
|---|
CatalogEntryKey()
Default Constructor for CatalogEntryKey.
|
CatalogEntryKey(java.lang.String aDN,
java.lang.String aSKU)
Constructor for CatalogEntryKey.
|
CatalogEntryKey(java.lang.String aDN,
java.lang.String aSKU,
StoreKey aStore)
Constructor for CatalogEntryKey.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this CatalogEntry key equals to another CatalogEntry key.
|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
getDN()
Returns the DN of the catalog entry key.
|
java.lang.Number |
getNumericKey()
Returns the numeric key associated with catalog entry key.
|
java.lang.String |
getSKU()
Returns the SKU of the catalog entry key.
|
StoreKey |
getStore()
Returns the store key associated with the catalog entry key.
|
int |
hashCode()
Returns the hashcode of the CatalogEntry key.
|
boolean |
isNumericKeySet()
Checks if numericKey is set or not.
|
void |
setDN(java.lang.String aDN)
Sets the
DN of key. |
void |
setNumericKey(java.lang.Number aNumericKey)
Sets the numericKey for the catalog entry key.
|
void |
setSKU(java.lang.String aSKU)
Sets the
SKU of the key. |
void |
setStore(StoreKey sKey)
Sets the StoreKey associated with the catalog entry key.
|
java.lang.String |
toString()
Gives a String presentation of this CatalogEntry Key.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public CatalogEntryKey()
public CatalogEntryKey(java.lang.String aDN,
java.lang.String aSKU)
aDN - is a string of DN.aSKU - is a string representing SKU of the catalog entry key.public CatalogEntryKey(java.lang.String aDN,
java.lang.String aSKU,
StoreKey aStore)
aDN - is a string of DN.aSKU - is a string representing SKU.aStore - is the key of the store which owns the catalog entry key.public java.lang.String getDN()
public java.lang.String getSKU()
public StoreKey getStore()
StoreKey the store key associated with the catalog entry key.public void fromXML(org.w3c.dom.Node node)
throws DeXMLizationException
XMLizablefromXML in interface XMLizablenode - The node that represents an XMLizable objectDeXMLizationException - when this process failsXMLizable.fromXML(Node)public java.lang.String toXML()
throws XMLizationException
XMLizabletoXML in interface XMLizableXMLizationException - when this process failsXMLizable.toXML()public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object is another catalog entry.true if keys are equal;
false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Number getNumericKey()
getNumericKey in interface NumericKeypublic boolean isNumericKeySet()
isNumericKeySet in interface NumericKeytrue if key is set;
false otherwise.public void setNumericKey(java.lang.Number aNumericKey)
aNumericKey - The numericKey to setpublic void setStore(StoreKey sKey)
sKey - is a store key associated with the catalog entry key.public void setDN(java.lang.String aDN)
DN of key.aDN - The DN to set.public void setSKU(java.lang.String aSKU)
SKU of the key.aSKU - The SKU to set.