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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canHandle​(Object object)
      Determines if this extractor can handle objects of the given type.
      List properties​(Object object, XSDElementDeclaration element)
      Extracts 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)
        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.