public class EPPIdnTableDomainLabel extends java.lang.Object implements EPPCodecComponent
EPPIdnTableDomainLabel
is used to represent a domain name label
used in the Domain Check Form and the Domain Info Form. The domain label
consists of the domain name plus an optional "form" attribute that
defines whether the domain name is an A-label or U-label, with the default
being A-label.Modifier and Type | Class and Description |
---|---|
static class |
EPPIdnTableDomainLabel.Form
Label form types, that include:
A_LABEL A-label domain name label.
U_LABEL U-label domain name label.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPIdnTableDomainLabel . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPIdnTableDomainLabel . |
static java.lang.String |
FORM_A_LABEL |
static java.lang.String |
FORM_U_LABEL |
Constructor and Description |
---|
EPPIdnTableDomainLabel()
Default constructor for
EPPIdnTableDomainLabel . |
EPPIdnTableDomainLabel(java.lang.String aDomain)
Constructor for
EPPIdnTableDomainLabel that takes the domain
name. |
EPPIdnTableDomainLabel(java.lang.String aDomain,
EPPIdnTableDomainLabel.Form aForm)
Constructor for
EPPIdnTableDomainLabel that takes the domain
name and the form. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
clone an
EPPCodecComponent . |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPIdnTableDomainLabel with this
instance. |
java.lang.String |
getDomain()
Returns the domain name.
|
EPPIdnTableDomainLabel.Form |
getForm()
Gets the form of the domain name that should be either
Form.A_LABEL or }Form.U_LABEL}. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
void |
setDomain(java.lang.String aDomain)
Sets the domain name.
|
void |
setForm(EPPIdnTableDomainLabel.Form aForm)
Sets the form of the domain name that should be either
Form.A_LABEL or Form.U_LABEL . |
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
EPPIdnTableDomainLabel
.public static final java.lang.String ELM_NAME
EPPIdnTableDomainLabel
.public static final java.lang.String FORM_A_LABEL
public static final java.lang.String FORM_U_LABEL
public EPPIdnTableDomainLabel()
EPPIdnTableDomainLabel
.public EPPIdnTableDomainLabel(java.lang.String aDomain)
EPPIdnTableDomainLabel
that takes the domain
name.aDomain
- Domain namepublic EPPIdnTableDomainLabel(java.lang.String aDomain, EPPIdnTableDomainLabel.Form aForm)
EPPIdnTableDomainLabel
that takes the domain
name and the form.aDomain
- Domain nameaForm
- Either Form.A_LABEL
or Form.U_LABEL
public java.lang.String getDomain()
null
otherwise.public void setDomain(java.lang.String aDomain)
aDomain
- Domain namepublic EPPIdnTableDomainLabel.Form getForm()
Form.A_LABEL
or }Form.U_LABEL}.Form.A_LABEL
or Form.U_LABEL
public void setForm(EPPIdnTableDomainLabel.Form aForm)
Form.A_LABEL
or Form.U_LABEL
.aForm
- Either Form.A_LABEL
or Form.U_LABEL
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factoryEPPEncodeException
- Error encoding EPPIdnTableDomainLabel
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values.decode
in interface EPPCodecComponent
aElement
- Element
to decodeEPPDecodeException
- Error decoding Element
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPIdnTableDomainLabel
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic 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 boolean equals(java.lang.Object aObject)
EPPIdnTableDomainLabel
with this
instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if equal; false
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.