Class EPPRegistryZoneSummary
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryZoneSummary
- 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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryZoneSummary(EPPRegistryZoneName aName, boolean aAccessible, Date aCreateDate) ConstructEPPRegistryZoneSummarywith name and create date.EPPRegistryZoneSummary(EPPRegistryZoneName aName, boolean aAccessible, Date aCreateDate, Date aUpdateDate) ConstructEPPRegistryZoneSummarywith name, create date and last update date.EPPRegistryZoneSummary(String aName, boolean aAccessible, Date aCreateDate) ConstructEPPRegistryZoneSummarywith aLabel name and create date.EPPRegistryZoneSummary(String aName, boolean aAccessible, Date aCreateDate, Date aUpdateDate) ConstructEPPRegistryZoneSummarywith aLabel name, create date and last update date. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryZoneSummary.voidDecode theEPPRegistryZoneSummaryattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryZoneSummaryinstance.booleanimplements a deepEPPRegistryZoneSummarycompare.Get creation date of zone object.getName()Gets the zone name.Returns the XML namespace associated with theEPPCodecComponent.Get last update date of zone object.booleanIs the zone accessible to the client?voidsetAccessible(boolean aAccessible) Sets if the zone is access to the client.voidsetCreateDate(Date createDate) Set creation date of zone object.voidsetName(EPPRegistryZoneName aName) Sets the zone namevoidSets the aLabel zone namevoidsetUpdateDate(Date updateDate) Set last update date of zone object.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryZoneSummary.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryZoneSummary.- See Also:
-
ATTR_ACCESSIBLE
XML attribute name for theaccessibleattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryZoneSummary
public EPPRegistryZoneSummary()Default constructor. Attributes are set to:name- nullcreateDate- nullupdateDate- null
setName(EPPRegistryZoneName)andsetCreateDate(Date)before callingencode(Document) -
EPPRegistryZoneSummary
ConstructEPPRegistryZoneSummarywith aLabel name and create date.updateDateis set to null.- Parameters:
aName- fully qualified aLabel name of zone objectaAccessible- Indicates whether the zone is accessible withtrueor available withfalse.aCreateDate- creation date of zone object
-
EPPRegistryZoneSummary
ConstructEPPRegistryZoneSummarywith name and create date.updateDateis set to null.- Parameters:
aName- fully qualified name of zone objectaAccessible- Indicates whether the zone is accessible withtrueor available withfalse.aCreateDate- creation date of zone object
-
EPPRegistryZoneSummary
public EPPRegistryZoneSummary(String aName, boolean aAccessible, Date aCreateDate, Date aUpdateDate) ConstructEPPRegistryZoneSummarywith aLabel name, create date and last update date.- Parameters:
aName- fully qualified aLabel name of zone objectaAccessible- Indicates whether the zone is accessible withtrueor available withfalse.aCreateDate- creation date of zone objectaUpdateDate- date of last update
-
EPPRegistryZoneSummary
public EPPRegistryZoneSummary(EPPRegistryZoneName aName, boolean aAccessible, Date aCreateDate, Date aUpdateDate) ConstructEPPRegistryZoneSummarywith name, create date and last update date.- Parameters:
aName- fully qualified name of zone objectaAccessible- Indicates whether the zone is accessible withtrueor available withfalse.aCreateDate- creation date of zone objectaUpdateDate- date of last update
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryZoneSummaryinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryZoneSummaryinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryZoneSummaryinstance.
-
decode
Decode theEPPRegistryZoneSummaryattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryZoneSummaryfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPRegistryZoneSummarycompare. -
clone
CloneEPPRegistryZoneSummary.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryZoneSummary - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getName
Gets the zone name.- Returns:
- Zone name if set;
nullotherwise.
-
setName
Sets the zone name- Parameters:
aName- Zone name
-
setName
Sets the aLabel zone name- Parameters:
aName- aLabel zone name
-
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
-
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.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-