org.geotools.xml
Interface PropertyExtractor

All Known Implementing Classes:
BindingPropertyExtractor, FeaturePropertyExtractor

public interface PropertyExtractor

Factory used by the encoder to obtain child values from objects being encoded.

Author:
Justin Deoliveira, The Open Planning Project
Module:
modules/extension/xsd-core (gt-xsd-core.jar)

Method Summary
 boolean canHandle(Object object)
          Determines if this extractor can handle objects of the given type.
 List properties(Object object, XSDElementDeclaration element)
          Exracts the properties from the object being encoded.
 

Method Detail

canHandle

boolean canHandle(Object object)
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, otherwise false.

properties

List properties(Object object,
                XSDElementDeclaration element)
Exracts 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.


Copyright © 1996-2010 Geotools. All Rights Reserved.