| com.xoetrope.data.pojo.XPojoDataSourceEx
All known Subclasses: com.xoetrope.data.pojo.XPersistentPojoDataSourceEx,
XPojoDataSourceEx | public class XPojoDataSourceEx extends XDataSource (Code) | | A data source for working with POJOs in the data visualiser.
Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
|
Method Summary | |
public XPojoModelVis | adaptPojo(Object pojo, XModel parentNode) | public XPojoModelVis | adaptPojo(Method getter, Method setter, String propertyName, XModel parentNode) Adapts the POJO returned by method invoked on a parent
object. | public XPojoModelVis | adaptPojo(Class pojoClass, String propertyName, XModel parentNode) Adapts the transient pojo of the specified type. | protected XPojoAdapterEx | createAdapter(Class pojoClass) | protected void | customizeProperty(XPojoAdapterEx adapter, XmlElement propertyElement) | public XPojoAdapterEx | getAdapter(Class pojoClass) | protected static String | getDispValue(Object pojo) Gets the pojo caption that will appear in the visualiser
tree node. | public Object | getPojoContext() Returns the pojo context object. | protected XProjectClassLoader | getProjectClassLoader() Returns the class loader being used to load
current project's classes. | public XPropertiesRetriever | getPropertiesRetriever() Returns the finder arguments values holder. | public static boolean | getterSupported(Method method, boolean prefixes) | public void | loadTable(XmlElement source, XModel model) | protected void | overrideAdapter(XPojoAdapterEx adapter) Overrides the adapter, adds the customization specified
by the configuration. | public static boolean | setterSupported(Method method, boolean prefixes) |
GETTER_PREFIXES | final protected static String[] GETTER_PREFIXES(Code) | | |
SETTER_PREFIXES | final protected static String[] SETTER_PREFIXES(Code) | | |
pojoRootModel | protected XModel pojoRootModel(Code) | | |
XPojoDataSourceEx | public XPojoDataSourceEx(XProject project)(Code) | | Creates new instance of XPojoDataSource
Parameters: project - the owning project |
adaptPojo | public XPojoModelVis adaptPojo(Object pojo, XModel parentNode)(Code) | | Adapt a POJO for use in the model, applying any overrides to the POJO's
API defined in the data source's configuration file (by default pojo.xml)
Parameters: pojo - the object being adapted Parameters: parentNode - the parent model node the pojo model node encapsulating the pojo |
adaptPojo | public XPojoModelVis adaptPojo(Method getter, Method setter, String propertyName, XModel parentNode)(Code) | | Adapts the POJO returned by method invoked on a parent
object.
Parameters: parentNode - parent model node Parameters: method - the Method that returns the pojo which is to be adapted the pojo model node encapsulating the pojo |
adaptPojo | public XPojoModelVis adaptPojo(Class pojoClass, String propertyName, XModel parentNode)(Code) | | Adapts the transient pojo of the specified type.
Parameters: pojoClass - the type of the underlying pojo Parameters: propertyName - the name of the transient property Parameters: parentNode - parent model node |
createAdapter | protected XPojoAdapterEx createAdapter(Class pojoClass)(Code) | | Creates a new instance of XPojoAdapterEx
Parameters: pojoClass - the class to be adapted |
customizeProperty | protected void customizeProperty(XPojoAdapterEx adapter, XmlElement propertyElement)(Code) | | |
getAdapter | public XPojoAdapterEx getAdapter(Class pojoClass)(Code) | | Gets the adapter for the specified class
Parameters: pojoClass - the class whose adapter isto be returned the adapter |
getDispValue | protected static String getDispValue(Object pojo)(Code) | | Gets the pojo caption that will appear in the visualiser
tree node.
Parameters: pojo - Object the caption |
getPojoContext | public Object getPojoContext()(Code) | | Returns the pojo context object.
pojo context object |
getProjectClassLoader | protected XProjectClassLoader getProjectClassLoader()(Code) | | Returns the class loader being used to load
current project's classes.
XProjectClassLoader of the current project |
getterSupported | public static boolean getterSupported(Method method, boolean prefixes)(Code) | | Determines whether the passed getter is supported
Parameters: method - the Method to be checked Parameters: prefixes - indicates whether the getter prefixes should be checked true if the method is supported, false otherwise |
loadTable | public void loadTable(XmlElement source, XModel model)(Code) | | Recursively load the model data
Parameters: source - the source element Parameters: model - the model node for the source element |
overrideAdapter | protected void overrideAdapter(XPojoAdapterEx adapter)(Code) | | Overrides the adapter, adds the customization specified
by the configuration.
Parameters: adapter - the adapter to be customized |
setterSupported | public static boolean setterSupported(Method method, boolean prefixes)(Code) | | Determines whether the passed setter method is supported
Parameters: method - the method to be queried Parameters: prefixes - indicates whether the getter prefixes should be checked true if the passed method is supported, falseotherwise |
|
|