Package org.openxava.web.meta
Class MetaWebEditors
java.lang.Object
org.openxava.web.meta.MetaWebEditors
- Author:
- Javier Paniza
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMetaEditor(MetaEditor editor) static voidaddMetaEditorForAnnotation(String annotation, MetaEditor editor) static voidaddMetaEditorForCollectionModel(String model, MetaEditor editor) static voidstatic voidstatic voidstatic voidaddMetaEditorForModelProperty(String property, String model, MetaEditor editor) static voidaddMetaEditorForReferenceModel(String model, MetaEditor editor) static voidaddMetaEditorForReferences(MetaEditor editor) static voidaddMetaEditorForStereotype(String stereotype, MetaEditor editor) static voidaddMetaEditorForTabModel(String model, MetaEditor editor) static voidaddMetaEditorForTabs(MetaEditor editor) static voidaddMetaEditorForType(String type, MetaEditor editor) static MetaEditorstatic MetaEditorgetMetaEditorByName(String name) static MetaEditorgetMetaEditorFor(MetaMember member, String viewName) static MetaEditorgetMetaEditorFor(MetaTab tab) static MetaEditorgetMetaEditorForModelProperty(String property, String model) static MetaEditorstatic MetaEditorgetMetaEditorForStereotype(String stereotype) static MetaEditorgetMetaEditorForType(String type) static MetaEditorIt's like getMetaEditorForType but extract the type of property.static Collection<MetaEditor>getMetaEditorsFor(MetaTab tab)
-
Field Details
-
log
public static org.apache.commons.logging.Log log
-
-
Constructor Details
-
MetaWebEditors
public MetaWebEditors()
-
-
Method Details
-
addMetaEditorForType
- Throws:
XavaException
-
addMetaEditorForAnnotation
public static void addMetaEditorForAnnotation(String annotation, MetaEditor editor) throws XavaException - Throws:
XavaException
-
addMetaEditorForReferenceModel
public static void addMetaEditorForReferenceModel(String model, MetaEditor editor) throws XavaException - Throws:
XavaException
-
addMetaEditorForCollectionModel
public static void addMetaEditorForCollectionModel(String model, MetaEditor editor) throws XavaException - Throws:
XavaException
-
addMetaEditorForTabModel
- Throws:
XavaException
-
addMetaEditorForStereotype
public static void addMetaEditorForStereotype(String stereotype, MetaEditor editor) throws XavaException - Throws:
XavaException
-
addMetaEditorForModelProperty
public static void addMetaEditorForModelProperty(String property, String model, MetaEditor editor) throws XavaException - Throws:
XavaException
-
addMetaEditor
- Throws:
XavaException
-
getMetaEditorForType
- Returns:
- Null if no editor registered for the specified type
- Throws:
XavaException
-
getMetaEditorForReferenceModel
- Returns:
- Null if no editor registered for the model used in references
- Throws:
XavaException
-
getMetaEditorForTypeOfProperty
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
- Returns:
- Null if no editor registered for the specified stereotype
- Throws:
XavaException
-
getMetaEditorForModelProperty
public static MetaEditor getMetaEditorForModelProperty(String property, String model) throws XavaException - Returns:
- Null if no editor registered for the specified property/model
- Throws:
XavaException
-
getMetaEditorByName
- Returns:
- Null if no editor registered with the name
- Throws:
XavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaTab tab) throws ElementNotFoundException, XavaException -
getMetaEditorsFor
public static Collection<MetaEditor> getMetaEditorsFor(MetaTab tab) throws ElementNotFoundException, XavaException -
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaMember member, String viewName) throws ElementNotFoundException, XavaException -
addMetaEditorForReferences
-
addMetaEditorForCollections
-
addMetaEditorForElementCollections
-
addMetaEditorForDescriptionsLists
-
getEditorForDescriptionsLists
-
addMetaEditorForTabs
-