org.geotools.xml.impl
Class BindingPropertyExtractor
java.lang.Object
org.geotools.xml.impl.BindingPropertyExtractor
- All Implemented Interfaces:
- PropertyExtractor
public class BindingPropertyExtractor
- extends java.lang.Object
- implements PropertyExtractor
Uses ComplexBinding.getProperty(Object, QName)
to obtain
properties from the objecet being encoded.
- Author:
- Justin Deoliveira, The Open Planning Project
Method Summary |
boolean |
canHandle(java.lang.Object object)
Determines if this extractor can handle objects of the given type. |
java.util.List |
properties(java.lang.Object object,
org.eclipse.xsd.XSDElementDeclaration element)
Exracts the properties from the object being encoded. |
void |
setContext(org.picocontainer.MutablePicoContainer context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindingPropertyExtractor
public BindingPropertyExtractor(Encoder encoder,
org.picocontainer.MutablePicoContainer context)
canHandle
public boolean canHandle(java.lang.Object object)
- Description copied from interface:
PropertyExtractor
- Determines if this extractor can handle objects of the given type.
- Specified by:
canHandle
in interface PropertyExtractor
- Parameters:
object
- The object being encoded.
- Returns:
true
if the extractor can handle the object,
otherwise false.
setContext
public void setContext(org.picocontainer.MutablePicoContainer context)
properties
public java.util.List properties(java.lang.Object object,
org.eclipse.xsd.XSDElementDeclaration element)
- Description copied from interface:
PropertyExtractor
- Exracts the properties from the object being encoded.
This method should return a set of tuples made up of
(XSDParticle
,Object).
- Specified by:
properties
in interface PropertyExtractor
- Parameters:
object
- The object being encoded.element
- The element declaration corresponding to the object being encoded.
- Returns:
- A set of element, object tuples.
Copyright © 1996-2010 Geotools. All Rights Reserved.