public class EPPHostStatus 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_STATUS_CLIENT_DELETE_PROHIBITED
Value of the client delete prohibited status in host mapping
|
static java.lang.String |
ELM_STATUS_CLIENT_UPDATE_PROHIBITED
Value of the client update prohibited status in host mapping
|
static java.lang.String |
ELM_STATUS_LINKED
Value of the linked status in host mapping
|
static java.lang.String |
ELM_STATUS_OK
Value of the OK status in host mapping
|
static java.lang.String |
ELM_STATUS_PENDING_CREATE
Value of the pending create status in host mapping
|
static java.lang.String |
ELM_STATUS_PENDING_DELETE
Value of the pending delete status in host mapping
|
static java.lang.String |
ELM_STATUS_PENDING_TRANSFER
Value of the pending transfer status in host mapping
|
static java.lang.String |
ELM_STATUS_PENDING_UPDATE
Value of the pending update status in host mapping
|
static java.lang.String |
ELM_STATUS_SERVER_DELETE_PROHIBITED
Value of the server delete prohibited status in host mapping
|
static java.lang.String |
ELM_STATUS_SERVER_UPDATE_PROHIBITED
Value of the server update prohibited status in host mapping
|
Constructor and Description |
---|
EPPHostStatus()
EPPHostStatus default constructor. |
EPPHostStatus(java.lang.String aStatus)
EPPHostStatus constructor that takes the host status as
argument. |
EPPHostStatus(java.lang.String aStatus,
java.lang.String aDesc)
EPPHostStatus constructor that takes the host status and a
status description. |
EPPHostStatus(java.lang.String aStatus,
java.lang.String aDesc,
java.lang.String aLang)
EPPHostStatus constructor that takes the host status and
the language as arguments. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPHostStatus . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPHostStatus 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 EPPHostStatus
instance.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPHostStatus 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 status description language.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getStatus()
Gets host 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 newLang)
Sets status description language.
|
void |
setStatus(java.lang.String newStatus)
Sets host 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_STATUS_OK
public static final java.lang.String ELM_STATUS_PENDING_DELETE
public static final java.lang.String ELM_STATUS_PENDING_CREATE
public static final java.lang.String ELM_STATUS_PENDING_UPDATE
public static final java.lang.String ELM_STATUS_PENDING_TRANSFER
public static final java.lang.String ELM_STATUS_CLIENT_DELETE_PROHIBITED
public static final java.lang.String ELM_STATUS_CLIENT_UPDATE_PROHIBITED
public static final java.lang.String ELM_STATUS_LINKED
public static final java.lang.String ELM_STATUS_SERVER_DELETE_PROHIBITED
public static final java.lang.String ELM_STATUS_SERVER_UPDATE_PROHIBITED
public static final java.lang.String ELM_DEFAULT_LANG
public EPPHostStatus()
EPPHostStatus
default constructor.public EPPHostStatus(java.lang.String aStatus)
EPPHostStatus
constructor that takes the host status as
argument.aStatus
- Domain status which should be one of the
ELM_STATUS
constants.public EPPHostStatus(java.lang.String aStatus, java.lang.String aDesc)
EPPHostStatus
constructor that takes the host status and a
status description.aStatus
- Domain status which should be one of the
ELM_STATUS
constants.aDesc
- A description of the status changepublic EPPHostStatus(java.lang.String aStatus, java.lang.String aDesc, java.lang.String aLang)
EPPHostStatus
constructor that takes the host 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
EPPHostStatus
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPHostStatus
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 EPPHostStatus 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 EPPHostStatus instance.public boolean equals(java.lang.Object aObject)
EPPHostStatus
compare.equals
in class java.lang.Object
aObject
- EPPHostStatus
instance to compare withpublic java.lang.String getLang()
ELM_DEFAULT_LANG
.public java.lang.String getStatus()
public void setStatus(java.lang.String newStatus)
newStatus
- Stringpublic 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 void setLang(java.lang.String newLang)
newLang
- Stringpublic java.lang.String getDescription()
public void setDescription(java.lang.String aDesc)
aDesc
- status descriptionpublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.