org.apache.jetspeed.util
Class MetaData

java.lang.Object
  extended byorg.apache.jetspeed.util.MetaData
All Implemented Interfaces:
java.io.Serializable

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

A class for storing MetaData about an object.

Version:
$Id: MetaData.java,v 1.13 2005/03/21 18:21:44 sgala Exp $
Author:
Raphaël Luta
See Also:
Serialized Form

Constructor Summary
MetaData()
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description for the default locale
 java.lang.String getDescription(java.util.Locale locale)
          Returns the title for the given locale, if the title isn't defined in this locale or the locale, return the default title
 java.lang.String getImage()
          Returns the descriptive image for the default locale
 java.lang.String getImage(java.util.Locale locale)
          Returns the descriptive image for the given locale, if the image isn't defined in this locale or the locale, return the default image
 java.lang.String getTitle()
          Returns the title for the default locale
 java.lang.String getTitle(java.util.Locale locale)
          Returns the title for the given locale, if the title isn't defined in this locale or the locale, return the default title
 void merge(MetaData meta)
          Merges the properties defined in the param MetaData into the current one.
 void setDescription(java.lang.String description)
          Sets a description in the default locale
 void setDescription(java.lang.String description, java.util.Locale locale)
          Sets a description for the given locale
 void setImage(java.lang.String image)
          Sets a descriptive image in the default locale
 void setImage(java.lang.String image, java.util.Locale locale)
          Sets a descriptive image for the given locale
 void setTitle(java.lang.String title)
          Sets a title in the default locale
 void setTitle(java.lang.String title, java.util.Locale locale)
          Sets a title for the given locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaData

public MetaData()
Method Detail

setTitle

public void setTitle(java.lang.String title)
Sets a title in the default locale


setTitle

public void setTitle(java.lang.String title,
                     java.util.Locale locale)
Sets a title for the given locale


getTitle

public java.lang.String getTitle()
Returns the title for the default locale


getTitle

public java.lang.String getTitle(java.util.Locale locale)
Returns the title for the given locale, if the title isn't defined in this locale or the locale, return the default title


setImage

public void setImage(java.lang.String image)
Sets a descriptive image in the default locale


setImage

public void setImage(java.lang.String image,
                     java.util.Locale locale)
Sets a descriptive image for the given locale


getImage

public java.lang.String getImage()
Returns the descriptive image for the default locale


getImage

public java.lang.String getImage(java.util.Locale locale)
Returns the descriptive image for the given locale, if the image isn't defined in this locale or the locale, return the default image


setDescription

public void setDescription(java.lang.String description)
Sets a description in the default locale


setDescription

public void setDescription(java.lang.String description,
                           java.util.Locale locale)
Sets a description for the given locale


getDescription

public java.lang.String getDescription()
Returns the description for the default locale


getDescription

public java.lang.String getDescription(java.util.Locale locale)
Returns the title for the given locale, if the title isn't defined in this locale or the locale, return the default title


merge

public void merge(MetaData meta)
Merges the properties defined in the param MetaData into the current one. If values are defined in both object for the same key,the one passed as parameter updates the previous one



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.