org.jboss.jca.common.metadata.ra.common
Class LocalizedXsdString

java.lang.Object
  extended by org.jboss.jca.common.metadata.ra.common.XsdString
      extended by org.jboss.jca.common.metadata.ra.common.LocalizedXsdString
All Implemented Interfaces:
Serializable, JCAMetadata, IdDecoratedMetadata, LocalizedMetadata

public class LocalizedXsdString
extends XsdString
implements LocalizedMetadata

Author:
Stefano Maestri
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.jca.common.metadata.ra.common.XsdString
id, value
 
Constructor Summary
LocalizedXsdString(String value, String id)
          Constructor for default language "en"
LocalizedXsdString(String value, String id, String lang)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getLang()
          Language used for this string at xml level.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class org.jboss.jca.common.metadata.ra.common.XsdString
getId, getValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizedXsdString

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

LocalizedXsdString

public LocalizedXsdString(String value,
                          String id)
Constructor for default language "en"

Parameters:
value - value of the String
id - XML ID
Method Detail

getLang

public String getLang()
Description copied from interface: LocalizedMetadata
Language used for this string at xml level. Value are like "en", "it", "fr" and so on

Specified by:
getLang in interface LocalizedMetadata
Returns:
lang

hashCode

public int hashCode()

Overrides:
hashCode in class XsdString
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class XsdString
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class XsdString
See Also:
Object.toString()


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)