org.openxava.web.meta
Class MetaWebEditors
java.lang.Object
org.openxava.web.meta.MetaWebEditors
public class MetaWebEditors
- extends java.lang.Object
- Author:
- Javier Paniza
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaWebEditors
public MetaWebEditors()
addMetaEditorForType
public static void addMetaEditorForType(java.lang.String type,
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
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(MetaProperty p)
throws ElementNotFoundException,
XavaException
- Returns:
- Not null
- Throws:
ElementNotFoundException - If no editor for property
XavaException
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaReference ref)
throws ElementNotFoundException,
XavaException
- Throws:
ElementNotFoundException
XavaException
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaCollection col)
throws ElementNotFoundException,
XavaException
- Throws:
ElementNotFoundException
XavaException
getMetaEditorFor
public static MetaEditor getMetaEditorFor(MetaMember member)
throws ElementNotFoundException,
XavaException
- Throws:
ElementNotFoundException
XavaException
addMetaEditorForReferences
public static void addMetaEditorForReferences(MetaEditor editor)
addMetaEditorForCollections
public static void addMetaEditorForCollections(MetaEditor editor)