Class BindingPropertyExtractor

    • Method Summary

      All Methods Instance Methods Concrete 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.
      void setContext​(MutablePicoContainer context)  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BindingPropertyExtractor

        public BindingPropertyExtractor​(Encoder encoder,
                                        MutablePicoContainer context)
    • Method Detail

      • canHandle

        public boolean canHandle​(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​(MutablePicoContainer context)
      • properties

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