Package com.verisign.epp.codec.idnext
Class EPPIdnLangTag
- java.lang.Object
-
- com.verisign.epp.codec.idnext.EPPIdnLangTag
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPIdnLangTag extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEConstant for the idn lang tag
-
Constructor Summary
Constructors Constructor Description EPPIdnLangTag()Create an EPPIdnLangTag instanceEPPIdnLangTag(java.lang.String aLang)Create a EPPIdnLangTag intance with the given Language
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPIdnLangTag.voiddecode(org.w3c.dom.Element aElement)Decode the EPPIdnLangExtCrete componentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPIdnLangTagcompare.java.lang.StringgetLang()Returns the Language Code.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetLang(java.lang.String aLang)Sets the Language Code
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the idn lang tag- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPIdnLangTag.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPIdnLangTag - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionSets 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPIdnLangExtCrete component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode from- Throws:
EPPDecodeException- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPIdnLangTagcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPIdnLangTaginstance to compare with- Returns:
- true if equal false otherwise
-
getLang
public java.lang.String getLang()
Returns the Language Code.- Returns:
- the language code
-
setLang
public void setLang(java.lang.String aLang)
Sets the Language Code- Parameters:
aLang- the language code
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-