org.openxava.util.meta
Class MetaElement
java.lang.Object
org.openxava.util.meta.MetaElement
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MetaAction, MetaApplication, MetaConsult, MetaController, MetaMember, MetaModel, MetaModule, MetaParameter, MetaView
public abstract class MetaElement
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- Javier Paniza
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
getDescription()
|
java.lang.String |
getDescription(java.util.Locale locale)
|
protected java.lang.String |
getDescription(java.util.Locale locale,
java.lang.String id)
|
abstract java.lang.String |
getId()
Unique id of element, normally used to search the label in the resources files. |
java.lang.String |
getLabel()
|
protected java.lang.String |
getLabel(java.util.Locale locale,
java.lang.String id)
Implementation of label obtaining. |
java.lang.String |
getLabel(ServletRequest request)
|
protected java.util.Locale |
getLocale(ServletRequest request)
|
java.lang.String |
getName()
|
protected boolean |
has18nLabel()
|
protected boolean |
hasName()
|
void |
setDescription(java.lang.String newDescription)
|
void |
setLabel(java.lang.String newLabel)
|
void |
setName(java.lang.String newName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaElement
public MetaElement()
has18nLabel
protected boolean has18nLabel()
hasName
protected boolean hasName()
getLabel
public java.lang.String getLabel()
getLabel
public java.lang.String getLabel(ServletRequest request)
getLocale
protected java.util.Locale getLocale(ServletRequest request)
getLabel
protected java.lang.String getLabel(java.util.Locale locale,
java.lang.String id)
- Implementation of label obtaining.
getId
public abstract java.lang.String getId()
- Unique id of element, normally used to search the label in the resources files.
getName
public java.lang.String getName()
- Returns:
- java.lang.String Not null
setLabel
public void setLabel(java.lang.String newLabel)
setName
public void setName(java.lang.String newName)
getDescription
public java.lang.String getDescription()
getDescription
public java.lang.String getDescription(java.util.Locale locale)
getDescription
protected java.lang.String getDescription(java.util.Locale locale,
java.lang.String id)
setDescription
public void setDescription(java.lang.String newDescription)