Package com.verisign.epp.codec.registry
Class EPPRegistryZone
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryZone
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
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:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryZone(String name, Date createDate) ConstructEPPRegistryZonewith name and create date.EPPRegistryZone(String name, Date createDate, Date updateDate) ConstructEPPRegistryZonewith name, craete date and last update date. -
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.Get creation date of zone object.getName()Get name of the zone object.Returns the XML namespace associated with theEPPCodecComponent.Get last update date of zone object.voidsetCreateDate(Date createDate) Set creation date of zone object.voidSet name of the zone object.voidsetUpdateDate(Date updateDate) Set last update date of zone object.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPRegistryZone
public EPPRegistryZone()Default constructor. Attributes are set to:name- nullcreateDate- nullupdateDate- null
setName(String)andsetCreateDate(Date)before callingencode(Document) -
EPPRegistryZone
ConstructEPPRegistryZonewith name and create date.updateDateis set to null.- Parameters:
name- fully qualified name of zone objectcreateDate- creation date of zone object
-
EPPRegistryZone
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 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. -
getName
Get name of the zone object.- Returns:
- fully qualified name of the zone object
-
setName
Set name of the zone object.- Parameters:
name- fully qualified name of the zone object
-
getCreateDate
Get creation date of zone object.- Returns:
- creation date of zone object
-
setCreateDate
Set creation date of zone object.- Parameters:
createDate- creation date of zone object
-
getUpdateDate
Get last update date of zone object.- Returns:
- last update date of zone object
-
setUpdateDate
Set last update date of zone object.- Parameters:
updateDate- last update date of zone object
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-