org.jboss.jca.common.api.metadata.ra
Class LocalizedXsdString
java.lang.Object
org.jboss.jca.common.api.metadata.ra.XsdString
org.jboss.jca.common.api.metadata.ra.LocalizedXsdString
- All Implemented Interfaces:
- Serializable, Cloneable, CopyableMetaData, JCAMetadata, IdDecoratedMetadata, LocalizedMetadata
public class LocalizedXsdString
- extends XsdString
- implements LocalizedMetadata
- Author:
- Stefano Maestri
- See Also:
- Serialized Form
LocalizedXsdString
public LocalizedXsdString(String value,
String id,
String lang)
- Parameters:
value - value of the Stringid - XML IDlang - language
LocalizedXsdString
public LocalizedXsdString(String value,
String id)
- Constructor for default language "en"
- Parameters:
value - value of the Stringid - XML ID
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()
copy
public CopyableMetaData copy()
- Description copied from interface:
CopyableMetaData
- 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.
Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)