Package org.openxava.model.meta
Class MetaMember
- java.lang.Object
-
- org.openxava.util.meta.MetaElement
-
- org.openxava.model.meta.MetaMember
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MetaMember>
- Direct Known Subclasses:
MetaCollection
,MetaGroup
,MetaProperty
,MetaReference
public abstract class MetaMember extends MetaElement implements java.lang.Comparable<MetaMember>
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaMember()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(MetaMember o)
java.lang.annotation.Annotation[]
getAnnotations()
java.lang.String
getId()
Unique id of element, normally used to search the label in the resources files.java.lang.String
getLabel(java.util.Locale locale)
For refine the label calculationjava.lang.String
getLabelId()
Id used to look up label in resource files.MetaCalculator
getMetaCalculator()
MetaCalculator
getMetaCalculatorDefaultValue()
MetaModel
getMetaModel()
java.util.Collection<java.lang.String>
getPropertyNamesThatIDepend()
java.lang.String
getQualifiedName()
java.lang.String
getSimpleName()
boolean
hasCalculator()
boolean
hasDefaultValueCalculator()
boolean
isHidden()
boolean
isTransient()
void
setLabel(java.lang.String newLabel)
void
setLabelId(java.lang.String id)
void
setMetaModel(MetaModel newContainer)
void
setQualifiedName(java.lang.String newQualifiedName)
For can set a qualified name manually.void
setTransient(boolean _transient)
static <T extends MetaMember>
java.util.List<java.lang.String>toQualifiedNames(java.util.Collection<T> metaMembers)
-
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setName, setPlaceholder
-
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel(java.util.Locale locale)
Description copied from class:MetaElement
For refine the label calculation- Overrides:
getLabel
in classMetaElement
-
setLabel
public void setLabel(java.lang.String newLabel)
- Overrides:
setLabel
in classMetaElement
-
toQualifiedNames
public static <T extends MetaMember> java.util.List<java.lang.String> toQualifiedNames(java.util.Collection<T> metaMembers)
- Since:
- 5.6
-
compareTo
public int compareTo(MetaMember o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MetaMember>
-
hasCalculator
public boolean hasCalculator()
- Since:
- 6.1.2
-
hasDefaultValueCalculator
public boolean hasDefaultValueCalculator()
- Since:
- 6.1.2
-
getMetaCalculator
public MetaCalculator getMetaCalculator()
- Since:
- 6.1.2
-
getMetaCalculatorDefaultValue
public MetaCalculator getMetaCalculatorDefaultValue()
- Since:
- 6.1.2
-
getPropertyNamesThatIDepend
public java.util.Collection<java.lang.String> getPropertyNamesThatIDepend()
- Since:
- 6.1.2 Moved from MetaProperty
-
getMetaModel
public MetaModel getMetaModel()
-
setMetaModel
public void setMetaModel(MetaModel newContainer)
-
getQualifiedName
public java.lang.String getQualifiedName()
-
setQualifiedName
public void setQualifiedName(java.lang.String newQualifiedName)
For can set a qualified name manually.
-
isHidden
public boolean isHidden()
-
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
-
getSimpleName
public java.lang.String getSimpleName()
- Since:
- 7.3.3 Moved from MetaProperty
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Since:
- 7.3.3 Moved from MetaProperty
-
getLabelId
public java.lang.String getLabelId()
Id used to look up label in resource files.
-
setLabelId
public void setLabelId(java.lang.String id)
-
isTransient
public boolean isTransient()
- Since:
- 6.5.2
-
setTransient
public void setTransient(boolean _transient)
- Since:
- 6.5.2
-
-