public class EPPDomainStatus extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_DEFAULT_LANG
Default Language -- English "en"
|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPDomainStatus . |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPDomainStatus root element. |
static java.lang.String |
ELM_STATUS_CLIENT_DELETE_PROHIBITED
Value of the client delete prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_CLIENT_HOLD
Value of the client hold status in domain mapping
|
static java.lang.String |
ELM_STATUS_CLIENT_RENEW_PROHIBITED
Value of the client renew prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_CLIENT_TRANSFER_PROHIBITED
Value of the client transfer prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_CLIENT_UPDATE_PROHIBITED
Value of the client update prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_INACTIVE
Value of the inactive status in domain mapping
|
static java.lang.String |
ELM_STATUS_OK
Value of the OK status in domain mapping
|
static java.lang.String |
ELM_STATUS_PENDING_CREATE
Value of the pending create status in domain mapping
|
static java.lang.String |
ELM_STATUS_PENDING_DELETE
Value of the pending delete status in domain mapping
|
static java.lang.String |
ELM_STATUS_PENDING_RENEW
Value of the pending renew status in domain mapping
|
static java.lang.String |
ELM_STATUS_PENDING_TRANSFER
Value of the pending transfer status in domain mapping
|
static java.lang.String |
ELM_STATUS_PENDING_UPDATE
Value of the pending update status in domain mapping
|
static java.lang.String |
ELM_STATUS_SERVER_DELETE_PROHIBITED
Value of the server delete prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_SERVER_HOLD
Value of the server hold status in domain mapping
|
static java.lang.String |
ELM_STATUS_SERVER_RENEW_PROHIBITED
Value of the server renew prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_SERVER_TRANSFER_PROHIBITED
Value of the server transfer prohibited status in domain mapping
|
static java.lang.String |
ELM_STATUS_SERVER_UPDATE_PROHIBITED
Value of the server update prohibited status in domain mapping
|
Constructor and Description |
---|
EPPDomainStatus()
EPPDomainStatus default constructor. |
EPPDomainStatus(java.lang.String aStatus)
EPPDomainStatus constructor that takes the domain status as
argument. |
EPPDomainStatus(java.lang.String aStatus,
java.lang.String aDesc)
EPPDomainStatus constructor that takes the domain status and a
status description. |
EPPDomainStatus(java.lang.String aStatus,
java.lang.String aDesc,
java.lang.String aLang)
EPPDomainStatus constructor that takes the domain status and the
language as arguments. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPDomainStatus . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPDomainStatus attributes from the aElement DOM Element tree.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPDomainStatus
instance.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPDomainStatus compare. |
java.lang.String |
getDescription()
Gets the status description, which is free form text describing the
rationale for the status.
|
java.lang.String |
getLang()
Get language of the status.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getStatus()
Get domain status.
|
void |
setDescription(java.lang.String aDesc)
Sets the status description, which is free form text describing the
rationale for the status.
|
void |
setLang(java.lang.String aLang)
Set language of domain status.
|
void |
setStatus(java.lang.String aStatus)
Set domain status.
|
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 ELM_LOCALNAME
EPPDomainStatus
.public static final java.lang.String ELM_NAME
EPPDomainStatus
root element.public static final java.lang.String ELM_STATUS_OK
public static final java.lang.String ELM_STATUS_SERVER_HOLD
public static final java.lang.String ELM_STATUS_SERVER_RENEW_PROHIBITED
public static final java.lang.String ELM_STATUS_SERVER_TRANSFER_PROHIBITED
public static final java.lang.String ELM_STATUS_SERVER_UPDATE_PROHIBITED
public static final java.lang.String ELM_STATUS_SERVER_DELETE_PROHIBITED
public static final java.lang.String ELM_STATUS_INACTIVE
public static final java.lang.String ELM_STATUS_PENDING_CREATE
public static final java.lang.String ELM_STATUS_PENDING_DELETE
public static final java.lang.String ELM_STATUS_PENDING_RENEW
public static final java.lang.String ELM_STATUS_PENDING_TRANSFER
public static final java.lang.String ELM_STATUS_PENDING_UPDATE
public static final java.lang.String ELM_STATUS_CLIENT_HOLD
public static final java.lang.String ELM_DEFAULT_LANG
public static final java.lang.String ELM_STATUS_CLIENT_TRANSFER_PROHIBITED
public static final java.lang.String ELM_STATUS_CLIENT_UPDATE_PROHIBITED
public static final java.lang.String ELM_STATUS_CLIENT_RENEW_PROHIBITED
public static final java.lang.String ELM_STATUS_CLIENT_DELETE_PROHIBITED
public EPPDomainStatus()
EPPDomainStatus
default constructor.public EPPDomainStatus(java.lang.String aStatus)
EPPDomainStatus
constructor that takes the domain status as
argument.aStatus
- String Domain statuspublic EPPDomainStatus(java.lang.String aStatus, java.lang.String aDesc)
EPPDomainStatus
constructor that takes the domain status and a
status description.aStatus
- Domain status which should be one of the ELM_STATUS
constants.aDesc
- A description of the status changepublic EPPDomainStatus(java.lang.String aStatus, java.lang.String aDesc, java.lang.String aLang)
EPPDomainStatus
constructor that takes the domain status and the
language as arguments.aStatus
- Domain status which should be one of the ELM_STATUS
constants.aDesc
- A description of the status changeaLang
- Language of the status descriptionpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDomainStatus
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPDomainStatus
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- - Root DOM Element to decode EPPDomainStatus from.EPPDecodeException
- Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- - DOM Document that is being built. Used as an Element factory.EPPEncodeException
- - Unable to encode EPPDomainStatus instance.public boolean equals(java.lang.Object aObject)
EPPDomainStatus
compare.equals
in class java.lang.Object
aObject
- EPPDomainStatus
instance to compare withtrue
if equal; false
otherwise.public java.lang.String getLang()
public java.lang.String getStatus()
public void setLang(java.lang.String aLang)
aLang
- Stringpublic void setStatus(java.lang.String aStatus)
aStatus
- Stringpublic java.lang.String getDescription()
public void setDescription(java.lang.String aDesc)
aDesc
- status descriptionpublic 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
.