|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.allocationtoken.EPPAllocationToken
public class EPPAllocationToken
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.
Field Summary | |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for EPPAllocationToken . |
static java.lang.String |
ELM_NAME
XML root tag for EPPAllocationToken . |
Constructor Summary | |
---|---|
EPPAllocationToken()
O Default constructor for EPPAllocationToken . |
|
EPPAllocationToken(java.lang.String aToken)
Constructor for EPPAllocationToken that takes the token. |
Method Summary | |
---|---|
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 |
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 . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_LOCALNAME
EPPAllocationToken
.
public static final java.lang.String ELM_NAME
EPPAllocationToken
.
Constructor Detail |
---|
public EPPAllocationToken()
EPPAllocationToken
.
public EPPAllocationToken(java.lang.String aToken)
EPPAllocationToken
that takes the token.
aToken
- Sub-product identifierMethod Detail |
---|
public 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 EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factory
EPPEncodeException
- Error encoding EPPAllocationToken
public 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 EPPCodecComponent
aElement
- Element
to decode
EPPDecodeException
- Error decoding Element
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPAllocationToken
java.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.Object
String
if successful;
ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPAllocationToken
with this
instance.
equals
in class java.lang.Object
aObject
- Object to compare with.
true
if equal; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |