public class CustomerProfileKey extends java.lang.Object implements NumericKey, XMLizable
XML Snippet for CustomerProfileKey:
<CustomerProfileKey> <OwnerDN>ou=b2c,o=seller organization,o=root organization</OwnerDN> <ProfileName>A Profile Name</ProfileName> </CustomerProfileKey>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CustomerProfileKey()
Default Constructor for CustomerProfileKey.
|
CustomerProfileKey(java.lang.String aOwnerDN,
java.lang.String aProfileName)
Constructor for CustomerProfileKey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this CustomerProfile key equals to another CustomerProfile key.
|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
getName()
Returns the name of the customer profile key.
|
java.lang.Number |
getNumericKey()
Returns the numericKey of the CustomerProfile key.
|
java.lang.String |
getOwnerDN()
Returns the owner DN.
|
int |
hashCode()
Returns the hashcode of the CustomerProfile key.
|
boolean |
isNumericKeySet()
Checks if numericKey is set or not.
|
void |
setName(java.lang.String aName)
Sets the Name.
|
void |
setNumericKey(java.lang.Number aNumericKey)
Sets the numericKey for the customer profile key.
|
void |
setOwnerDN(java.lang.String aOwnerDN)
Sets the owner DN.
|
java.lang.String |
toString()
Gives a String presentation of this CustomerProfile Key.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public CustomerProfileKey(java.lang.String aOwnerDN, java.lang.String aProfileName)
aOwnerDN
- DN of the profile owner.aProfileName
- The name of the profilepublic CustomerProfileKey()
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
- java.lang.Object
is another CustomerProfile key.true
if 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
- The numericKey to set for the customer profile 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 java.lang.String getOwnerDN()
public void setOwnerDN(java.lang.String aOwnerDN)
aOwnerDN
- The owner DN to set.public void setName(java.lang.String aName)
aName
- The Name to set.