Class EPPRegistryZoneName
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryZoneName
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for theformattribute. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryZoneName(String aName) ConstructEPPRegistryZoneNamewith name using the default root label ofELM_ZONE_NAMEand the default form ofEPPRegistryZoneName.Form.aLabel.EPPRegistryZoneName(String aName, EPPRegistryZoneName.Form aForm) ConstructEPPRegistryZoneNamewith name and form using the default root label ofELM_ZONE_NAME. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryZone.voidDecode theEPPRegistryZoneattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryZoneinstance.booleanimplements a deepEPPRegistryZonecompare.getForm()Gets the form of the zone name.getName()Gets the name of the zone.Returns the XML namespace associated with theEPPCodecComponent.Gets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.voidsetForm(EPPRegistryZoneName.Form aForm) Sets the form of the zone name.voidSets the name of the zone.voidsetRootName(String aRootName) Sets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_ZONE_NAME
Default XML Element Name fornameattribute.- See Also:
-
ELM_ZONE
Optional XML Element Name ofnameattribute.- See Also:
-
ATTR_FORM
XML attribute name for theformattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryZoneName
public EPPRegistryZoneName()Default constructor. Attributes are set to:elmRootLocalName-ELM_ZONE_NAMEname- nullform-EPPRegistryZoneName.Form.aLabel
setName(String)before callingencode(Document) -
EPPRegistryZoneName
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
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 Details
-
encode
Encode 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
Decode 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
implements a deepEPPRegistryZonecompare. -
clone
CloneEPPRegistryZone.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryZone - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getRootName
Gets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.- Returns:
ELM_ZONE_NAMEorELM_ZONE
-
setRootName
Sets the root element local name, which should be eitherELM_ZONE_NAMEorELM_ZONE.- Parameters:
aRootName-ELM_ZONE_NAMEorELM_ZONE
-
getName
Gets the name of the zone.- Returns:
- fully qualified name of the zone object
-
setName
Sets the name of the zone.- Parameters:
aName- fully qualified name of the zone object
-
getForm
Gets the form of the zone name.- Returns:
- Form of the zone name with the default of
EPPRegistryZoneName.Form.aLabel.
-
setForm
Sets the form of the zone name.- Parameters:
aForm- Form of the zone name.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-