| java.lang.Object org.geotools.xml.AbstractComplexBinding org.geotools.xml.AbstractComplexEMFBinding
AbstractComplexEMFBinding | abstract public class AbstractComplexEMFBinding extends AbstractComplexBinding (Code) | | Base class for complex bindings which map to an EMF model class.
Provides implementations for:
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
Method Summary | |
public Object | getProperty(Object object, QName name) Uses EMF reflection dynamically return the property with the specified
name. | public Class | getType() Dynamically tries to determine the type of the object using emf naming
conventions and the name returned by
Binding.getTarget .
This implementation is a heuristic and is not guarenteed to work. | public Object | parse(ElementInstance instance, Node node, Object value) Uses EMF reflection to create an instance of the EMF model object this
binding maps to. |
factory | EFactory factory(Code) | | Factory used to create model objects
|
AbstractComplexEMFBinding | public AbstractComplexEMFBinding(EFactory factory)(Code) | | Constructs the binding with an efactory.
Parameters: factory - Factory used to create model objects. |
getProperty | public Object getProperty(Object object, QName name) throws Exception(Code) | | Uses EMF reflection dynamically return the property with the specified
name.
|
getType | public Class getType()(Code) | | Dynamically tries to determine the type of the object using emf naming
conventions and the name returned by
Binding.getTarget .
This implementation is a heuristic and is not guarenteed to work. Subclasses
may override to provide the type explicity.
|
parse | public Object parse(ElementInstance instance, Node node, Object value) throws Exception(Code) | | Uses EMF reflection to create an instance of the EMF model object this
binding maps to. The properties of the resulting object are set using
the the contents of node
|
|
|