Class EPPIdnLangTag

java.lang.Object
com.verisign.epp.codec.idnext.EPPIdnLangTag
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPIdnLangTag extends 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:
  • Field Details

  • Constructor Details

    • EPPIdnLangTag

      public EPPIdnLangTag()
      Create an EPPIdnLangTag instance
    • EPPIdnLangTag

      public EPPIdnLangTag(String aLang)
      Create a EPPIdnLangTag intance with the given Language
      Parameters:
      aLang - the language
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPIdnLangTag.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPIdnLangTag
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Sets all this instance's data in the given XML document
      Specified by:
      encode in interface EPPCodecComponent
      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(Element aElement) throws EPPDecodeException
      Decode the EPPIdnLangExtCrete component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode from
      Throws:
      EPPDecodeException - On decoding error
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPIdnLangTag compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPIdnLangTag instance to compare with
      Returns:
      true if equal false otherwise
    • getLang

      public String getLang()
      Returns the Language Code.
      Returns:
      the language code
    • setLang

      public void setLang(String aLang)
      Sets the Language Code
      Parameters:
      aLang - the language code
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.