Class EPPRegistryZoneSummary
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryZoneSummary
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryZoneSummary 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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_ACCESSIBLEXML attribute name for theaccessibleattribute.static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryZoneSummary.static java.lang.StringELM_NAMEXML root tag forEPPRegistryZoneSummary.
-
Constructor Summary
Constructors Constructor Description EPPRegistryZoneSummary()Default constructor.EPPRegistryZoneSummary(EPPRegistryZoneName aName, boolean aAccessible, java.util.Date aCreateDate)ConstructEPPRegistryZoneSummarywith name and create date.EPPRegistryZoneSummary(EPPRegistryZoneName aName, boolean aAccessible, java.util.Date aCreateDate, java.util.Date aUpdateDate)ConstructEPPRegistryZoneSummarywith name, create date and last update date.EPPRegistryZoneSummary(java.lang.String aName, boolean aAccessible, java.util.Date aCreateDate)ConstructEPPRegistryZoneSummarywith aLabel name and create date.EPPRegistryZoneSummary(java.lang.String aName, boolean aAccessible, java.util.Date aCreateDate, java.util.Date aUpdateDate)ConstructEPPRegistryZoneSummarywith aLabel name, create date and last update date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryZoneSummary.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryZoneSummaryattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryZoneSummaryinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryZoneSummarycompare.java.util.DategetCreateDate()Get creation date of zone object.EPPRegistryZoneNamegetName()Gets the zone name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.DategetUpdateDate()Get last update date of zone object.booleanisAccessible()Is the zone accessible to the client?voidsetAccessible(boolean aAccessible)Sets if the zone is access to the client.voidsetCreateDate(java.util.Date createDate)Set creation date of zone object.voidsetName(EPPRegistryZoneName aName)Sets the zone namevoidsetName(java.lang.String aName)Sets the aLabel zone namevoidsetUpdateDate(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.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryZoneSummary.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryZoneSummary.- See Also:
- Constant Field Values
-
ATTR_ACCESSIBLE
public static final java.lang.String ATTR_ACCESSIBLE
XML attribute name for theaccessibleattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryZoneSummary
public EPPRegistryZoneSummary()
Default constructor. Attributes are set to:name- nullcreateDate- nullupdateDate- null
setName(EPPRegistryZoneName)andsetCreateDate(Date)before callingencode(Document)
-
EPPRegistryZoneSummary
public EPPRegistryZoneSummary(java.lang.String aName, boolean aAccessible, java.util.Date aCreateDate)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
public EPPRegistryZoneSummary(EPPRegistryZoneName aName, boolean aAccessible, java.util.Date aCreateDate)
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(java.lang.String aName, boolean aAccessible, java.util.Date aCreateDate, java.util.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, java.util.Date aCreateDate, java.util.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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryZoneSummarycompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryZoneSummaryinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryZoneSummary.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryZoneSummary - 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 EPPRegistryZoneName getName()
Gets the zone name.- Returns:
- Zone name if set;
nullotherwise.
-
setName
public void setName(EPPRegistryZoneName aName)
Sets the zone name- Parameters:
aName- Zone name
-
setName
public void setName(java.lang.String aName)
Sets the aLabel zone name- Parameters:
aName- aLabel zone name
-
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
-
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
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-