Class EPPChangeCaseId
java.lang.Object
com.verisign.epp.codec.changepoll.EPPChangeCaseId
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Change Case Identifier that includes both the identifier as well as the case
type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the phase local namestatic final StringConstant for the phase qualified name (prefix and local name)static final StringA custom case that is defined using the "name" attribute.static final StringA Uniform Domain-Name Dispute-Resolution Policy (UDRP) case.static final StringA Uniform Rapid Suspension (URS) case. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPChangeCaseId(String aIdentifier, String aType) CreateEPPChangeCaseIdinstance with the required identifier and type attributes.EPPChangeCaseId(String aIdentifier, String aType, String aName) CreateEPPChangeCaseIdinstance all of the attributes including the identifier, type, and custom type name. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPChangeCaseIdinstance.voidDecode theEPPChangeCaseIdelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPChangeCaseIdinstance.booleanImplements a deepEPPChangeCaseIdcompare.Gets the case identifier value.getName()Gets the name of the case type, which is used when the type is set to theTYPE_CUSTOMvalue.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the case type.booleanhasName()Is the name defined?voidSets the name of the case type, which is used when the type is set to theTYPE_CUSTOMvalue.voidSets the case type.voidSets the case identifier value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_UDRP
A Uniform Domain-Name Dispute-Resolution Policy (UDRP) case.- See Also:
-
TYPE_URS
A Uniform Rapid Suspension (URS) case.- See Also:
-
TYPE_CUSTOM
A custom case that is defined using the "name" attribute.- See Also:
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
-
Constructor Details
-
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
CreateEPPChangeCaseIdinstance with the required identifier and type attributes.- Parameters:
aIdentifier- Case identifier value.aType- Case type using one of theTYPEconstants.
-
EPPChangeCaseId
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 Details
-
getIdentifier
Gets the case identifier value.- Returns:
- Case identifier value if defined;
nullotherwise.
-
setValue
Sets the case identifier value.- Parameters:
aIdentifier- Case identifier
-
getType
Gets the case type. The case type should use one of theTYPEconstant values.- Returns:
- Case type if defined;
nullotherwise.
-
setType
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
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
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
CloneEPPChangeCaseIdinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPChangeCaseId - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPChangeCaseIdelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPChangeCaseIdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode 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
Implements a deepEPPChangeCaseIdcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-