Class EPPRegistryZone
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryZone
- All Implemented Interfaces:
EPPCodecComponent,EPPRegistryZoneInterface,Serializable,Cloneable
Represents the detailed information of a zone object. Upon receiving an
<info> command, with a <registry:name> element in it, the server
puts a <registry:zone> element in the response.
Each element in the list contains the following info:
Each element in the list contains the following info:
- <registry:name> - fully qualified name of the zone object. Zone
name can be at any level (top level, second level, third level, etc.). Use
getName()andsetName(String)to get and set the element. - <registry:group> - An OPTIONAL server defined grouping of zones.
Zone in one group share similar features and policies. Use
getGroup()andsetGroup(String)to get and set the element. - <registry:services> - The OPTIONAL EPP namespace URIs of the
objects and object extensions supported by the server based on RFC 5730. Use
getServices()andsetServices(EPPRegistryServices)to get and set the element. - <registry:crID> - The OPTIONAL identifier of the client that
created the zone. Use
getCreatedBy()andsetCreatedBy(String)to get and set the element. - <registry:crDate> - The OPTIONAL date and time of zone object
creation. The <registry:crDate> element MUST be set if the zone object
has already been created. Use
getCreatedDate()andsetCreatedDate(Date)to get and set the element. - <registry:upID> - The OPTIONAL identifier of the client that last
updated the zone object.This element MUST NOT be present if the zone has
never been modified. Use
getLastUpdatedBy()andsetLastUpdatedBy(String)to get and set the element. - <registry:upDate> - The OPTIONAL date and time of the most recent
zone object modification. This element MUST NOT be present if the zone object
has never been modified. Use
getLastUpdatedDate()andsetLastUpdatedDate(Date)to get and set the element. - <registry:unsupportedData> - The OPTIONAL policy associated with receipt of unsupported data sent by the client to the server. The unsupported data may be an unsupported element or extension. The server SHOULD be consistent in the handling of unsupported data.
- <registry:batch> - The OPTIONAL list of batch jobs.
- <registry:system> - The OPTIONAL list of zones that makeup the system when the "perSystem" share policy is used for the internal hosts, external hosts, or contacts. The list of zones are listed independent of the client's privileges to provision domains in the zone.
- <registry:domain> - The domain name object policy information per
RFC 5731. Use
getDomain()andsetDomain(EPPRegistryDomain)to get and set the element. - <registry:host> - The host object policy information per RFC 5732.
Use
getHost()andsetHost(EPPRegistryHost)to get and set the element. - <registry:contact> - The contact object policy information per RFC
5733. Use
getContact()andsetContact(EPPRegistryContact)to get and set the element.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for theunsupportedDataattribute. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Construct anEPPRegistryZoneinstance using a zone name.
All other non list attributes are initialized tonull.EPPRegistryZone(EPPRegistryZoneName aName, String aCreatedBy, Date aCreatedDate) Construct anEPPRegistryZoneinstance using a zone name, a create id and a create date.EPPRegistryZone(String aName) Construct anEPPRegistryZoneinstance using a zone name as an aLabel.
All other non list attributes are initialized tonull.EPPRegistryZone(String aName, String aCreatedBy, Date aCreatedDate) Construct anEPPRegistryZoneinstance using a zone name as an aLabel, a create id and a create date. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatchJob(EPPRegistryBatchJob aBatchJob) Add a batch job to the list of batch jobs.voidaddSystemZone(EPPRegistryZoneName aSystemZone) Add a zone to the list of system zones.clone()CloneEPPRegistryZone.voidDecode theEPPRegistryZoneattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryZoneinstance.booleanimplements a deepEPPRegistryZonecompare.Get theListofEPPRegistryBatchJobthat specifies the batch jobs.Get the contact object policy information.Get the identifier of the client that created the zone.Get zone creation date.Get the domain name object policy information.getGroup()Gets the zone group.getHost()Get the host object policy information.Get the identifier of the client that last updated the zone object.Get the zone last updated date.getName()Gets the name of zone.Returns the XML namespace associated with theEPPCodecComponent.Get services supported by the zoneGet theListofEPPRegistryZoneNamethat specifies the system zones.Gets the unsupported data policy.booleanIs the batch jobs defined?booleanIs the contact defined?booleanIs the created by defined?booleanIs the created date defined?booleanIs the domain defined?booleanhasGroup()Is the zone group defined?booleanhasHost()Is the host defined?booleanIs the last updated by defined?booleanIs the last updated date defined?booleanhasName()Is the name defined?booleanIs the services defined?booleanIs the system zones defined?booleanIs the unsupported data policy defined?voidsetBatchJobs(List<EPPRegistryBatchJob> aBatchJobs) Set theListofEPPRegistryBatchJobthat includes all of the batch jobs.voidsetContact(EPPRegistryContact contact) Set the contact object policy information.voidsetCreatedBy(String createdBy) Set the identifier of the client that created the zonevoidsetCreatedDate(Date createdDate) set zone create date.voidsetDomain(EPPRegistryDomain domain) Set the domain name object policy information.voidSets the zone group.voidsetHost(EPPRegistryHost host) Set the host object policy information.voidsetLastUpdatedBy(String lastUpdatedBy) Set the identifier of the client that last updated the zone object.voidsetLastUpdatedDate(Date lastUpdatedDate) Set the zone last updated date.voidsetName(EPPRegistryZoneName aName) Sets the name of zone.voidSets the name of zone as an aLabel.voidsetServices(EPPRegistryServices services) Set services supported by the zonevoidsetSystemZones(List<EPPRegistryZoneName> aSystemZones) Set theListofEPPRegistryZoneNamethat includes all of the system zones.voidsetUnsupportedData(EPPRegistryZone.UnsupportedData aUnsupportedData) Sets the unsupported data policy.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryZone.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryZone.- See Also:
-
-
Constructor Details
-
EPPRegistryZone
public EPPRegistryZone()Default constructor. All non list attributes are initialized tonull.
Please make sure to set the required attributes before calling theencode(Document)method: -
EPPRegistryZone
Construct anEPPRegistryZoneinstance using a zone name as an aLabel.
All other non list attributes are initialized tonull.
Please make sure to set the required attributes before calling theencode(Document)method:- Parameters:
aName- fully qualified name of the zone object as an aLabel
-
EPPRegistryZone
Construct anEPPRegistryZoneinstance using a zone name.
All other non list attributes are initialized tonull.
Please make sure to set the required attributes before calling theencode(Document)method:- Parameters:
aName- fully qualified name of the zone object
-
EPPRegistryZone
Construct anEPPRegistryZoneinstance using a zone name as an aLabel, a create id and a create date.
All other non list attributes are initialized tonull.phasesis initialized to emptyList.
Please make sure to set the required attributes before calling theencode(Document)method:- Parameters:
aName- fully qualified name of the zone as an aLabelaCreatedBy- identifier of the client that created the zoneaCreatedDate- creation date of the zone
-
EPPRegistryZone
Construct anEPPRegistryZoneinstance using a zone name, a create id and a create date.
All other non list attributes are initialized tonull.phasesis initialized to emptyList.
Please make sure to set the required attributes before calling theencode(Document)method:- Parameters:
aName- fully qualified name of the zoneaCreatedBy- identifier of the client that created the zoneaCreatedDate- creation date of the zone
-
-
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. -
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the name of zone.- Returns:
- fully qualified zone name
-
setName
Sets the name of zone.- Parameters:
aName- fully qualified zone name.
-
setName
Sets the name of zone as an aLabel.- Parameters:
aName- fully qualified zone name as an aLabel.
-
hasServices
public boolean hasServices()Is the services defined?- Returns:
trueif the services is defined;falseotherwise.
-
getServices
Get services supported by the zone- Returns:
- instance of
EPPRegistryServicesthat lists namespace URIs of the objects and object extensions supported by the zone
-
setServices
Set services supported by the zone- Parameters:
services- instance ofEPPRegistryServicesthat lists namespace URIs of the objects and object extensions supported by the zone
-
hasCreatedBy
public boolean hasCreatedBy()Is the created by defined?- Returns:
trueif the created by is defined;falseotherwise.
-
getCreatedBy
Get the identifier of the client that created the zone.- Returns:
- the identifier of the client that created the zone
-
setCreatedBy
Set the identifier of the client that created the zone- Parameters:
createdBy- the identifier of the client that created the zone
-
hasCreatedDate
public boolean hasCreatedDate()Is the created date defined?- Returns:
trueif the created date is defined;falseotherwise.
-
getCreatedDate
Get zone creation date.- Returns:
- zone creation date
-
setCreatedDate
set zone create date.- Parameters:
createdDate- zone creation date
-
hasLastUpdatedBy
public boolean hasLastUpdatedBy()Is the last updated by defined?- Returns:
trueif the last updated by is defined;falseotherwise.
-
getLastUpdatedBy
Get the identifier of the client that last updated the zone object.- Returns:
- the identifier of the client that last updated the zone object, or
nullif the zone object has never been updated.
-
setLastUpdatedBy
Set the identifier of the client that last updated the zone object.- Parameters:
lastUpdatedBy- the identifier of the client that last updated the zone object
-
hasLastUpdatedDate
public boolean hasLastUpdatedDate()Is the last updated date defined?- Returns:
trueif the last updated date is defined;falseotherwise.
-
getLastUpdatedDate
Get the zone last updated date.- Returns:
- the last updated date of the zone object, or
nullif the zone has never been updated.
-
setLastUpdatedDate
Set the zone last updated date.- Parameters:
lastUpdatedDate- the last updated date of the zone object
-
hasUnsupportedData
public boolean hasUnsupportedData()Is the unsupported data policy defined?- Returns:
trueif the unsupported data policy is defined;falseotherwise.
-
getUnsupportedData
Gets the unsupported data policy.- Returns:
- unsupported data policy if defined;
nullotherwise.
-
setUnsupportedData
Sets the unsupported data policy.- Parameters:
aUnsupportedData- Unsupported data policy. Set tonullto clear it.
-
hasBatchJobs
public boolean hasBatchJobs()Is the batch jobs defined?- Returns:
trueif the batch jobs is defined;falseotherwise.
-
getBatchJobs
Get theListofEPPRegistryBatchJobthat specifies the batch jobs.- Returns:
- the
ListofEPPRegistryBatchJobthat specifies the batch jobs
-
setBatchJobs
Set theListofEPPRegistryBatchJobthat includes all of the batch jobs.- Parameters:
aBatchJobs- theListofEPPRegistryBatchJobincludes all of the batch jobs.
-
addBatchJob
Add a batch job to the list of batch jobs.- Parameters:
aBatchJob- Batch job to add to the list
-
hasSystemZones
public boolean hasSystemZones()Is the system zones defined?- Returns:
trueif the system zones is defined;falseotherwise.
-
getSystemZones
Get theListofEPPRegistryZoneNamethat specifies the system zones.- Returns:
- the
ListofEPPRegistryZoneNamethat specifies the system zones
-
setSystemZones
Set theListofEPPRegistryZoneNamethat includes all of the system zones.- Parameters:
aSystemZones- theListofEPPRegistryBatchJobincludes all of the batch jobs.
-
addSystemZone
Add a zone to the list of system zones.- Parameters:
aSystemZone- Zone to add to the list of system zones
-
hasDomain
public boolean hasDomain()Is the domain defined?- Returns:
trueif the domain is defined;falseotherwise.
-
getDomain
Get the domain name object policy information.- Returns:
- the domain name object policy information per RFC 5731
-
setDomain
Set the domain name object policy information.- Parameters:
domain- the domain name object policy information per RFC 5731
-
hasHost
public boolean hasHost()Is the host defined?- Returns:
trueif the host is defined;falseotherwise.
-
getHost
Get the host object policy information.- Returns:
- the host object policy information per RFC 5732
-
setHost
Set the host object policy information.- Parameters:
host- the host object policy information per RFC 5732
-
hasContact
public boolean hasContact()Is the contact defined?- Returns:
trueif the contact is defined;falseotherwise.
-
getContact
Get the contact object policy information.- Returns:
- the contact object policy information per RFC 5733.
-
setContact
Set the contact object policy information.- Parameters:
contact- the contact object policy information per RFC 5733.
-
hasGroup
public boolean hasGroup()Is the zone group defined?- Returns:
trueif the zone group is defined;falseotherwise.
-
getGroup
Gets the zone group.- Returns:
- server defined grouping of zones that the zone belongs to with similar features and policies
-
setGroup
Sets the zone group.- Parameters:
aGroup- server defined grouping of zones that the zone belongs to with similar features and policies
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-