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
- Throws:
XavaException
-
addMetaEditorForReferenceModel
- Throws:
XavaException
-
addMetaEditorForCollectionModel
- Throws:
XavaException
-
addMetaEditorForTabModel
- Throws:
XavaException
-
addMetaEditorForStereotype
- Throws:
XavaException
-
addMetaEditorForModelProperty
- 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
- 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
-
getMetaEditorsFor
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaMember member, String viewName) throws ElementNotFoundException -
addMetaEditorForReferences
-
addMetaEditorForCollections
-
addMetaEditorForElementCollections
-
addMetaEditorForDescriptionsLists
-
getEditorForDescriptionsLists
-
addMetaEditorForTabs
-