Package com.verisign.epp.codec.idntable
Class EPPIdnTableInfoDomainTable
- java.lang.Object
-
- com.verisign.epp.codec.idntable.EPPIdnTableInfoDomainTable
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPIdnTableInfoDomainTable extends java.lang.Object implements EPPCodecComponent
EPPIdnTableInfoDomainTableis used to represent the Internationalized Domain Name (IDN) table information for a domain name in a Domain Info Form response.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPIdnTableInfoDomainTable.TypeTable types, that include:
LANGUAGEthat represents a Language IDN Table.SCRIPTthat represents a Script IDN Table.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPIdnTableInfoDomainTable.static java.lang.StringELM_NAMEXML root tag forEPPIdnTableInfoDomainTable.
-
Constructor Summary
Constructors Constructor Description EPPIdnTableInfoDomainTable()Default constructor forEPPIdnTableInfoDomainTable.EPPIdnTableInfoDomainTable(java.lang.String aName, EPPIdnTableInfoDomainTable.Type aType, java.lang.String aDescription)Constructor forEPPIdnTableInfoDomainTablethat takes the required attributes.EPPIdnTableInfoDomainTable(java.lang.String aName, EPPIdnTableInfoDomainTable.Type aType, java.lang.String aDescription, java.lang.String aDescriptionLang, java.lang.Boolean aVariantGen)Constructor forEPPIdnTableInfoDomainTablethat takes the all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()clone anEPPCodecComponent.voiddecode(org.w3c.dom.Element aElement)decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPIdnTableInfoDomainTablewith this instance.java.lang.StringgetDescription()Gets the server defined description of the IDN Table.java.lang.StringgetDescriptionLang()Gets the language of the description of the IDN Table with the default value of "en".java.lang.StringgetName()Gets the IDN Table identifier.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPIdnTableInfoDomainTable.TypegetType()Gets the IDN Table typejava.lang.BooleangetVariantGen()Gets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.booleanhasDescriptionLang()Is the description language defined?booleanhasVariantGen()Is the variant generation flag defined?voidsetDescription(java.lang.String aDescription)Sets the server defined description of the IDN Table.voidsetDescriptionLang(java.lang.String aDescriptionLang)Sets the language of the description of the IDN Table.voidsetName(java.lang.String aName)Sets the IDN Table identifier.voidsetType(EPPIdnTableInfoDomainTable.Type aType)Sets the IDN Table type.voidsetVariantGen(java.lang.Boolean aVariantGen)Sets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPIdnTableInfoDomainTable.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPIdnTableInfoDomainTable.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPIdnTableInfoDomainTable
public EPPIdnTableInfoDomainTable()
Default constructor forEPPIdnTableInfoDomainTable.
-
EPPIdnTableInfoDomainTable
public EPPIdnTableInfoDomainTable(java.lang.String aName, EPPIdnTableInfoDomainTable.Type aType, java.lang.String aDescription)Constructor forEPPIdnTableInfoDomainTablethat takes the required attributes.- Parameters:
aName- Table identifieraType- IDN Table typeaDescription- Server defined description of the IDN Table.
-
EPPIdnTableInfoDomainTable
public EPPIdnTableInfoDomainTable(java.lang.String aName, EPPIdnTableInfoDomainTable.Type aType, java.lang.String aDescription, java.lang.String aDescriptionLang, java.lang.Boolean aVariantGen)Constructor forEPPIdnTableInfoDomainTablethat takes the all attributes.- Parameters:
aName- Table identifieraType- IDN Table typeaDescription- Server defined description of the IDN Table.aDescriptionLang- Language of the descriptionaVariantGen- Flag indicating that domains created with the IDN Table will have IDN variants generated.
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the IDN Table identifier.- Returns:
- The IDN Table identifier
-
setName
public void setName(java.lang.String aName)
Sets the IDN Table identifier.- Parameters:
aName- The IDN Table identifier.
-
getType
public EPPIdnTableInfoDomainTable.Type getType()
Gets the IDN Table type- Returns:
- Type of the IDN table
-
setType
public void setType(EPPIdnTableInfoDomainTable.Type aType)
Sets the IDN Table type.- Parameters:
aType- IDN type
-
getDescription
public java.lang.String getDescription()
Gets the server defined description of the IDN Table.- Returns:
- The server defined description of the IDN Table.
-
setDescription
public void setDescription(java.lang.String aDescription)
Sets the server defined description of the IDN Table.- Parameters:
aDescription- The server defined description of the IDN Table.
-
hasDescriptionLang
public boolean hasDescriptionLang()
Is the description language defined?- Returns:
trueif the description language is defined;falseotherwise.
-
getDescriptionLang
public java.lang.String getDescriptionLang()
Gets the language of the description of the IDN Table with the default value of "en".- Returns:
- The language of the description.
-
setDescriptionLang
public void setDescriptionLang(java.lang.String aDescriptionLang)
Sets the language of the description of the IDN Table.- Parameters:
aDescriptionLang- The language of the description.
-
hasVariantGen
public boolean hasVariantGen()
Is the variant generation flag defined?- Returns:
trueif the variant generation flag is defined;falseotherwise.
-
getVariantGen
public java.lang.Boolean getVariantGen()
Gets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.- Returns:
trueorfalseindicating that the domains created using the IDN Table will have IDN variants generated if defined;nullotherwise.
-
setVariantGen
public void setVariantGen(java.lang.Boolean aVariantGen)
Sets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.- Parameters:
aVariantGen- Non-nullvalue indicating that the domains created using the IDN Table will have IDN variants generated. Usenullto clear the flag.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencode 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 encodingEPPIdnTableInfoDomainTable
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptiondecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPIdnTableInfoDomainTable - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPIdnTableInfoDomainTablewith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-