public class TemplateKey extends java.lang.Object implements NumericKey, XMLizable
TemplateKey
is used to identify a Template and
contains object composition of storeKey, store name and its corresponding
numeric key.
XML Snippet for TemplateKey:
<TemplateKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <Name>All Promotions</Name> </TemplateKey>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
TemplateKey()
Constructor for TemplateKey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
getName()
Returns the name of template key.
|
java.lang.Number |
getNumericKey()
Returns the numeric key.
|
StoreKey |
getStoreKey()
Returns the storeKey associated with this template key.
|
int |
hashCode() |
boolean |
isNumericKeySet()
Checks to see if the numeric key is set or not.
|
void |
setName(java.lang.String aName)
Sets the name of template key.
|
void |
setStoreKey(StoreKey aStoreKey)
Sets the storeKey associated with this template key.
|
java.lang.String |
toString()
Give a String presentation of this Promotion Template Key.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public boolean isNumericKeySet()
NumericKey
isNumericKeySet
in interface NumericKey
NumericKey.isNumericKeySet()
public java.lang.Number getNumericKey()
NumericKey
getNumericKey
in interface NumericKey
NumericKey.getNumericKey()
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
anXMLNode
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)
public java.lang.String getName()
public StoreKey getStoreKey()
public void setName(java.lang.String aName)
aName
- The name of template key to set.public void setStoreKey(StoreKey aStoreKey)
aStoreKey
- The storeKey associated with this template key to set.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
java.lang.Object.hasCode()
public java.lang.String toString()
toString
in class java.lang.Object