Package com.verisign.epp.codec.idntable
Class EPPIdnTableDomainLabel
java.lang.Object
com.verisign.epp.codec.idntable.EPPIdnTableDomainLabel
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLabel form types, that include:
A_LABELA-label domain name label.U_LABELU-label domain name label. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPIdnTableDomainLabel.EPPIdnTableDomainLabel(String aDomain) Constructor forEPPIdnTableDomainLabelthat takes the domain name.EPPIdnTableDomainLabel(String aDomain, EPPIdnTableDomainLabel.Form aForm) Constructor forEPPIdnTableDomainLabelthat takes the domain name and the form. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPIdnTableDomainLabelwith this instance.Returns the domain name.getForm()Gets the form of the domain name that should be eitherForm.A_LABELor }Form.U_LABEL}.Returns the XML namespace associated with theEPPCodecComponent.voidSets the domain name.voidSets the form of the domain name that should be eitherForm.A_LABELorForm.U_LABEL.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPIdnTableDomainLabel.- See Also:
-
ELM_NAME
XML root tag forEPPIdnTableDomainLabel.- See Also:
-
FORM_A_LABEL
- See Also:
-
FORM_U_LABEL
- See Also:
-
-
Constructor Details
-
EPPIdnTableDomainLabel
public EPPIdnTableDomainLabel()Default constructor forEPPIdnTableDomainLabel. -
EPPIdnTableDomainLabel
Constructor forEPPIdnTableDomainLabelthat takes the domain name.- Parameters:
aDomain- Domain name
-
EPPIdnTableDomainLabel
Constructor forEPPIdnTableDomainLabelthat takes the domain name and the form.- Parameters:
aDomain- Domain nameaForm- EitherForm.A_LABELorForm.U_LABEL
-
-
Method Details
-
getDomain
Returns the domain name.- Returns:
- Domain name if defined:
nullotherwise.
-
setDomain
Sets the domain name.- Parameters:
aDomain- Domain name
-
getForm
Gets the form of the domain name that should be eitherForm.A_LABELor }Form.U_LABEL}.- Returns:
- Either
Form.A_LABELorForm.U_LABEL
-
setForm
Sets the form of the domain name that should be eitherForm.A_LABELorForm.U_LABEL.- Parameters:
aForm- EitherForm.A_LABELorForm.U_LABEL
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPIdnTableDomainLabel
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPIdnTableDomainLabel - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPIdnTableDomainLabelwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-