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.String
ELM_NAME
Constant 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.Object
clone()
CloneEPPIdnLangTag
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPIdnLangExtCrete componentorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML documentboolean
equals(java.lang.Object aObject)
implements a deepEPPIdnLangTag
compare.java.lang.String
getLang()
Returns the Language Code.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.void
setLang(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.CloneNotSupportedException
CloneEPPIdnLangTag
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 EPPEncodeException
Sets all this instance's data in the given XML document- Specified by:
encode
in 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 EPPDecodeException
Decode the EPPIdnLangExtCrete component- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
-Element
to decode from- Throws:
EPPDecodeException
- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPIdnLangTag
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPIdnLangTag
instance 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:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-