Class EPPChangeOperation
- java.lang.Object
-
- com.verisign.epp.codec.changepoll.EPPChangeOperation
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPChangeOperation extends java.lang.Object implements EPPCodecComponent
Transform operation executed on the object. The operation value should match one of theOPERATIONconstants and the "op" attribute can be set via thesetOp(String)method to handle specific cases.- 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.StringOPERATION_AUTO_DELETEAuto delete operation executed by the server.static java.lang.StringOPERATION_AUTO_PURGEAuto purge operation executed by the server.static java.lang.StringOPERATION_AUTO_RENEWAuto renew operation executed by the server.static java.lang.StringOPERATION_CREATECreate operation as defined inRFC 5730.static java.lang.StringOPERATION_CUSTOMCustom operation.static java.lang.StringOPERATION_DELETEDelete operation as defined inRFC 5730.static java.lang.StringOPERATION_RENEWRenew operation as defined inRFC 5730.static java.lang.StringOPERATION_RESTOREUpdate operation as defined inRFC 3915.static java.lang.StringOPERATION_TRANSFERTransfer operation as defined inRFC 5730.static java.lang.StringOPERATION_UPDATEUpdate operation as defined inRFC 5730.
-
Constructor Summary
Constructors Constructor Description EPPChangeOperation()Default constructor.EPPChangeOperation(java.lang.String aValue)CreateEPPChangeOperationinstance with a defined operation value.EPPChangeOperation(java.lang.String aValue, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPChangeOperationinstance.voiddecode(org.w3c.dom.Element aElement)Decode theEPPChangeOperationelement aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPChangeOperationinstance.booleanequals(java.lang.Object aObject)Implements a deepEPPChangeOperationcompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetOp()Gets the OPTIONAL "op" attribute value, which defines the sub-operation or name of the operation when the operation value is set toOPERATION_CUSTOM.java.lang.StringgetValue()Gets the operation value, which should be one of theOPERATIONconstants.booleanhasOp()Is the "op" attribute defined?booleanhasValue()Is the operation value defined?voidsetOp(java.lang.String aOp)Sets the OPTIONAL "op" attribute value.voidsetValue(java.lang.String aValue)Sets the operation value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
OPERATION_CREATE
public static final java.lang.String OPERATION_CREATE
Create operation as defined inRFC 5730.- See Also:
- Constant Field Values
-
OPERATION_DELETE
public static final java.lang.String OPERATION_DELETE
Delete operation as defined inRFC 5730.- See Also:
- Constant Field Values
-
OPERATION_RENEW
public static final java.lang.String OPERATION_RENEW
Renew operation as defined inRFC 5730.- See Also:
- Constant Field Values
-
OPERATION_TRANSFER
public static final java.lang.String OPERATION_TRANSFER
Transfer operation as defined inRFC 5730.- See Also:
- Constant Field Values
-
OPERATION_UPDATE
public static final java.lang.String OPERATION_UPDATE
Update operation as defined inRFC 5730.- See Also:
- Constant Field Values
-
OPERATION_RESTORE
public static final java.lang.String OPERATION_RESTORE
Update operation as defined inRFC 3915.- See Also:
- Constant Field Values
-
OPERATION_AUTO_RENEW
public static final java.lang.String OPERATION_AUTO_RENEW
Auto renew operation executed by the server.- See Also:
- Constant Field Values
-
OPERATION_AUTO_DELETE
public static final java.lang.String OPERATION_AUTO_DELETE
Auto delete operation executed by the server.- See Also:
- Constant Field Values
-
OPERATION_AUTO_PURGE
public static final java.lang.String OPERATION_AUTO_PURGE
Auto purge operation executed by the server.- See Also:
- Constant Field Values
-
OPERATION_CUSTOM
public static final java.lang.String OPERATION_CUSTOM
Custom operation.- 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
-
EPPChangeOperation
public EPPChangeOperation()
Default constructor. The operation value MUST be set using thesetValue(String)method.
-
EPPChangeOperation
public EPPChangeOperation(java.lang.String aValue)
CreateEPPChangeOperationinstance with a defined operation value.- Parameters:
aValue- Operation value using one of theOPERATIONconstants.
-
EPPChangeOperation
public EPPChangeOperation(java.lang.String aValue, java.lang.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.- Parameters:
aValue- Operation value using one of theOPERATIONconstants.aOp- Sub-operation or name of operation whenaValueis set toOPERATION_CUSTOM.
-
-
Method Detail
-
hasValue
public boolean hasValue()
Is the operation value defined?- Returns:
trueif the operation value is defined;falseotherwise.
-
getValue
public java.lang.String getValue()
Gets the operation value, which should be one of theOPERATIONconstants.- Returns:
- Operation value if defined;
nullotherwise.
-
setValue
public void setValue(java.lang.String aValue)
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
public java.lang.String 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
public void setOp(java.lang.String aOp)
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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPChangeOperationinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPChangeOperation - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPChangeOperationelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPChangeOperationfrom.- 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 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
public boolean equals(java.lang.Object aObject)
Implements a deepEPPChangeOperationcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPChangeOperationinstance 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.
-
-