Package com.verisign.epp.codec.registry
Class EPPRegistryZoneMember
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryZoneMember
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryZoneMember extends java.lang.Object implements EPPCodecComponent
Class that represents a related zone member that includes a type and zone name attribute.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the phase local namestatic java.lang.StringELM_NAMEConstant for the qualified name (prefix and local name)static java.lang.StringTYPE_ALTERNATEConstant where domain names of the zone can only be created when the primary domain name exists.static java.lang.StringTYPE_EQUALConstant where there is no concept of primary and alternate domain names, so the related zones are treated as equal.static java.lang.StringTYPE_PRIMARYConstant where all domain names in the zone MUST be a primary domain name.static java.lang.StringTYPE_PRIMARY_BASED_ON_CR_DATEConstant where a domain name in the zone can be either a primary or alternate domain name based on the earliest created date.
-
Constructor Summary
Constructors Constructor Description EPPRegistryZoneMember()Default constructor.EPPRegistryZoneMember(java.lang.String aZoneName, java.lang.String aType)Constructor that takes the required attributes including the zone name and the type of the zone member.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryZoneMember.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryZoneMemberelement aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryZoneMemberinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryZoneMembercompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetType()Gets the type of the related zone.java.lang.StringgetZoneName()Gets the zone name of the related zone.voidsetType(java.lang.String aType)Sets the type of the related zone.voidsetZoneName(java.lang.String aZoneName)Sets the zone name of the related zone.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
Constant for the phase local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the qualified name (prefix and local name)- See Also:
- Constant Field Values
-
TYPE_PRIMARY
public static final java.lang.String TYPE_PRIMARY
Constant where all domain names in the zone MUST be a primary domain name.- See Also:
- Constant Field Values
-
TYPE_ALTERNATE
public static final java.lang.String TYPE_ALTERNATE
Constant where domain names of the zone can only be created when the primary domain name exists.- See Also:
- Constant Field Values
-
TYPE_PRIMARY_BASED_ON_CR_DATE
public static final java.lang.String 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:
- Constant Field Values
-
TYPE_EQUAL
public static final java.lang.String 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:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryZoneMember
public EPPRegistryZoneMember()
Default constructor. Both thetypeand thezoneNameMUST be set.
-
EPPRegistryZoneMember
public EPPRegistryZoneMember(java.lang.String aZoneName, java.lang.String aType)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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryZoneMemberelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPRegistryZoneMemberfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryZoneMembercompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryZoneMemberinstance to compare with- Returns:
trueif equal;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryZoneMember.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryZoneMember - 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.
-
getZoneName
public java.lang.String getZoneName()
Gets the zone name of the related zone.- Returns:
- Zone name if set;
nullotherwise.
-
setZoneName
public void setZoneName(java.lang.String aZoneName)
Sets the zone name of the related zone.- Parameters:
aZoneName- Zone name
-
getType
public java.lang.String getType()
Gets the type of the related zone.- Returns:
- One of the
TYPEconstant values if set;nullotherwise.
-
setType
public void setType(java.lang.String aType)
Sets the type of the related zone.- Parameters:
aType- One of theTYPEconstant values.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-