Class EPPChangeOperation
java.lang.Object
com.verisign.epp.codec.changepoll.EPPChangeOperation
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Transform operation executed on the object. The operation value should match
one of the
OPERATION constants and the "op" attribute
can be set via the setOp(String) method to handle specific cases.- 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 StringAuto delete operation executed by the server.static final StringAuto purge operation executed by the server.static final StringAuto renew operation executed by the server.static final StringCreate operation as defined inRFC 5730.static final StringCustom operation.static final StringDelete operation as defined inRFC 5730.static final StringRenew operation as defined inRFC 5730.static final StringUpdate operation as defined inRFC 3915.static final StringTransfer operation as defined inRFC 5730.static final StringUpdate operation as defined inRFC 5730. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPChangeOperation(String aValue) CreateEPPChangeOperationinstance with a defined operation value.EPPChangeOperation(String aValue, String aOp) CreateEPPChangeOperationinstance with a defined operation value and the optional "op" attribute that defines either the sub-operation or the name of the operation when the operation value is set toOPERATION_CUSTOM. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPChangeOperationinstance.voidDecode theEPPChangeOperationelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPChangeOperationinstance.booleanImplements a deepEPPChangeOperationcompare.Returns the XML namespace associated with theEPPCodecComponent.getOp()Gets the OPTIONAL "op" attribute value, which defines the sub-operation or name of the operation when the operation value is set toOPERATION_CUSTOM.getValue()Gets the operation value, which should be one of theOPERATIONconstants.booleanhasOp()Is the "op" attribute defined?booleanhasValue()Is the operation value defined?voidSets the OPTIONAL "op" attribute value.voidSets the operation value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
OPERATION_CREATE
Create operation as defined inRFC 5730.- See Also:
-
OPERATION_DELETE
Delete operation as defined inRFC 5730.- See Also:
-
OPERATION_RENEW
Renew operation as defined inRFC 5730.- See Also:
-
OPERATION_TRANSFER
Transfer operation as defined inRFC 5730.- See Also:
-
OPERATION_UPDATE
Update operation as defined inRFC 5730.- See Also:
-
OPERATION_RESTORE
Update operation as defined inRFC 3915.- See Also:
-
OPERATION_AUTO_RENEW
Auto renew operation executed by the server.- See Also:
-
OPERATION_AUTO_DELETE
Auto delete operation executed by the server.- See Also:
-
OPERATION_AUTO_PURGE
Auto purge operation executed by the server.- See Also:
-
OPERATION_CUSTOM
Custom operation.- 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
-
EPPChangeOperation
public EPPChangeOperation()Default constructor. The operation value MUST be set using thesetValue(String)method. -
EPPChangeOperation
CreateEPPChangeOperationinstance with a defined operation value.- Parameters:
aValue- Operation value using one of theOPERATIONconstants.
-
EPPChangeOperation
CreateEPPChangeOperationinstance with a defined operation value and the optional "op" attribute that defines either the sub-operation or the name of the operation when the operation value is set toOPERATION_CUSTOM.- Parameters:
aValue- Operation value using one of theOPERATIONconstants.aOp- Sub-operation or name of operation whenaValueis set toOPERATION_CUSTOM.
-
-
Method Details
-
hasValue
public boolean hasValue()Is the operation value defined?- Returns:
trueif the operation value is defined;falseotherwise.
-
getValue
Gets the operation value, which should be one of theOPERATIONconstants.- Returns:
- Operation value if defined;
nullotherwise.
-
setValue
Sets the operation value.- Parameters:
aValue- Operation value, which should be one of theOPERATIONconstants.
-
hasOp
public boolean hasOp()Is the "op" attribute defined?- Returns:
trueif the "op" attribute is defined;falseotherwise.
-
getOp
Gets the OPTIONAL "op" attribute value, which defines the sub-operation or name of the operation when the operation value is set toOPERATION_CUSTOM.- Returns:
- The "op" attribute value if defined;
nullotherwise.
-
setOp
Sets the OPTIONAL "op" attribute value.- Parameters:
aOp- "op" attribute value that defines the sub-operation or name of the operation when the operation value is set toOPERATION_CUSTOM.
-
clone
CloneEPPChangeOperationinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPChangeOperation - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPChangeOperationelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPChangeOperationfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of theEPPChangeOperationinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPChangeOperationinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPChangeOperationinstance.
-
equals
Implements a deepEPPChangeOperationcompare. -
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.
-