org.springframework.extensions.config
Class WebStudioConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by org.springframework.extensions.config.WebStudioConfigElement
All Implemented Interfaces:
Serializable, ConfigElement, WebStudioConfigProperties

public class WebStudioConfigElement
extends ConfigElementAdapter
implements WebStudioConfigProperties

Author:
muzquiano
See Also:
Serialized Form

Nested Class Summary
static class WebStudioConfigElement.ApplicationDescriptor
           
static class WebStudioConfigElement.Descriptor
           
static class WebStudioConfigElement.PanelDescriptor
           
 
Field Summary
protected  HashMap<String,WebStudioConfigElement.ApplicationDescriptor> applications
           
static String CONFIG_ELEMENT_ID
           
protected  boolean developerMode
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
WebStudioConfigElement()
          Default Constructor
 
Method Summary
 ConfigElement combine(ConfigElement element)
          Combines the given config element with this config element and returns a new instance containing the resulting combination.
 WebStudioConfigElement.ApplicationDescriptor getApplication(String id)
          Returns the application descriptor for the given application id
 String[] getApplicationIds()
          Returns an array of application ids for Web Studio
 boolean isDeveloperMode()
          Whether the current Web Studio instance is in developer mode
protected static WebStudioConfigElement newInstance(org.dom4j.Element elem)
           
 void setDeveloperMode(boolean developerMode)
          Allows the developer mode switch to be toggled
 
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, 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 String CONFIG_ELEMENT_ID
See Also:
Constant Field Values

applications

protected HashMap<String,WebStudioConfigElement.ApplicationDescriptor> applications

developerMode

protected boolean developerMode
Constructor Detail

WebStudioConfigElement

public WebStudioConfigElement()
Default Constructor

Method Detail

combine

public ConfigElement combine(ConfigElement element)
Description copied from interface: ConfigElement
Combines the given config element with this config element and returns a new instance containing the resulting combination. The combination of the two objects MUST NOT change this instance.

Specified by:
combine in interface ConfigElement
Specified by:
combine in class ConfigElementAdapter
Parameters:
element - The config element to combine into this one
Returns:
The combined ConfigElement

isDeveloperMode

public boolean isDeveloperMode()
Description copied from interface: WebStudioConfigProperties
Whether the current Web Studio instance is in developer mode

Specified by:
isDeveloperMode in interface WebStudioConfigProperties
Returns:

setDeveloperMode

public void setDeveloperMode(boolean developerMode)
Description copied from interface: WebStudioConfigProperties
Allows the developer mode switch to be toggled

Specified by:
setDeveloperMode in interface WebStudioConfigProperties

getApplicationIds

public String[] getApplicationIds()
Description copied from interface: WebStudioConfigProperties
Returns an array of application ids for Web Studio

Specified by:
getApplicationIds in interface WebStudioConfigProperties
Returns:
string array

getApplication

public WebStudioConfigElement.ApplicationDescriptor getApplication(String id)
Description copied from interface: WebStudioConfigProperties
Returns the application descriptor for the given application id

Specified by:
getApplication in interface WebStudioConfigProperties
Returns:
application descriptor

newInstance

protected static WebStudioConfigElement newInstance(org.dom4j.Element elem)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.