Package org.openxava.web.meta
Class MetaWebEditors
- java.lang.Object
-
- org.openxava.web.meta.MetaWebEditors
-
public class MetaWebEditors extends java.lang.Object
- Author:
- Javier Paniza
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description MetaWebEditors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addMetaEditor(MetaEditor editor)
static void
addMetaEditorForAnnotation(java.lang.String annotation, MetaEditor editor)
static void
addMetaEditorForCollectionModel(java.lang.String model, MetaEditor editor)
static void
addMetaEditorForCollections(MetaEditor editor)
static void
addMetaEditorForElementCollections(MetaEditor editor)
static void
addMetaEditorForModelProperty(java.lang.String property, java.lang.String model, MetaEditor editor)
static void
addMetaEditorForReferenceModel(java.lang.String model, MetaEditor editor)
static void
addMetaEditorForReferences(MetaEditor editor)
static void
addMetaEditorForStereotype(java.lang.String stereotype, MetaEditor editor)
static void
addMetaEditorForTabModel(java.lang.String model, MetaEditor editor)
static void
addMetaEditorForTabs(MetaEditor editor)
static void
addMetaEditorForType(java.lang.String type, MetaEditor editor)
static MetaEditor
getMetaEditorByName(java.lang.String name)
static MetaEditor
getMetaEditorFor(MetaMember member, java.lang.String viewName)
static MetaEditor
getMetaEditorFor(MetaTab tab)
static MetaEditor
getMetaEditorForModelProperty(java.lang.String property, java.lang.String model)
static MetaEditor
getMetaEditorForReferenceModel(java.lang.String model)
static MetaEditor
getMetaEditorForStereotype(java.lang.String stereotype)
static MetaEditor
getMetaEditorForType(java.lang.String type)
static MetaEditor
getMetaEditorForTypeOfProperty(MetaProperty p)
It's like getMetaEditorForType but extract the type of property.static java.util.Collection<MetaEditor>
getMetaEditorsFor(MetaTab tab)
-
-
-
Method Detail
-
addMetaEditorForType
public static void addMetaEditorForType(java.lang.String type, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditorForAnnotation
public static void addMetaEditorForAnnotation(java.lang.String annotation, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditorForReferenceModel
public static void addMetaEditorForReferenceModel(java.lang.String model, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditorForCollectionModel
public static void addMetaEditorForCollectionModel(java.lang.String model, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditorForTabModel
public static void addMetaEditorForTabModel(java.lang.String model, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditorForStereotype
public static void addMetaEditorForStereotype(java.lang.String stereotype, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditorForModelProperty
public static void addMetaEditorForModelProperty(java.lang.String property, java.lang.String model, MetaEditor editor) throws XavaException
- Throws:
XavaException
-
addMetaEditor
public static void addMetaEditor(MetaEditor editor) throws XavaException
- Throws:
XavaException
-
getMetaEditorForType
public static MetaEditor getMetaEditorForType(java.lang.String type) throws XavaException
- Returns:
- Null if no editor registered for the specified type
- Throws:
XavaException
-
getMetaEditorForReferenceModel
public static MetaEditor getMetaEditorForReferenceModel(java.lang.String model) throws XavaException
- Returns:
- Null if no editor registered for the model used in references
- Throws:
XavaException
-
getMetaEditorForTypeOfProperty
public static MetaEditor getMetaEditorForTypeOfProperty(MetaProperty p) throws XavaException
It's like getMetaEditorForType but extract the type of property.Also it considers valid-values and Enums.
- Returns:
- Null if no editor registered for the type of the specified property
- Throws:
XavaException
-
getMetaEditorForStereotype
public static MetaEditor getMetaEditorForStereotype(java.lang.String stereotype) throws XavaException
- Returns:
- Null if no editor registered for the specified stereotype
- Throws:
XavaException
-
getMetaEditorForModelProperty
public static MetaEditor getMetaEditorForModelProperty(java.lang.String property, java.lang.String model) throws XavaException
- Returns:
- Null if no editor registered for the specified property/model
- Throws:
XavaException
-
getMetaEditorByName
public static MetaEditor getMetaEditorByName(java.lang.String name) throws XavaException
- Returns:
- Null if no editor registered with the name
- Throws:
XavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaTab tab) throws ElementNotFoundException, XavaException
-
getMetaEditorsFor
public static java.util.Collection<MetaEditor> getMetaEditorsFor(MetaTab tab) throws ElementNotFoundException, XavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaMember member, java.lang.String viewName) throws ElementNotFoundException, XavaException
-
addMetaEditorForReferences
public static void addMetaEditorForReferences(MetaEditor editor)
-
addMetaEditorForCollections
public static void addMetaEditorForCollections(MetaEditor editor)
-
addMetaEditorForElementCollections
public static void addMetaEditorForElementCollections(MetaEditor editor)
-
addMetaEditorForTabs
public static void addMetaEditorForTabs(MetaEditor editor)
-
-