public class EPPRegistryZoneData extends java.lang.Object implements EPPCodecComponent
EPPRegistryZoneData
contains the EPPRegistryZone
for use in
the EPPRegistryInfoResp
to include the accessible
boolean
attribute. The accessible
boolean attribute is only applicable in the
info response.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_ACCESSIBLE
XML attribute name for the
accessible attribute. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryZoneData . |
Constructor and Description |
---|
EPPRegistryZoneData()
Default constructor for
EPPRegistryZoneData . |
EPPRegistryZoneData(EPPRegistryZone aZone,
boolean aAccessible)
Default constructor for
EPPRegistryZoneData . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRegistryZoneData . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryZoneData 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 the
EPPRegistryZoneData instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryZoneData compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
EPPRegistryZone |
getZone()
Gets the contained zone information
|
boolean |
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 of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_NAME
EPPRegistryZoneData
.public static final java.lang.String ATTR_ACCESSIBLE
accessible
attribute.public EPPRegistryZoneData()
EPPRegistryZoneData
. The zone
must
be set prior to calling {encode(Document)
.public EPPRegistryZoneData(EPPRegistryZone aZone, boolean aAccessible)
EPPRegistryZoneData
. The zone
must
be set prior to calling {encode(Document)
.aZone
- Contained zone informationaAccessible
- Indicates whether the zone is accessible with true
or
available with false
.public EPPRegistryZone getZone()
null
otherwise.public void setZone(EPPRegistryZone aZone)
aZone
- Zone informationpublic boolean isAccessible()
true
if the zone is accessible; false
otherwise.public void setAccessible(boolean aAccessible)
aAccessible
- true
if the zone is accessible; false
otherwise.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryZoneData
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryZoneData
instance.EPPEncodeException
- - Unable to encode EPPRegistryZoneData
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryZoneData
attributes from the aElement DOM
Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryZoneData
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPRegistryZoneData
compare.equals
in class java.lang.Object
aObject
- EPPRegistryZoneData
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryZoneData
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryZoneData
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful; ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.