org.alfresco.web.config
Class LanguagesConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by org.alfresco.web.config.LanguagesConfigElement
All Implemented Interfaces:
java.io.Serializable, org.springframework.extensions.config.ConfigElement

public class LanguagesConfigElement
extends org.springframework.extensions.config.element.ConfigElementAdapter

Custom config element that represents config values for languages

See Also:
Serialized Form

Field Summary
static java.lang.String CONFIG_ELEMENT_ID
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
LanguagesConfigElement()
          Default Constructor
LanguagesConfigElement(java.lang.String name)
          Constructor
 
Method Summary
 org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
           
 java.util.List getChildren()
           
 java.lang.String getLabelForLanguage(java.lang.String locale)
           
 java.util.List getLanguages()
           
 
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_ELEMENT_ID

public static final java.lang.String CONFIG_ELEMENT_ID
See Also:
Constant Field Values
Constructor Detail

LanguagesConfigElement

public LanguagesConfigElement()
Default Constructor


LanguagesConfigElement

public LanguagesConfigElement(java.lang.String name)
Constructor

Parameters:
name - Name of the element this config element represents
Method Detail

getChildren

public java.util.List getChildren()
Specified by:
getChildren in interface org.springframework.extensions.config.ConfigElement
Overrides:
getChildren in class org.springframework.extensions.config.element.ConfigElementAdapter
See Also:
ConfigElementAdapter.getChildren()

combine

public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
Specified by:
combine in interface org.springframework.extensions.config.ConfigElement
Specified by:
combine in class org.springframework.extensions.config.element.ConfigElementAdapter
See Also:
org.springframework.extensions.config.element.ConfigElementAdapter#combine(org.alfresco.config.ConfigElement)

getLanguages

public java.util.List getLanguages()
Returns:
List of supported language locale strings in config file order

getLabelForLanguage

public java.lang.String getLabelForLanguage(java.lang.String locale)
Parameters:
locale - The locale string to lookup language label for
Returns:
the language label for specified locale string, or null if not found


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.