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 void
addControllerForDefaultModule(java.lang.String controllerName)
void
addMetaModule(MetaModule newModule)
java.lang.String
getFolderLabel(java.lang.String folder)
java.lang.String
getFolderLabel(java.util.Locale locale, java.lang.String folder)
java.util.Collection
getFolders()
java.lang.String
getId()
Unique id of element, normally used to search the label in the resources files.MetaModule
getMetaModule(java.lang.String name)
java.util.Collection
getMetaModules()
java.util.Collection
getModulesNames()
In the same order that they are found in application.xml/aplicacion.xml.java.util.Collection
getModulesNamesByFolder(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.String
toString()
-
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 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 XavaException
The 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:
toString
in classjava.lang.Object
-
getId
public java.lang.String getId()
Description copied from class:MetaElement
Unique id of element, normally used to search the label in the resources files.- Specified by:
getId
in classMetaElement
-
-