FileDocCategorySizeDatePackage
DescriptionMetaData.javaAPI DocJBoss 4.2.12780Fri Jul 13 21:01:18 BST 2007org.jboss.resource.metadata

DescriptionMetaData

public class DescriptionMetaData extends Object implements Serializable
Description meta data
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
static final long
serialVersionUID
private String
lang
The language
private String
description
The description
Constructors Summary
public DescriptionMetaData()
Create a new description meta data using the default langugage


                 
    
   
      this(null);
   
public DescriptionMetaData(String lang)
Create a new description meta data

param
lang the language

      if (lang == null)
         this.lang = Locale.getDefault().getLanguage();
      else
         this.lang = lang;
   
Methods Summary
public java.lang.StringgetDescription()
Get the description

return
the description

      return description;
   
public java.lang.StringgetLanguage()
Get the language

return
the language

      return lang;
   
public voidsetDescription(java.lang.String description)
Set the description

param
description the description

      this.description = description;
   
public java.lang.StringtoString()

      StringBuffer buffer = new StringBuffer();
      buffer.append("DescriptionMetaData").append('@");
      buffer.append(Integer.toHexString(System.identityHashCode(this)));
      buffer.append("[language=").append(lang);
      if (description != null)
         buffer.append(" description=").append(description);
      buffer.append(']");
      return buffer.toString();