org.openxava.web.meta
Class MetaWebEditors

java.lang.Object
  extended by org.openxava.web.meta.MetaWebEditors

public class MetaWebEditors
extends java.lang.Object

Author:
Javier Paniza

Constructor Summary
MetaWebEditors()
           
 
Method Summary
static void addMetaEditor(MetaEditor editor)
           
static void addMetaEditorForCollectionModel(java.lang.String model, MetaEditor editor)
           
static void addMetaEditorForCollections(MetaEditor editor)
           
static void addMetaEditorForModelProperty(java.lang.String property, java.lang.String model, MetaEditor editor)
           
static void addMetaEditorForReferenceModel(java.lang.String model, MetaEditor editor)
           
static void addMetaEditorForReferences(MetaEditor editor)
           
static void addMetaEditorForStereotype(java.lang.String stereotype, MetaEditor editor)
           
static void addMetaEditorForType(java.lang.String type, MetaEditor editor)
           
static MetaEditor getMetaEditorByName(java.lang.String name)
           
static MetaEditor getMetaEditorFor(MetaCollection col)
           
static MetaEditor getMetaEditorFor(MetaMember member)
           
static MetaEditor getMetaEditorFor(MetaProperty p)
           
static MetaEditor getMetaEditorFor(MetaReference ref)
           
static MetaEditor getMetaEditorForModelProperty(java.lang.String property, java.lang.String model)
           
static MetaEditor getMetaEditorForReferenceModel(java.lang.String model)
           
static MetaEditor getMetaEditorForStereotype(java.lang.String stereotype)
           
static MetaEditor getMetaEditorForType(java.lang.String type)
           
static MetaEditor getMetaEditorForTypeOfProperty(MetaProperty p)
          It's like getMetaEditorForType but extract the type of property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaWebEditors

public MetaWebEditors()
Method Detail

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)