public class EPPAllocationToken extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPAllocationToken. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPAllocationToken. |
| Constructor and Description |
|---|
EPPAllocationToken()
O Default constructor for
EPPAllocationToken. |
EPPAllocationToken(java.lang.String aToken)
Constructor for
EPPAllocationToken that takes the token. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
clone an
EPPCodecComponent. |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPAllocationToken with this
instance. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getToken()
Gets the allocation token value.
|
boolean |
hasToken()
Is the token defined?
|
void |
setToken(java.lang.String aToken)
Sets the allocation token value.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPAllocationToken.public static final java.lang.String ELM_NAME
EPPAllocationToken.public EPPAllocationToken()
EPPAllocationToken.public EPPAllocationToken(java.lang.String aToken)
EPPAllocationToken that takes the token.aToken - Sub-product identifierpublic boolean hasToken()
true if the token is defined; false
otherwise.public java.lang.String getToken()
null otherwise.public void setToken(java.lang.String aToken)
aToken - Allocation tokenpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - DOM Document, which acts is an Element factoryEPPEncodeException - Error encoding EPPAllocationTokenpublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
aElement argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values.decode in interface EPPCodecComponentaElement - Element to decodeEPPDecodeException - Error decoding Elementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponent.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPAllocationTokenjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public boolean equals(java.lang.Object aObject)
EPPAllocationToken with this
instance.equals in class java.lang.ObjectaObject - Object to compare with.true if equal; false otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.