Class EPPAllocationToken
java.lang.Object
com.verisign.epp.codec.allocationtoken.EPPAllocationToken
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Allocation Token Extension, defines an allocation token or code for
allocating an object like a domain name to the client. The allocation token
MAY be transferred out-of-band to a client to give them authorization to
allocate an object using one of the EPP transform commands including create,
update, and transfer.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionO Default constructor forEPPAllocationToken.EPPAllocationToken(String aToken) Constructor forEPPAllocationTokenthat takes the token. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPAllocationTokenwith this instance.Returns the XML namespace associated with theEPPCodecComponent.getToken()Gets the allocation token value.booleanhasToken()Is the token defined?voidSets the allocation token value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPAllocationToken.- See Also:
-
ELM_NAME
XML root tag forEPPAllocationToken.- See Also:
-
-
Constructor Details
-
EPPAllocationToken
public EPPAllocationToken()O Default constructor forEPPAllocationToken. -
EPPAllocationToken
Constructor forEPPAllocationTokenthat takes the token.- Parameters:
aToken- Sub-product identifier
-
-
Method Details
-
hasToken
public boolean hasToken()Is the token defined?- Returns:
trueif the token is defined;falseotherwise.
-
getToken
Gets the allocation token value.- Returns:
- Allocation token value if defined;
nullotherwise.
-
setToken
Sets the allocation token value.- Parameters:
aToken- Allocation token
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPAllocationToken
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPAllocationToken - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPAllocationTokenwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-