org.jboss.jca.common.api.metadata.ra
Class Icon

java.lang.Object
  extended by org.jboss.jca.common.api.metadata.ra.Icon
All Implemented Interfaces:
Serializable, Cloneable, CopyableMetaData, JCAMetadata, IdDecoratedMetadata, LocalizedMetadata

public class Icon
extends Object
implements IdDecoratedMetadata, LocalizedMetadata, CopyableMetaData

Author:
Stefano Maestri
See Also:
Serialized Form

Nested Class Summary
static class Icon.Attribute
          A Attribute.
static class Icon.Tag
          A Tag.
 
Constructor Summary
Icon(XsdString smallIcon, XsdString largeIcon, String id)
           
Icon(XsdString smallIcon, XsdString largeIcon, String lang, String id)
           
 
Method Summary
 CopyableMetaData copy()
          Creates and returns a copy of this object.
 boolean equals(Object obj)
          
 String getId()
          Return the String representing xml ID
 String getLang()
          Language used for this string at xml level.
 XsdString getLargeIcon()
           
 XsdString getSmallIcon()
           
 int hashCode()
          
 void setLang(String lng)
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Icon

public Icon(XsdString smallIcon,
            XsdString largeIcon,
            String lang,
            String id)
Parameters:
smallIcon - .
largeIcon - .
lang - .
id - .

Icon

public Icon(XsdString smallIcon,
            XsdString largeIcon,
            String id)
Parameters:
smallIcon - .
largeIcon - .
id - .
Method Detail

getSmallIcon

public XsdString getSmallIcon()
Returns:
smallIcon

getLargeIcon

public XsdString getLargeIcon()
Returns:
largeIcon

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

getId

public String getId()
Return the String representing xml ID

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

setLang

public void setLang(String lng)

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()

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
Returns:
a copy of this instance.


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)