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

java.lang.Object
  extended by org.jboss.jca.common.api.metadata.ra.LicenseType
All Implemented Interfaces:
Serializable, Cloneable, CopyableMetaData, JCAMetadata, IdDecoratedMetadata, MergeableMetadata<LicenseType>

public class LicenseType
extends Object
implements IdDecoratedMetadata, MergeableMetadata<LicenseType>, CopyableMetaData

Author:
Stefano Maestri
See Also:
Serialized Form

Nested Class Summary
static class LicenseType.Attribute
          A Attribute.
static class LicenseType.Tag
          A Tag.
 
Constructor Summary
LicenseType(List<LocalizedXsdString> description, boolean licenseRequired, String id)
           
 
Method Summary
 CopyableMetaData copy()
          Creates and returns a copy of this object.
 boolean equals(Object obj)
          
 List<LocalizedXsdString> getDescriptions()
           
 String getId()
          Return the String representing xml ID
 int hashCode()
          
 boolean isLicenseRequired()
           
 LicenseType merge(MergeableMetadata<?> jmd)
          Merge specification metadata with vendor metadata
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LicenseType

public LicenseType(List<LocalizedXsdString> description,
                   boolean licenseRequired,
                   String id)
Parameters:
description - description of the license
licenseRequired - mandatory boolena value
id - XML ID
Method Detail

getDescriptions

public List<LocalizedXsdString> getDescriptions()
Returns:
description

isLicenseRequired

public boolean isLicenseRequired()
Returns:
licenseRequired

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

merge

public LicenseType merge(MergeableMetadata<?> jmd)
                  throws Exception
Description copied from interface: MergeableMetadata
Merge specification metadata with vendor metadata

Specified by:
merge in interface MergeableMetadata<LicenseType>
Parameters:
jmd - The vendor metadata
Returns:
merged object
Throws:
Exception - Thrown if an error occurs

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 © 2008 Red Hat Middleware LLC (http://www.jboss.com/)