Package com.verisign.epp.codec.registry
Class EPPRegistryZone
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryZone
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryZone extends java.lang.Object implements EPPCodecComponent
Represents the summary info of a zone object. Zone summary info of all supported zones is returned is a list when the server receives an <info> command, with a <registry:all> element in it.
The zone summary info element contains:- <registry:name> - fully qualified name of the zone. Use
setName(String)andgetName()to access the attribute. - <registry:crDate> - date of zone object creation. Use
setCreateDate(Date)andgetCreateDate()to access the attribute. - <registry:upDate> - optional date of last update. Use
setUpdateDate(Date)andgetUpdateDate()to access the attribute.
- See Also:
EPPRegistryZoneList, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryZone()Default constructor.EPPRegistryZone(java.lang.String name, java.util.Date createDate)ConstructEPPRegistryZonewith name and create date.EPPRegistryZone(java.lang.String name, java.util.Date createDate, java.util.Date updateDate)ConstructEPPRegistryZonewith name, craete date and last update date.
-
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.java.util.DategetCreateDate()Get creation date of zone object.java.lang.StringgetName()Get name of the zone object.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.DategetUpdateDate()Get last update date of zone object.voidsetCreateDate(java.util.Date createDate)Set creation date of zone object.voidsetName(java.lang.String name)Set name of the zone object.voidsetUpdateDate(java.util.Date updateDate)Set last update date of zone object.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPRegistryZone
public EPPRegistryZone()
Default constructor. Attributes are set to:name- nullcreateDate- nullupdateDate- null
setName(String)andsetCreateDate(Date)before callingencode(Document)
-
EPPRegistryZone
public EPPRegistryZone(java.lang.String name, java.util.Date createDate)ConstructEPPRegistryZonewith name and create date.updateDateis set to null.- Parameters:
name- fully qualified name of zone objectcreateDate- creation date of zone object
-
EPPRegistryZone
public EPPRegistryZone(java.lang.String name, java.util.Date createDate, java.util.Date updateDate)ConstructEPPRegistryZonewith name, craete date and last update date.- Parameters:
name- fully qualified name of zone objectcreateDate- creation date of zone objectupdateDate- date of last update
-
-
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.
-
getName
public java.lang.String getName()
Get name of the zone object.- Returns:
- fully qualified name of the zone object
-
setName
public void setName(java.lang.String name)
Set name of the zone object.- Parameters:
name- fully qualified name of the zone object
-
getCreateDate
public java.util.Date getCreateDate()
Get creation date of zone object.- Returns:
- creation date of zone object
-
setCreateDate
public void setCreateDate(java.util.Date createDate)
Set creation date of zone object.- Parameters:
createDate- creation date of zone object
-
getUpdateDate
public java.util.Date getUpdateDate()
Get last update date of zone object.- Returns:
- last update date of zone object
-
setUpdateDate
public void setUpdateDate(java.util.Date updateDate)
Set last update date of zone object.- Parameters:
updateDate- last update date of zone object
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-