Class EPPChangeCaseId
- java.lang.Object
-
- com.verisign.epp.codec.changepoll.EPPChangeCaseId
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPChangeCaseId extends java.lang.Object implements EPPCodecComponent
Change Case Identifier that includes both the identifier as well as the case type.- 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 phase qualified name (prefix and local name)static java.lang.StringTYPE_CUSTOMA custom case that is defined using the "name" attribute.static java.lang.StringTYPE_UDRPA Uniform Domain-Name Dispute-Resolution Policy (UDRP) case.static java.lang.StringTYPE_URSA Uniform Rapid Suspension (URS) case.
-
Constructor Summary
Constructors Constructor Description EPPChangeCaseId()Default constructor.EPPChangeCaseId(java.lang.String aIdentifier, java.lang.String aType)CreateEPPChangeCaseIdinstance with the required identifier and type attributes.EPPChangeCaseId(java.lang.String aIdentifier, java.lang.String aType, java.lang.String aName)CreateEPPChangeCaseIdinstance all of the attributes including the identifier, type, and custom type name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPChangeCaseIdinstance.voiddecode(org.w3c.dom.Element aElement)Decode theEPPChangeCaseIdelement aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPChangeCaseIdinstance.booleanequals(java.lang.Object aObject)Implements a deepEPPChangeCaseIdcompare.java.lang.StringgetIdentifier()Gets the case identifier value.java.lang.StringgetName()Gets the name of the case type, which is used when the type is set to theTYPE_CUSTOMvalue.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetType()Gets the case type.booleanhasName()Is the name defined?voidsetName(java.lang.String aName)Sets the name of the case type, which is used when the type is set to theTYPE_CUSTOMvalue.voidsetType(java.lang.String aType)Sets the case type.voidsetValue(java.lang.String aIdentifier)Sets the case identifier value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
TYPE_UDRP
public static final java.lang.String TYPE_UDRP
A Uniform Domain-Name Dispute-Resolution Policy (UDRP) case.- See Also:
- Constant Field Values
-
TYPE_URS
public static final java.lang.String TYPE_URS
A Uniform Rapid Suspension (URS) case.- See Also:
- Constant Field Values
-
TYPE_CUSTOM
public static final java.lang.String TYPE_CUSTOM
A custom case that is defined using the "name" attribute.- See Also:
- Constant Field Values
-
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 phase qualified name (prefix and local name)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPChangeCaseId
public EPPChangeCaseId()
Default constructor. The identifier value MUST be set using thesetValue(String)method and the type MUST be set using thesetType(String).
-
EPPChangeCaseId
public EPPChangeCaseId(java.lang.String aIdentifier, java.lang.String aType)CreateEPPChangeCaseIdinstance with the required identifier and type attributes.- Parameters:
aIdentifier- Case identifier value.aType- Case type using one of theTYPEconstants.
-
EPPChangeCaseId
public EPPChangeCaseId(java.lang.String aIdentifier, java.lang.String aType, java.lang.String aName)CreateEPPChangeCaseIdinstance all of the attributes including the identifier, type, and custom type name.- Parameters:
aIdentifier- Case identifier value.aType- Case type using one of theTYPEconstants.aName- Name of the type whenaTypeis set with theTYPE_CUSTOMvalue.
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
Gets the case identifier value.- Returns:
- Case identifier value if defined;
nullotherwise.
-
setValue
public void setValue(java.lang.String aIdentifier)
Sets the case identifier value.- Parameters:
aIdentifier- Case identifier
-
getType
public java.lang.String getType()
Gets the case type. The case type should use one of theTYPEconstant values.- Returns:
- Case type if defined;
nullotherwise.
-
setType
public void setType(java.lang.String aType)
Sets the case type. The case type should use one of theTYPEconstant values.- Parameters:
aType- One of theTYPEconstant values.
-
hasName
public boolean hasName()
Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
public java.lang.String getName()
Gets the name of the case type, which is used when the type is set to theTYPE_CUSTOMvalue.- Returns:
- The type name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the name of the case type, which is used when the type is set to theTYPE_CUSTOMvalue.- Parameters:
aName- The custom type name.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPChangeCaseIdinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPChangeCaseId - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPChangeCaseIdelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPChangeCaseIdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPChangeCaseIdinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPChangeCaseIdinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPChangeCaseIdinstance.
-
equals
public boolean equals(java.lang.Object aObject)
Implements a deepEPPChangeCaseIdcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPChangeCaseIdinstance to compare with- Returns:
trueif equal;falseotherwise
-
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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-