Class EPPStatusSetAuthTokenList
java.lang.Object
com.verisign.epp.codec.statusset.v02.EPPStatusSetAuthTokenList
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPStatusSetCreate,EPPStatusSetDelete,EPPStatusSetInfo,EPPStatusSetRenew,EPPStatusSetTransfer,EPPStatusSetUpdate
Abstract base class for the Status Set extensions, which accept a list of
EPPAuthTokenData objects.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPStatusSetExtension.EPPStatusSetAuthTokenList(EPPAuthTokenData aAuthToken) Constructor forEPPStatusSetExtensionthat takes a single authentication token.EPPStatusSetAuthTokenList(List<EPPAuthTokenData> aAuthTokens) Constructor forEPPStatusSetExtensionwith a list of authentication tokens. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthToken(EPPAuthTokenData aAuthToken) Adds an authentication token to the list of authentication tokens.clone()clone anEPPCodecComponent.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPStatusSetExtensionwith this instance.Gets the list of authentication tokens if defined.protected abstract StringAbstract method that the sub-class must define to return the local name for the root element.booleanAre the authentication tokens defined?voidsetAuthTokens(List<EPPAuthTokenData> aAuthTokens) Sets the list of authentication tokens.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.verisign.epp.codec.gen.EPPCodecComponent
getNamespace
-
Constructor Details
-
EPPStatusSetAuthTokenList
public EPPStatusSetAuthTokenList()Default constructor forEPPStatusSetExtension. -
EPPStatusSetAuthTokenList
Constructor forEPPStatusSetExtensionthat takes a single authentication token.- Parameters:
aAuthToken- A single authentication token
-
EPPStatusSetAuthTokenList
Constructor forEPPStatusSetExtensionwith a list of authentication tokens.- Parameters:
aAuthTokens- A list of authentication tokens
-
-
Method Details
-
getLocalName
Abstract method that the sub-class must define to return the local name for the root element.- Returns:
- Local name of the root element of the extensions.
-
hasAuthTokens
public boolean hasAuthTokens()Are the authentication tokens defined?- Returns:
trueif the authentication tokens are defined;falseotherwise.
-
getAuthTokens
Gets the list of authentication tokens if defined.- Returns:
- List of authentication tokens if defined; empty list otherwise.
- Throws:
EPPDecodeException
-
addAuthToken
Adds an authentication token to the list of authentication tokens.- Parameters:
aAuthToken- The authentication token to add.
-
setAuthTokens
Sets the list of authentication tokens.- Parameters:
aAuthTokens- The authentication tokens to set.
-
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 encodingEPPStatusSetExtension
-
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
EPPStatusSetExtension - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPStatusSetExtensionwith this instance.
-