Package com.verisign.epp.codec.idntable
Class EPPIdnTableInfoTable
- java.lang.Object
-
- com.verisign.epp.codec.idntable.EPPIdnTableInfoTable
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPIdnTableInfoTable extends java.lang.Object implements EPPCodecComponent
EPPIdnTableInfoTableis used to represent the Internationalized Domain Name (IDN) table information for an IDN Table in a Table Info Form response.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPIdnTableInfoTable.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 forEPPIdnTableInfoTable.static java.lang.StringELM_NAMEXML root tag forEPPIdnTableInfoTable.
-
Constructor Summary
Constructors Constructor Description EPPIdnTableInfoTable()Default constructor forEPPIdnTableInfoTable.EPPIdnTableInfoTable(java.lang.String aName, EPPIdnTableInfoTable.Type aType, java.lang.String aDescription, java.util.Date aUpdateDate)Constructor forEPPIdnTableInfoTablethat takes the required 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 ofEPPIdnTableInfoTablewith 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.util.DategetEffectiveDate()Gets the OPTIONAL effective date of the IDN Table.java.lang.StringgetName()Gets the IDN Table identifier.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPIdnTableInfoTable.TypegetType()Gets the IDN Table typejava.util.DategetUpdateDate()Gets the date and time that the IDN Table was created or last updated.java.lang.StringgetUrl()Gets the OPTIONAL URL for downloading the IDN Table with the applicable set of code points and rules.java.lang.BooleangetVariantGen()Gets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.java.lang.StringgetVersion()Gets the OPTIONAL server defined version number of the IDN Table.booleanhasDescriptionLang()Is the description language defined?booleanhasEffectiveDate()Is the effective date defined?booleanhasUrl()Is the URL defined?booleanhasVariantGen()Is the variant generation flag defined?booleanhasVersion()Is the version 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.voidsetEffectiveDate(java.util.Date aEffectiveDate)Sets the OPTIONAL effective date of the IDN Table.voidsetName(java.lang.String aName)Sets the IDN Table identifier.voidsetType(EPPIdnTableInfoTable.Type aType)Sets the IDN Table type.voidsetUpdateDate(java.util.Date aUpdateDate)Sets the date and time that the IDN Table was created or last updated.voidsetUrl(java.lang.String aUrl)Sets the OPTIONAL URL for downloading the IDN Table with the applicable set of code points and rules.voidsetVariantGen(java.lang.Boolean aVariantGen)Sets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.voidsetVersion(java.lang.String aVersion)Sets the OPTIONAL server defined version number of the IDN Table.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 forEPPIdnTableInfoTable.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPIdnTableInfoTable.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPIdnTableInfoTable
public EPPIdnTableInfoTable()
Default constructor forEPPIdnTableInfoTable.
-
EPPIdnTableInfoTable
public EPPIdnTableInfoTable(java.lang.String aName, EPPIdnTableInfoTable.Type aType, java.lang.String aDescription, java.util.Date aUpdateDate)Constructor forEPPIdnTableInfoTablethat takes the required attributes.- Parameters:
aName- Table identifieraType- IDN Table typeaDescription- Server defined description of the IDN Table.aUpdateDate- Date and time the IDN Table was created or last updated.
-
-
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 EPPIdnTableInfoTable.Type getType()
Gets the IDN Table type- Returns:
- Type of the IDN table
-
setType
public void setType(EPPIdnTableInfoTable.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.
-
getUpdateDate
public java.util.Date getUpdateDate()
Gets the date and time that the IDN Table was created or last updated.- Returns:
- Date and time the IDN Table was created or last updated.
-
setUpdateDate
public void setUpdateDate(java.util.Date aUpdateDate)
Sets the date and time that the IDN Table was created or last updated.- Parameters:
aUpdateDate- Date and time the IDN Table was created or last updated.
-
hasVersion
public boolean hasVersion()
Is the version defined?- Returns:
trueif the version is defined;falseotherwise.
-
getVersion
public java.lang.String getVersion()
Gets the OPTIONAL server defined version number of the IDN Table.- Returns:
- Server defined version of of the IDN Table if defined;
nullotherwise.
-
setVersion
public void setVersion(java.lang.String aVersion)
Sets the OPTIONAL server defined version number of the IDN Table.- Parameters:
aVersion- Server defined version of of the IDN Table. Set tonullto clear the attribute.
-
hasEffectiveDate
public boolean hasEffectiveDate()
Is the effective date defined?- Returns:
trueif the effective date is defined;falseotherwise.
-
getEffectiveDate
public java.util.Date getEffectiveDate()
Gets the OPTIONAL effective date of the IDN Table.- Returns:
- The effective date of the IDN Table if defined;
nullotherwise.
-
setEffectiveDate
public void setEffectiveDate(java.util.Date aEffectiveDate)
Sets the OPTIONAL effective date of the IDN Table.- Parameters:
aEffectiveDate- The effective date of the IDN Table. Set tonullto clear the attribute.
-
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.
-
hasUrl
public boolean hasUrl()
Is the URL defined?- Returns:
trueif the URL is defined;falseotherwise.
-
getUrl
public java.lang.String getUrl()
Gets the OPTIONAL URL for downloading the IDN Table with the applicable set of code points and rules.- Returns:
- The URL for downloading the IDN Table with the applicable set of
code points and rules if defined;
nullotherwise.
-
setUrl
public void setUrl(java.lang.String aUrl)
Sets the OPTIONAL URL for downloading the IDN Table with the applicable set of code points and rules.- Parameters:
aUrl- The URL for downloading the IDN Table with the applicable set of code points and rules. Set tonullto clear the attribute.
-
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 encodingEPPIdnTableInfoTable
-
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
EPPIdnTableInfoTable - 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 ofEPPIdnTableInfoTablewith 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.
-
-