Class EPPRegistryZoneData
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryZoneData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryZoneData extends java.lang.Object implements EPPCodecComponent
EPPRegistryZoneDatacontains theEPPRegistryZonefor use in theEPPRegistryInfoRespto include theaccessibleboolean attribute. Theaccessibleboolean attribute is only applicable in the info response.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_ACCESSIBLEXML attribute name for theaccessibleattribute.static java.lang.StringELM_NAMEXML root tag forEPPRegistryZoneData.
-
Constructor Summary
Constructors Constructor Description EPPRegistryZoneData()Default constructor forEPPRegistryZoneData.EPPRegistryZoneData(EPPRegistryZone aZone, boolean aAccessible)Default constructor forEPPRegistryZoneData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryZoneData.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryZoneDataattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryZoneDatainstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryZoneDatacompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistryZonegetZone()Gets the contained zone informationbooleanisAccessible()Is the zone accessible to the client?voidsetAccessible(boolean aAccessible)Sets if the zone is access to the client.voidsetZone(EPPRegistryZone aZone)Sets the contained zone information.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryZoneData.- See Also:
- Constant Field Values
-
ATTR_ACCESSIBLE
public static final java.lang.String ATTR_ACCESSIBLE
XML attribute name for theaccessibleattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryZoneData
public EPPRegistryZoneData()
Default constructor forEPPRegistryZoneData. Thezonemust be set prior to calling {encode(Document).
-
EPPRegistryZoneData
public EPPRegistryZoneData(EPPRegistryZone aZone, boolean aAccessible)
Default constructor forEPPRegistryZoneData. Thezonemust be set prior to calling {encode(Document).- Parameters:
aZone- Contained zone informationaAccessible- Indicates whether the zone is accessible withtrueor available withfalse.
-
-
Method Detail
-
getZone
public EPPRegistryZone getZone()
Gets the contained zone information- Returns:
- The zone information if defined;
nullotherwise.
-
setZone
public void setZone(EPPRegistryZone aZone)
Sets the contained zone information.- Parameters:
aZone- Zone information
-
isAccessible
public boolean isAccessible()
Is the zone accessible to the client?- Returns:
trueif the zone is accessible;falseotherwise.
-
setAccessible
public void setAccessible(boolean aAccessible)
Sets if the zone is access to the client.- Parameters:
aAccessible-trueif the zone is accessible;falseotherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryZoneDatainstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryZoneDatainstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryZoneDatainstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryZoneDataattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryZoneDatafrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryZoneDatacompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryZoneDatainstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryZoneData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryZoneData - 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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-