Package org.openxava.application.meta
Class MetaApplication
- java.lang.Object
-
- org.openxava.util.meta.MetaElement
-
- org.openxava.application.meta.MetaApplication
-
- All Implemented Interfaces:
java.io.Serializable
public class MetaApplication extends MetaElement implements java.io.Serializable
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddControllerForDefaultModule(java.lang.String controllerName)voidaddMetaModule(MetaModule newModule)java.lang.StringgetFolderLabel(java.lang.String folder)java.lang.StringgetFolderLabel(java.util.Locale locale, java.lang.String folder)java.util.CollectiongetFolders()java.lang.StringgetId()Unique id of element, normally used to search the label in the resources files.MetaModulegetMetaModule(java.lang.String name)java.util.Collection<MetaModule>getMetaModules()java.util.CollectiongetModulesNames()In the same order that they are found in application.xml/aplicacion.xml.java.util.CollectiongetModulesNamesByFolder(java.lang.String folder)The modules in the indicated folder in the same order that they are found in application.xml/aplicacion.xml.java.lang.StringtoString()-
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setLabel, setName, setPlaceholder
-
-
-
-
Method Detail
-
addMetaModule
public void addMetaModule(MetaModule newModule)
- Parameters:
newModule- Not null
-
getFolderLabel
public java.lang.String getFolderLabel(java.util.Locale locale, java.lang.String folder)
-
getFolderLabel
public java.lang.String getFolderLabel(java.lang.String folder)
-
getFolders
public java.util.Collection getFolders() throws XavaException- Throws:
XavaException
-
getMetaModules
public java.util.Collection<MetaModule> getMetaModules() throws XavaException
- Returns:
- of MetaModule. Not null.
- Throws:
XavaException- Any problem
-
getModulesNames
public java.util.Collection getModulesNames()
In the same order that they are found in application.xml/aplicacion.xml.- Returns:
- of String. Not null.
-
getModulesNamesByFolder
public java.util.Collection getModulesNamesByFolder(java.lang.String folder) throws XavaExceptionThe modules in the indicated folder in the same order that they are found in application.xml/aplicacion.xml.- Returns:
- of String. Not null.
- Throws:
XavaException
-
getMetaModule
public MetaModule getMetaModule(java.lang.String name) throws ElementNotFoundException, XavaException
-
addControllerForDefaultModule
public void addControllerForDefaultModule(java.lang.String controllerName)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getId
public java.lang.String getId()
Description copied from class:MetaElementUnique id of element, normally used to search the label in the resources files.- Specified by:
getIdin classMetaElement
-
-