Package com.verisign.epp.codec.registry
Class EPPRegistryZoneMember
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryZoneMember
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class that represents a related zone member that includes
a type and zone name attribute.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the phase local namestatic final StringConstant for the qualified name (prefix and local name)static final StringConstant where domain names of the zone can only be created when the primary domain name exists.static final StringConstant where there is no concept of primary and alternate domain names, so the related zones are treated as equal.static final StringConstant where all domain names in the zone MUST be a primary domain name.static final StringConstant where a domain name in the zone can be either a primary or alternate domain name based on the earliest created date. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryZoneMember(String aZoneName, String aType) Constructor that takes the required attributes including the zone name and the type of the zone member. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryZoneMember.voidDecode theEPPRegistryZoneMemberelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryZoneMemberinstance.booleanimplements a deepEPPRegistryZoneMembercompare.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the type of the related zone.Gets the zone name of the related zone.voidSets the type of the related zone.voidsetZoneName(String aZoneName) Sets the zone name of the related zone.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the qualified name (prefix and local name)- See Also:
-
TYPE_PRIMARY
Constant where all domain names in the zone MUST be a primary domain name.- See Also:
-
TYPE_ALTERNATE
Constant where domain names of the zone can only be created when the primary domain name exists.- See Also:
-
TYPE_PRIMARY_BASED_ON_CR_DATE
Constant where a domain name in the zone can be either a primary or alternate domain name based on the earliest created date.- See Also:
-
TYPE_EQUAL
Constant where there is no concept of primary and alternate domain names, so the related zones are treated as equal. Domain names can be created and deleted in any order.- See Also:
-
-
Constructor Details
-
EPPRegistryZoneMember
public EPPRegistryZoneMember()Default constructor. Both thetypeand thezoneNameMUST be set. -
EPPRegistryZoneMember
Constructor that takes the required attributes including the zone name and the type of the zone member.- Parameters:
aZoneName- Name of the zone.aType- Type of the zone member using one of theTYPEconstants.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryZoneMemberinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPRegistryZoneMemberinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryZoneMemberinstance.
-
decode
Decode theEPPRegistryZoneMemberelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPRegistryZoneMemberfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPRegistryZoneMembercompare. -
clone
CloneEPPRegistryZoneMember.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryZoneMember - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getZoneName
Gets the zone name of the related zone.- Returns:
- Zone name if set;
nullotherwise.
-
setZoneName
Sets the zone name of the related zone.- Parameters:
aZoneName- Zone name
-
getType
Gets the type of the related zone.- Returns:
- One of the
TYPEconstant values if set;nullotherwise.
-
setType
Sets the type of the related zone.- Parameters:
aType- One of theTYPEconstant values.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-