Class EPPRegistryZoneName
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryZoneName
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryZoneName extends java.lang.Object implements EPPCodecComponent
The zone name is an element that includes an optional "form" attribute that defines the form of the zone name as either "aLabel" or "uLabel", with the default value of "aLabel". The "aLabel" form of a zone name contains all ASCII name labels that conform to [RFC0952] and [RFC1123]. The "uLabel" form of a zone name that includes one or more non-ASCII name labels that can be represented as ASCII labels using [RFC5890].- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPRegistryZoneName.FormPossible values for theformattribute.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_FORMXML attribute name for theformattribute.static java.lang.StringELM_ZONEOptional XML Element Name ofnameattribute.static java.lang.StringELM_ZONE_NAMEDefault XML Element Name fornameattribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistryZoneName()Default constructor.EPPRegistryZoneName(java.lang.String aName)ConstructEPPRegistryZoneNamewith name using the default root label ofELM_ZONE_NAMEand the default form ofEPPRegistryZoneName.Form.aLabel.EPPRegistryZoneName(java.lang.String aName, EPPRegistryZoneName.Form aForm)ConstructEPPRegistryZoneNamewith name and form using the default root label ofELM_ZONE_NAME.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryZone.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryZoneattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryZoneinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryZonecompare.EPPRegistryZoneName.FormgetForm()Gets the form of the zone name.java.lang.StringgetName()Gets the name of the zone.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRootName()Gets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.voidsetForm(EPPRegistryZoneName.Form aForm)Sets the form of the zone name.voidsetName(java.lang.String aName)Sets the name of the zone.voidsetRootName(java.lang.String aRootName)Sets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_ZONE_NAME
public static final java.lang.String ELM_ZONE_NAME
Default XML Element Name fornameattribute.- See Also:
- Constant Field Values
-
ELM_ZONE
public static final java.lang.String ELM_ZONE
Optional XML Element Name ofnameattribute.- See Also:
- Constant Field Values
-
ATTR_FORM
public static final java.lang.String ATTR_FORM
XML attribute name for theformattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryZoneName
public EPPRegistryZoneName()
Default constructor. Attributes are set to:elmRootLocalName-ELM_ZONE_NAMEname- nullform-EPPRegistryZoneName.Form.aLabel
setName(String)before callingencode(Document)
-
EPPRegistryZoneName
public EPPRegistryZoneName(java.lang.String aName)
ConstructEPPRegistryZoneNamewith name using the default root label ofELM_ZONE_NAMEand the default form ofEPPRegistryZoneName.Form.aLabel.- Parameters:
aName- fully qualified name of zone object
-
EPPRegistryZoneName
public EPPRegistryZoneName(java.lang.String aName, EPPRegistryZoneName.Form aForm)ConstructEPPRegistryZoneNamewith name and form using the default root label ofELM_ZONE_NAME.- Parameters:
aName- fully qualified name of zone objectaForm- The form of the zone name as eitherEPPRegistryZoneName.Form.aLabelorEPPRegistryZoneName.Form.uLabel,
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryZoneinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryZoneinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryZoneinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryZoneattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryZonefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryZonecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryZoneinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryZone.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryZone - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getRootName
public java.lang.String getRootName()
Gets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.- Returns:
ELM_ZONE_NAMEorELM_ZONE
-
setRootName
public void setRootName(java.lang.String aRootName)
Sets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.- Parameters:
aRootName-ELM_ZONE_NAMEorELM_ZONE
-
getName
public java.lang.String getName()
Gets the name of the zone.- Returns:
- fully qualified name of the zone object
-
setName
public void setName(java.lang.String aName)
Sets the name of the zone.- Parameters:
aName- fully qualified name of the zone object
-
getForm
public EPPRegistryZoneName.Form getForm()
Gets the form of the zone name.- Returns:
- Form of the zone name with the default of
EPPRegistryZoneName.Form.aLabel.
-
setForm
public void setForm(EPPRegistryZoneName.Form aForm)
Sets the form of the zone name.- Parameters:
aForm- Form of the zone name.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-