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
EPPRegistryZoneData
contains theEPPRegistryZone
for use in theEPPRegistryInfoResp
to include theaccessible
boolean attribute. Theaccessible
boolean attribute is only applicable in the info response.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTR_ACCESSIBLE
XML attribute name for theaccessible
attribute.static java.lang.String
ELM_NAME
XML 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.Object
clone()
CloneEPPRegistryZoneData
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryZoneData
attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistryZoneData
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryZoneData
compare.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.EPPRegistryZone
getZone()
Gets the contained zone informationboolean
isAccessible()
Is the zone accessible to the client?void
setAccessible(boolean aAccessible)
Sets if the zone is access to the client.void
setZone(EPPRegistryZone aZone)
Sets the contained zone information.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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 theaccessible
attribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryZoneData
public EPPRegistryZoneData()
Default constructor forEPPRegistryZoneData
. Thezone
must be set prior to calling {encode(Document)
.
-
EPPRegistryZoneData
public EPPRegistryZoneData(EPPRegistryZone aZone, boolean aAccessible)
Default constructor forEPPRegistryZoneData
. Thezone
must be set prior to calling {encode(Document)
.- Parameters:
aZone
- Contained zone informationaAccessible
- Indicates whether the zone is accessible withtrue
or available withfalse
.
-
-
Method Detail
-
getZone
public EPPRegistryZone getZone()
Gets the contained zone information- Returns:
- The zone information if defined;
null
otherwise.
-
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:
true
if the zone is accessible;false
otherwise.
-
setAccessible
public void setAccessible(boolean aAccessible)
Sets if the zone is access to the client.- Parameters:
aAccessible
-true
if the zone is accessible;false
otherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryZoneData
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryZoneData
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryZoneData
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryZoneData
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryZoneData
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryZoneData
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRegistryZoneData
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryZoneData
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-