Package org.geotools.xsd
Interface PropertyExtractor
- All Known Implementing Classes:
BindingPropertyExtractor
public interface PropertyExtractor
Factory used by the encoder to obtain child values from objects being encoded.
- Author:
- Justin Deoliveira, The Open Planning Project
-
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.
-
Method Details
-
canHandle
Determines if this extractor can handle objects of the given type.- Parameters:
object
- The object being encoded.- Returns:
true
if the extractor can handle the object, otherwisefalse
.
-
properties
Extracts the properties from the object being encoded.This method should return a set of tuples made up of (
XSDParticle
,Object).- Parameters:
object
- The object being encoded.element
- The element declaration corresponding to the object being encoded.- Returns:
- A set of element, object tuples.
-