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

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

public class XsdString
extends Object
implements IdDecoratedMetadata

Author:
Stefano Maestri
See Also:
Serialized Form

Field Summary
protected  String id
          XML ID
protected  String value
          the actual String value
 
Constructor Summary
XsdString(String value, String id)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getId()
          Return the String representing xml ID
 String getValue()
           
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected final String value
the actual String value


id

protected final String id
XML ID

Constructor Detail

XsdString

public XsdString(String value,
                 String id)
Parameters:
value - the actual String value
id - XML ID
Method Detail

getValue

public String getValue()
Returns:
value

getId

public String getId()
Return the String representing xml ID

Specified by:
getId in interface IdDecoratedMetadata
Returns:
the XML ID
See Also:
IdDecoratedMetadata.getId()

hashCode

public int hashCode()

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

equals

public boolean equals(Object obj)

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

toString

public String toString()

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


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