com.bemoko.live.platform.mwc.config.elements.site
Class LiveConfigIntent
java.lang.Object
com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfig<T>
com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfigWithExpression<LiveConfigIntent>
com.bemoko.live.platform.mwc.config.elements.site.LiveConfigIntent
- All Implemented Interfaces:
- InheritableConfig<InheritableConfig<?>>, NamedLiveConfig, NamedLiveConfigWithExpression, EncodingBean
public class LiveConfigIntent
- extends AbstractNamedLiveConfigWithExpression<LiveConfigIntent>
- implements EncodingBean
| Methods inherited from class com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfig |
assertValid, generateAutoName, getId, getIdExplicitlySet, getName, getNameExplicitlySet, internalSetName, isInherit, refreshNameIfNotExplictlySet, setId, setIdExplicitySet, setInherit, setNameExplicitySet |
LiveConfigIntent
public LiveConfigIntent()
addParameter
public void addParameter(com.bemoko.commons.config.Parameter parameter)
addRenderer
public void addRenderer(LiveConfigRenderer renderer)
add
public void add(LiveConfigRoute route)
addPlugin
public void addPlugin(LiveConfigPlugin plugin)
addSource
@Deprecated
public void addSource(LiveConfigPlugin plugin)
- Deprecated. - use #addPlugin
- Parameters:
plugin -
addViewParameter
public void addViewParameter(com.bemoko.commons.config.Parameter parameter)
getContentType
public String getContentType()
- Returns:
- the content type
getController
public String getController()
- Returns:
- the controller
getEncoding
public String getEncoding()
- Specified by:
getEncoding in interface EncodingBean
getParameter
public String getParameter(String parameterName)
getParameters
public Parameters getParameters()
getRenderer
public LiveConfigRenderer getRenderer(String name)
getRenderers
public List<LiveConfigRenderer> getRenderers()
getRoutes
public com.bemoko.live.platform.mwc.config.elements.site.LiveConfigRoutes getRoutes()
getSource
@Deprecated
public LiveConfigPlugin getSource(String sourceName)
- Deprecated. - use #getPlugin
- Parameters:
sourceName -
- Returns:
- source
getPlugin
public LiveConfigPlugin getPlugin(String sourceName)
getPlugins
public Collection<LiveConfigPlugin> getPlugins()
getSources
@Deprecated
public Collection<LiveConfigPlugin> getSources()
- Deprecated. - use #getPlugins
- Returns:
- sources
getType
public String getType()
- Returns:
- the type
getView
public String getView()
- Returns:
- the view (or template file). This should always start with a "/"
and be relative to the ui context directory
getViewParameter
public String getViewParameter(String parameterName)
getViewParameters
public Parameters getViewParameters()
isEscape
public boolean isEscape()
- Returns:
- the escape
isReplace
public boolean isReplace()
- Returns:
- the replace
setContentType
public void setContentType(String contentType)
setController
public void setController(String controller)
- Parameters:
controller - the controller to set
setEncoding
public void setEncoding(String encoding)
- Specified by:
setEncoding in interface EncodingBean
setEscape
public void setEscape(boolean escape)
- Parameters:
escape - the escape to set
setReplace
public void setReplace(boolean replace)
- Parameters:
replace - the replace to set
setType
public void setType(String type)
- Parameters:
type - the type to set
setView
public void setView(String view)
- Parameters:
view - the view to set. If this does not start with a "/" then a "/" is
prepended automatically
toString
public String toString()
- Description copied from class:
AbstractNamedLiveConfigWithExpression
-
- Overrides:
toString in class AbstractNamedLiveConfigWithExpression<LiveConfigIntent>