org.apache.jetspeed.om.impl
Class LanguageImpl

java.lang.Object
  extended byorg.apache.jetspeed.om.impl.LanguageImpl
All Implemented Interfaces:
org.apache.pluto.om.common.Language, org.apache.pluto.om.Model, org.apache.jetspeed.om.common.MutableLanguage, Serializable

public class LanguageImpl
extends Object
implements org.apache.jetspeed.om.common.MutableLanguage, Serializable

LanguageImpl
Okay, base Language really has nothing to really do at all with language per se. It actually represents the locallized title and short-title attributes of a portlet's definition. It also contains a resource bundle for the specifc locale.
TODO: org.apache.pluto.om.common.Language should be seperated into TODO a Language class that just contains the resource bundle and TODO a Title class that contains a localized title and short title.

Version:
$Id: LanguageImpl.java 191371 2005-06-19 23:24:28Z shinsuke $
Author:
Scott T. Weaver
See Also:
Serialized Form

Nested Class Summary
private static class LanguageImpl.DefaultsResourceBundle
           
 
Field Summary
protected  long id
          This field can be used by persistence tools for storing PK info Otherwise it has no effect on the functioning of the portal.
static String JAVAX_PORTLET_KEYWORDS
           
static String JAVAX_PORTLET_SHORT_TITLE
           
static String JAVAX_PORTLET_TITLE
           
private  Collection keywords
           
private  Locale locale
           
protected  long portletId
           
private  ResourceBundle resourceBundle
           
private  String shortTitle
           
private  String title
           
 
Constructor Summary
LanguageImpl()
           
LanguageImpl(Locale locale, ResourceBundle bundle)
           
LanguageImpl(Locale locale, ResourceBundle bundle, String defaultTitle, String defaultShortTitle, String defaultKeyWords)
           
LanguageImpl(Locale locale, String title)
           
 
Method Summary
 boolean equals(Object obj)
           
 Iterator getKeywords()
           
 Locale getLocale()
           
 ResourceBundle getResourceBundle()
           
 String getShortTitle()
           
 String getTitle()
           
 int hashCode()
           
 void setKeywords(Collection keywords)
           
 void setKeywords(String keywordStr)
           setKeywords
 void setLocale(Locale locale)
           
 void setShortTitle(String title)
           
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVAX_PORTLET_KEYWORDS

public static final String JAVAX_PORTLET_KEYWORDS
See Also:
Constant Field Values

JAVAX_PORTLET_SHORT_TITLE

public static final String JAVAX_PORTLET_SHORT_TITLE
See Also:
Constant Field Values

JAVAX_PORTLET_TITLE

public static final String JAVAX_PORTLET_TITLE
See Also:
Constant Field Values

locale

private Locale locale

title

private String title

shortTitle

private String shortTitle

keywords

private Collection keywords

resourceBundle

private ResourceBundle resourceBundle

id

protected long id
This field can be used by persistence tools for storing PK info Otherwise it has no effect on the functioning of the portal.


portletId

protected long portletId
Constructor Detail

LanguageImpl

public LanguageImpl()

LanguageImpl

public LanguageImpl(Locale locale,
                    String title)

LanguageImpl

public LanguageImpl(Locale locale,
                    ResourceBundle bundle,
                    String defaultTitle,
                    String defaultShortTitle,
                    String defaultKeyWords)

LanguageImpl

public LanguageImpl(Locale locale,
                    ResourceBundle bundle)
Method Detail

getLocale

public Locale getLocale()
Specified by:
getLocale in interface org.apache.pluto.om.common.Language
See Also:
Language.getLocale()

getTitle

public String getTitle()
Specified by:
getTitle in interface org.apache.pluto.om.common.Language
See Also:
Language.getTitle()

getShortTitle

public String getShortTitle()
Specified by:
getShortTitle in interface org.apache.pluto.om.common.Language
See Also:
Language.getShortTitle()

getKeywords

public Iterator getKeywords()
Specified by:
getKeywords in interface org.apache.pluto.om.common.Language
See Also:
Language.getKeywords()

getResourceBundle

public ResourceBundle getResourceBundle()
Specified by:
getResourceBundle in interface org.apache.pluto.om.common.Language
See Also:
Language.getResourceBundle()

setLocale

public void setLocale(Locale locale)
Specified by:
setLocale in interface org.apache.jetspeed.om.common.MutableLanguage
See Also:
org.apache.pluto.om.common.LanguageCtrl#setLocale(java.util.Locale)

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface org.apache.jetspeed.om.common.MutableLanguage
See Also:
org.apache.pluto.om.common.LanguageCtrl#setTitle(java.lang.String)

setShortTitle

public void setShortTitle(String title)
Specified by:
setShortTitle in interface org.apache.jetspeed.om.common.MutableLanguage
See Also:
org.apache.pluto.om.common.LanguageCtrl#setShortTitle(java.lang.String)

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

setKeywords

public void setKeywords(Collection keywords)
Specified by:
setKeywords in interface org.apache.jetspeed.om.common.MutableLanguage
See Also:
org.apache.jetspeed.om.common.LanguageComposite#setKeywords(java.util.Collection)

setKeywords

public void setKeywords(String keywordStr)

setKeywords

A comma delimited list of keywords



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