Class LocalizedXsdString

java.lang.Object
org.jboss.jca.common.api.metadata.spec.XsdString
org.jboss.jca.common.api.metadata.spec.LocalizedXsdString
All Implemented Interfaces:
Serializable, Cloneable, CopyableMetaData, JCAMetadata, IdDecoratedMetadata, LocalizedMetadata

public class LocalizedXsdString extends XsdString implements LocalizedMetadata
A localized string
Author:
Stefano Maestri, Jesper Pedersen
See Also:
  • Constructor Details

    • LocalizedXsdString

      public LocalizedXsdString(String value, String id)
      Constructor
      Parameters:
      value - value of the String
      id - XML ID
    • LocalizedXsdString

      public LocalizedXsdString(String value, String id, String lang)
      Constructor
      Parameters:
      value - value of the String
      id - XML ID
      lang - language
    • LocalizedXsdString

      public LocalizedXsdString(String value, String id, String lang, String tag)
      Constructor
      Parameters:
      value - value of the String
      id - XML ID
      lang - language
      tag - name
  • Method Details

    • getLang

      public String getLang()
      Get the language
      Specified by:
      getLang in interface LocalizedMetadata
      Returns:
      The value
    • setLang

      public void setLang(String lng)
      Set the language
      Parameters:
      lng - The value
    • copy

      public CopyableMetaData copy()
      Creates and returns a copy of this object. Ther copy is done in deep of all elements. It isn't formally a clone of the instance since it does not respect the assumption for which returned clone of cloneMethod are instance of Object
      Specified by:
      copy in interface CopyableMetaData
      Overrides:
      copy in class XsdString
      Returns:
      a copy of this instance.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class XsdString
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class XsdString
    • toString

      public String toString()
      Overrides:
      toString in class XsdString