Package org.geotools.xsd.impl
Class BindingPropertyExtractor
Object
BindingPropertyExtractor
- All Implemented Interfaces:
PropertyExtractor
Uses
ComplexBinding.getProperty(Object, QName)
to obtain properties from the object being encoded.- Author:
- Justin Deoliveira, The Open Planning Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if this extractor can handle objects of the given type.properties
(Object object, XSDElementDeclaration element) Extracts the properties from the object being encoded.void
setContext
(MutablePicoContainer context)
-
Constructor Details
-
BindingPropertyExtractor
-
-
Method Details
-
canHandle
Description copied from interface:PropertyExtractor
Determines if this extractor can handle objects of the given type.- Specified by:
canHandle
in interfacePropertyExtractor
- Parameters:
object
- The object being encoded.- Returns:
true
if the extractor can handle the object, otherwisefalse
.
-
setContext
public void setContext(MutablePicoContainer context) -
properties
Description copied from interface:PropertyExtractor
Extracts the properties from the object being encoded.This method should return a set of tuples made up of (
XSDParticle
,Object).- Specified by:
properties
in interfacePropertyExtractor
- Parameters:
object
- The object being encoded.element
- The element declaration corresponding to the object being encoded.- Returns:
- A set of element, object tuples.
-