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
-
-
Constructor Summary
Constructors Constructor Description MetaWebEditors()
-
Method Summary
-
-
-
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
-
getMetaEditorForAnnotation
public static MetaEditor getMetaEditorForAnnotation(MetaProperty p) throws XavaException
- 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(MetaProperty p) throws ElementNotFoundException, XavaException
- Returns:
- Not null
- Throws:
ElementNotFoundException
- If no editor for propertyXavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaReference ref) throws ElementNotFoundException, XavaException
-
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaCollection col) throws ElementNotFoundException, 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) 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)
-
-