Package com.verisign.epp.codec.idntable
Class EPPIdnTableInfoTable
java.lang.Object
com.verisign.epp.codec.idntable.EPPIdnTableInfoTable
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPIdnTableInfoTable is used to represent the Internationalized
Domain Name (IDN) table information for an IDN Table in a Table Info Form
response.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTable types, that include:
LANGUAGEthat represents a Language IDN Table.SCRIPTthat represents a Script IDN Table. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPIdnTableInfoTable.EPPIdnTableInfoTable(String aName, EPPIdnTableInfoTable.Type aType, String aDescription, Date aUpdateDate) Constructor forEPPIdnTableInfoTablethat takes the required attributes. -
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 ofEPPIdnTableInfoTablewith this instance.Gets the server defined description of the IDN Table.Gets the language of the description of the IDN Table with the default value of "en".Gets the OPTIONAL effective date of the IDN Table.getName()Gets the IDN Table identifier.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the IDN Table typeGets the date and time that the IDN Table was created or last updated.getUrl()Gets the OPTIONAL URL for downloading the IDN Table with the applicable set of code points and rules.Gets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.Gets the OPTIONAL server defined version number of the IDN Table.booleanIs the description language defined?booleanIs the effective date defined?booleanhasUrl()Is the URL defined?booleanIs the variant generation flag defined?booleanIs the version defined?voidsetDescription(String aDescription) Sets the server defined description of the IDN Table.voidsetDescriptionLang(String aDescriptionLang) Sets the language of the description of the IDN Table.voidsetEffectiveDate(Date aEffectiveDate) Sets the OPTIONAL effective date of the IDN Table.voidSets the IDN Table identifier.voidsetType(EPPIdnTableInfoTable.Type aType) Sets the IDN Table type.voidsetUpdateDate(Date aUpdateDate) Sets the date and time that the IDN Table was created or last updated.voidSets the OPTIONAL URL for downloading the IDN Table with the applicable set of code points and rules.voidsetVariantGen(Boolean aVariantGen) Sets the OPTIONAL boolean flag indicating that domains created using the IDN Table will have IDN variants generated.voidsetVersion(String aVersion) Sets the OPTIONAL server defined version number of the IDN Table.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPIdnTableInfoTable.- See Also:
-
ELM_NAME
XML root tag forEPPIdnTableInfoTable.- See Also:
-
-
Constructor Details
-
EPPIdnTableInfoTable
public EPPIdnTableInfoTable()Default constructor forEPPIdnTableInfoTable. -
EPPIdnTableInfoTable
public EPPIdnTableInfoTable(String aName, EPPIdnTableInfoTable.Type aType, String aDescription, 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 Details
-
getName
Gets the IDN Table identifier.- Returns:
- The IDN Table identifier
-
setName
Sets the IDN Table identifier.- Parameters:
aName- The IDN Table identifier.
-
getType
Gets the IDN Table type- Returns:
- Type of the IDN table
-
setType
Sets the IDN Table type.- Parameters:
aType- IDN type
-
getDescription
Gets the server defined description of the IDN Table.- Returns:
- The server defined description of the IDN Table.
-
setDescription
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
Gets the language of the description of the IDN Table with the default value of "en".- Returns:
- The language of the description.
-
setDescriptionLang
Sets the language of the description of the IDN Table.- Parameters:
aDescriptionLang- The language of the description.
-
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
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
Gets the OPTIONAL server defined version number of the IDN Table.- Returns:
- Server defined version of of the IDN Table if defined;
nullotherwise.
-
setVersion
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
Gets the OPTIONAL effective date of the IDN Table.- Returns:
- The effective date of the IDN Table if defined;
nullotherwise.
-
setEffectiveDate
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
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
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
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
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
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 encodingEPPIdnTableInfoTable
-
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
EPPIdnTableInfoTable - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPIdnTableInfoTablewith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-