Class EPPServerValData
java.lang.Object
com.verisign.epp.codec.serverval.v01.EPPServerValData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The Server Validation extension used in multiple responses. The create,
delete, renew, transfer, and update responses include the extension for
synchrononous validation. The info response includes the extension upon
request using the empty info command extension and in a poll message for
asynchronous server validation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPServerValExtension.EPPServerValData(EPPServerValValidation aValidation) Constructor forEPPServerValExtensionthat takes a single validation.EPPServerValData(List<EPPServerValValidation> aValidations) Constructor forEPPServerValExtensionwith a list of validations. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidation(EPPServerValValidation aValidation) Adds an validation to the list of validations.clone()clone anEPPCodecComponent.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPServerValExtensionwith this instance.Returns the XML namespace associated with theEPPCodecComponent.Gets the list of validations if defined.booleanAre the validations defined?voidsetValidations(List<EPPServerValValidation> aValidations) Sets the list of validations.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the "validationData" local name- See Also:
-
ELM_NAME
XML root tag forEPPServerValData.
-
-
Constructor Details
-
EPPServerValData
public EPPServerValData()Default constructor forEPPServerValExtension. -
EPPServerValData
Constructor forEPPServerValExtensionthat takes a single validation.- Parameters:
aValidation- A single validation
-
EPPServerValData
Constructor forEPPServerValExtensionwith a list of validations.- Parameters:
aValidations- A list of validations
-
-
Method Details
-
hasValidations
public boolean hasValidations()Are the validations defined?- Returns:
trueif the validations are defined;falseotherwise.
-
getValidations
Gets the list of validations if defined.- Returns:
- List of validations if defined; empty list otherwise.
-
addValidation
Adds an validation to the list of validations.- Parameters:
aValidation- The validation to add.
-
setValidations
Sets the list of validations.- Parameters:
aValidations- The validations 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 encodingEPPServerValExtension
-
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
EPPServerValExtension - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPServerValExtensionwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-