org.apache.jetspeed.om.impl
Class LanguageImpl
java.lang.Object
java.util.ResourceBundle
org.apache.jetspeed.om.impl.LanguageImpl
- All Implemented Interfaces:
- java.io.Serializable, MutableLanguage, org.apache.pluto.om.common.Language, org.apache.pluto.om.Model
public class LanguageImpl
- extends java.util.ResourceBundle
- implements MutableLanguage, java.io.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 516448 2007-03-09 16:25:47Z ate $
- Author:
- Scott T. Weaver , Ate Douma
- See Also:
- Serialized Form
Fields inherited from class java.util.ResourceBundle |
parent |
Methods inherited from class java.util.ResourceBundle |
getBundle, getBundle, getBundle, getObject, getString, getStringArray, setParent |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JAVAX_PORTLET_KEYWORDS
public static final java.lang.String JAVAX_PORTLET_KEYWORDS
- See Also:
- Constant Field Values
JAVAX_PORTLET_SHORT_TITLE
public static final java.lang.String JAVAX_PORTLET_SHORT_TITLE
- See Also:
- Constant Field Values
JAVAX_PORTLET_TITLE
public static final java.lang.String JAVAX_PORTLET_TITLE
- See Also:
- Constant Field Values
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
LanguageImpl
public LanguageImpl()
getKeys
public java.util.Enumeration getKeys()
- Specified by:
getKeys
in class java.util.ResourceBundle
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
- Specified by:
handleGetObject
in class java.util.ResourceBundle
setResourceBundle
public void setResourceBundle(java.util.ResourceBundle bundle)
loadDefaults
public void loadDefaults()
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface org.apache.pluto.om.common.Language
- Overrides:
getLocale
in class java.util.ResourceBundle
- See Also:
Language.getLocale()
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle
in interface org.apache.pluto.om.common.Language
- See Also:
Language.getTitle()
getShortTitle
public java.lang.String getShortTitle()
- Specified by:
getShortTitle
in interface org.apache.pluto.om.common.Language
- See Also:
Language.getShortTitle()
getKeywords
public java.util.Iterator getKeywords()
- Specified by:
getKeywords
in interface org.apache.pluto.om.common.Language
- See Also:
Language.getKeywords()
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
- Specified by:
getResourceBundle
in interface org.apache.pluto.om.common.Language
- See Also:
Language.getResourceBundle()
getParentResourceBundle
public java.util.ResourceBundle getParentResourceBundle()
setLocale
public void setLocale(java.util.Locale locale)
- Specified by:
setLocale
in interface MutableLanguage
- See Also:
org.apache.pluto.om.common.LanguageCtrl#setLocale(java.util.Locale)
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitle
in interface MutableLanguage
- See Also:
org.apache.pluto.om.common.LanguageCtrl#setTitle(java.lang.String)
setShortTitle
public void setShortTitle(java.lang.String shortTitle)
- Specified by:
setShortTitle
in interface MutableLanguage
- See Also:
org.apache.pluto.om.common.LanguageCtrl#setShortTitle(java.lang.String)
setKeywords
public void setKeywords(java.util.Collection keywords)
- Specified by:
setKeywords
in interface MutableLanguage
- See Also:
org.apache.jetspeed.om.common.LanguageComposite#setKeywords(java.util.Collection)
setKeywords
public void setKeywords(java.lang.String keywordStr)
getKeywordStr
public java.lang.String getKeywordStr()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.