Class StandardCollectionURIResolver.FileExpander

  • All Implemented Interfaces:
    MappingFunction<ExternalObject<java.io.File>,​Item<?>>
    Enclosing class:
    StandardCollectionURIResolver

    protected static class StandardCollectionURIResolver.FileExpander
    extends java.lang.Object
    implements MappingFunction<ExternalObject<java.io.File>,​Item<?>>
    Mapping function to process the files in a directory. This maps a sequence of external objects representing files to a sequence of DocumentInfo nodes representing the parsed contents of those files.
    • Field Detail

      • recurse

        boolean recurse
      • validation

        int validation
      • xinclude

        java.lang.Boolean xinclude
      • unparsed

        boolean unparsed
      • parserMaker

        Maker<org.xml.sax.XMLReader> parserMaker
      • onError

        int onError
      • filter

        java.io.FilenameFilter filter
    • Method Detail

      • map

        public SequenceIterator<?> map​(ExternalObject<java.io.File> item)
                                throws XPathException
        Map one item to a sequence.
        Specified by:
        map in interface MappingFunction<ExternalObject<java.io.File>,​Item<?>>
        Parameters:
        item - The item to be mapped. If context is supplied, this must be the same as context.currentItem().
        Returns:
        either (a) a SequenceIterator over the sequence of items that the supplied input item maps to, or (b) an Item if it maps to a single item, or (c) null if it maps to an empty sequence.
        Throws:
        XPathException - if a dynamic error occurs