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.Loglog
-
Constructor Summary
Constructors Constructor Description MetaWebEditors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddMetaEditor(MetaEditor editor)static voidaddMetaEditorForAnnotation(java.lang.String annotation, MetaEditor editor)static voidaddMetaEditorForCollectionModel(java.lang.String model, MetaEditor editor)static voidaddMetaEditorForCollections(MetaEditor editor)static voidaddMetaEditorForElementCollections(MetaEditor editor)static voidaddMetaEditorForModelProperty(java.lang.String property, java.lang.String model, MetaEditor editor)static voidaddMetaEditorForReferenceModel(java.lang.String model, MetaEditor editor)static voidaddMetaEditorForReferences(MetaEditor editor)static voidaddMetaEditorForStereotype(java.lang.String stereotype, MetaEditor editor)static voidaddMetaEditorForTabModel(java.lang.String model, MetaEditor editor)static voidaddMetaEditorForTabs(MetaEditor editor)static voidaddMetaEditorForType(java.lang.String type, MetaEditor editor)static MetaEditorgetMetaEditorByName(java.lang.String name)static MetaEditorgetMetaEditorFor(MetaMember member, java.lang.String viewName)static MetaEditorgetMetaEditorFor(MetaTab tab)static MetaEditorgetMetaEditorForModelProperty(java.lang.String property, java.lang.String model)static MetaEditorgetMetaEditorForReferenceModel(java.lang.String model)static MetaEditorgetMetaEditorForStereotype(java.lang.String stereotype)static MetaEditorgetMetaEditorForType(java.lang.String type)static MetaEditorgetMetaEditorForTypeOfProperty(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)
-
-