org.jboss.resource.metadata
Class DescriptionMetaDataContainer

java.lang.Object
  extended byorg.jboss.resource.metadata.DescriptionMetaDataContainer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthenticationMechanismMetaData (src) , ConfigPropertyMetaData (src) , LicenseMetaData (src) , RequiredConfigPropertyMetaData (src) , SecurityPermissionMetaData (src)

public class DescriptionMetaDataContainer
extends java.lang.Object
implements java.io.Serializable

An abstract class for meta data that has descriptions

See Also:
Serialized Form

Constructor Summary
DescriptionMetaDataContainer()
           
 
Method Summary
 void addDescription(DescriptionMetaData (src)  dmd)
          Add a description
 DescriptionMetaData (src) getDescription()
          Get the desription for the default language or the first description if there is no default
 DescriptionMetaData (src) getDescription(java.lang.String lang)
          Get the description for the give language
 java.util.Collection getDescriptions()
          Get the descriptions
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescriptionMetaDataContainer

public DescriptionMetaDataContainer()
Method Detail

getDescription

public DescriptionMetaData (src)  getDescription()
Get the desription for the default language or the first description if there is no default

Returns:
the description for the default language

getDescription

public DescriptionMetaData (src)  getDescription(java.lang.String lang)
Get the description for the give language

Parameters:
lang - the language
Returns:
the description

addDescription

public void addDescription(DescriptionMetaData (src)  dmd)
Add a description

Parameters:
dmd - the description

getDescriptions

public java.util.Collection getDescriptions()
Get the descriptions

Returns:
the descriptions

toString

public java.lang.String toString()