Class EPPRegistryZoneList
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryZoneList
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a list of zone summary info. Upon receiving an <info>
command, with a <registry:all> element in it, the server puts a
<registry:zoneList> element in the response. The list contains the zone
summary attributes of supported zones. Use
Each element in the list contains the following info:
setZoneList and
getZoneList to set and get zone list; use addZone to add zone
to existing list; and use setZone to add one zone in the zone list (
setZone will empty the existing zone list).Each element in the list contains the following info:
- <registry:name> - fully qualified name of the zone
- <registry:crDate> - date of zone object creation
- <registry:upDate> - optional date of last update
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryZoneList(EPPRegistryZoneSummary zoneSummary) Constructor that takes oneEPPRegistryZoneSummaryinstance.EPPRegistryZoneList(List<EPPRegistryZoneSummary> aZoneList) Constructor that takes a zone list. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend one zone to the existing zone list.clone()CloneEPPRegistryZoneList.voidDecode the EPPRegistryZoneList attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPRegistryZoneList instance.booleanimplements a deepEPPRegistryZoneListcompare.Returns the XML namespace associated with theEPPCodecComponent.Get the zone summary list.voidClear the existing zone list and add add one zone to the listvoidsetZoneList(List<EPPRegistryZoneSummary> aZoneList) Set the zone summary list.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryZoneList.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryZoneList.- See Also:
-
-
Constructor Details
-
EPPRegistryZoneList
public EPPRegistryZoneList()Default constructor.zoneListis initialized as an emptyList. -
EPPRegistryZoneList
Constructor that takes a zone list.- Parameters:
aZoneList-Listof zone summary
-
EPPRegistryZoneList
Constructor that takes oneEPPRegistryZoneSummaryinstance.zoneListis initialized to have one element.- Parameters:
zoneSummary- summary attributes of one zone
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of the EPPRegistryZoneList instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPRegistryZoneList instance.
- Throws:
EPPEncodeException- - Unable to encode EPPRegistryZoneList instance.
-
decode
Decode the EPPRegistryZoneList attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPRegistryZoneList from.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPRegistryZoneListcompare. -
clone
CloneEPPRegistryZoneList.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryZoneList - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getZoneList
Get the zone summary list.- Returns:
ListofEPPRegistryZone
-
setZoneList
Set the zone summary list.- Parameters:
aZoneList-ListofEPPRegistryZone
-
addZone
Append one zone to the existing zone list.- Parameters:
zone- zone to add
-
setZone
Clear the existing zone list and add add one zone to the list- Parameters:
zone- zone to add
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-