Package com.verisign.epp.codec.registry
Class EPPRegistryMinMaxLength
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPRegistryContactCity,EPPRegistryContactName,EPPRegistryContactOrg,EPPRegistryContactPostalCode,EPPRegistryContactStateProvince,EPPRegistryContactStreet,EPPRegistryExternalHost,EPPRegistryInternalHost
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPRegistryMinMaxLength(int min, int max) EPPRegistryMinMaxLength(Integer min, Integer max) EPPRegistryMinMaxLength(String rootName, int min, int max) EPPRegistryMinMaxLength(String rootName, Integer min, Integer max) -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleangetMax()getMin()Returns the XML namespace associated with theEPPCodecComponent.voidvoidvoidvoidvoidsetRootName(String aRootName) toString()protected void
-
Field Details
-
ELM_MIN
- See Also:
-
ELM_MAX
- See Also:
-
ELM_MIN_LENGTH
- See Also:
-
ELM_MAX_LENGTH
- See Also:
-
elmMin
-
elmMax
-
min
-
max
-
rootName
-
-
Constructor Details
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength() -
EPPRegistryMinMaxLength
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(int min, int max) -
EPPRegistryMinMaxLength
-
EPPRegistryMinMaxLength
-
-
Method Details
-
encode
Description copied from interface:EPPCodecComponentencode 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.
For example, the <command> element ofEPPCommandis created and is used to append the attribute nodes ofEPPCommand.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM document used as a factory of DOM objects.- Returns:
- instance root DOM element along with attribute child nodes.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
validateState
- Throws:
EPPEncodeException
-
decode
Description copied from interface:EPPCodecComponentdecode 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.
For example, the <command> element ofEPPCommandis passed intodecodeof EPPCommand to be decoded and used to set the instance attributes.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root DOM element associated with instance- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
clone
Description copied from interface:EPPCodecComponentclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPCodecComponent - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
-
toString
-
getMin
-
setMin
-
getMax
-
setMax
-
getRootName
-
setRootName
-
getElmMin
-
setElmMin
-
getElmMax
-
setElmMax
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-