Package com.verisign.epp.codec.idnext
Class EPPIdnLangTag
java.lang.Object
com.verisign.epp.codec.idnext.EPPIdnLangTag
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPCodecComponent that encodes and decodes a IDN Lang Tag.
Title: EPP 1.0 RGP
Description: IDN Extension to the EPP SDK
Copyright: Copyright (c) 2004
Company: VeriSign
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an EPPIdnLangTag instanceEPPIdnLangTag(String aLang) Create a EPPIdnLangTag intance with the given Language -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPIdnLangTag.voidDecode the EPPIdnLangExtCrete componentSets all this instance's data in the given XML documentbooleanimplements a deepEPPIdnLangTagcompare.getLang()Returns the Language Code.Returns the XML namespace associated with theEPPCodecComponent.voidSets the Language Code
-
Field Details
-
ELM_NAME
Constant for the idn lang tag- See Also:
-
-
Constructor Details
-
EPPIdnLangTag
public EPPIdnLangTag()Create an EPPIdnLangTag instance -
EPPIdnLangTag
Create a EPPIdnLangTag intance with the given Language- Parameters:
aLang- the language
-
-
Method Details
-
clone
CloneEPPIdnLangTag.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPIdnLangTag - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Sets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
Decode the EPPIdnLangExtCrete component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode from- Throws:
EPPDecodeException- On decoding error
-
equals
implements a deepEPPIdnLangTagcompare. -
getLang
Returns the Language Code.- Returns:
- the language code
-
setLang
Sets the Language Code- Parameters:
aLang- the language code
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-