public class EPPChangeOperation extends java.lang.Object implements EPPCodecComponent
OPERATION
constants and the "op" attribute
can be set via the setOp(String)
method
to handle specific cases.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the phase local name
|
static java.lang.String |
ELM_NAME
Constant for the phase qualified name (prefix and local name)
|
static java.lang.String |
OPERATION_AUTO_DELETE
Auto delete operation executed by the server.
|
static java.lang.String |
OPERATION_AUTO_PURGE
Auto purge operation executed by the server.
|
static java.lang.String |
OPERATION_AUTO_RENEW
Auto renew operation executed by the server.
|
static java.lang.String |
OPERATION_CREATE
Create operation as defined in
RFC 5730 . |
static java.lang.String |
OPERATION_CUSTOM
Custom operation.
|
static java.lang.String |
OPERATION_DELETE
Delete operation as defined in
RFC 5730 . |
static java.lang.String |
OPERATION_RENEW
Renew operation as defined in
RFC 5730 . |
static java.lang.String |
OPERATION_RESTORE
Update operation as defined in
RFC 3915 . |
static java.lang.String |
OPERATION_TRANSFER
Transfer operation as defined in
RFC 5730 . |
static java.lang.String |
OPERATION_UPDATE
Update operation as defined in
RFC 5730 . |
Constructor and Description |
---|
EPPChangeOperation()
Default constructor.
|
EPPChangeOperation(java.lang.String aValue)
Create
EPPChangeOperation instance with a defined operation
value. |
EPPChangeOperation(java.lang.String aValue,
java.lang.String aOp)
Create
EPPChangeOperation instance 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 to OPERATION_CUSTOM . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPChangeOperation instance. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPChangeOperation element aElement DOM Element
tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPChangeOperation instance. |
boolean |
equals(java.lang.Object aObject)
Implements a deep
EPPChangeOperation compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
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 to
OPERATION_CUSTOM . |
java.lang.String |
getValue()
Gets the operation value, which should be one of the
OPERATION constants. |
boolean |
hasOp()
Is the "op" attribute defined?
|
boolean |
hasValue()
Is the operation value defined?
|
void |
setOp(java.lang.String aOp)
Sets the OPTIONAL "op" attribute value.
|
void |
setValue(java.lang.String aValue)
Sets the operation value.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String OPERATION_CREATE
RFC 5730
.public static final java.lang.String OPERATION_DELETE
RFC 5730
.public static final java.lang.String OPERATION_RENEW
RFC 5730
.public static final java.lang.String OPERATION_TRANSFER
RFC 5730
.public static final java.lang.String OPERATION_UPDATE
RFC 5730
.public static final java.lang.String OPERATION_RESTORE
RFC 3915
.public static final java.lang.String OPERATION_AUTO_RENEW
public static final java.lang.String OPERATION_AUTO_DELETE
public static final java.lang.String OPERATION_AUTO_PURGE
public static final java.lang.String OPERATION_CUSTOM
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPChangeOperation()
setValue(String)
method.public EPPChangeOperation(java.lang.String aValue)
EPPChangeOperation
instance with a defined operation
value.aValue
- Operation value using one of the OPERATION
constants.public EPPChangeOperation(java.lang.String aValue, java.lang.String aOp)
EPPChangeOperation
instance 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 to OPERATION_CUSTOM
.aValue
- Operation value using one of the OPERATION
constants.aOp
- Sub-operation or name of operation when aValue
is
set to OPERATION_CUSTOM
.public boolean hasValue()
true
if the operation value is defined;
false
otherwise.public java.lang.String getValue()
OPERATION
constants.null
otherwise.public void setValue(java.lang.String aValue)
aValue
- Operation value, which should be one of the
OPERATION
constants.public boolean hasOp()
true
if the "op" attribute is defined;
false
otherwise.public java.lang.String getOp()
OPERATION_CUSTOM
.null
otherwise.public void setOp(java.lang.String aOp)
aOp
- "op" attribute value that defines the sub-operation
or name of the operation when the operation value is set to
OPERATION_CUSTOM
.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPChangeOperation
instance.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPChangeOperation
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPChangeOperation
element aElement DOM Element
tree.decode
in interface EPPCodecComponent
aElement
- - Root DOM Element to decode EPPChangeOperation
from.EPPDecodeException
- Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPChangeOperation
instance.encode
in interface EPPCodecComponent
aDocument
- - DOM Document that is being built. Used as an Element
factory.EPPChangeOperation
instance.EPPEncodeException
- - Unable to encode EPPChangeOperation
instance.public boolean equals(java.lang.Object aObject)
EPPChangeOperation
compare.equals
in class java.lang.Object
aObject
- EPPChangeOperation
instance to compare withtrue
if equal; false
otherwisepublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.