Package net.sf.saxon.lib
Class StandardCollectionURIResolver.FileExpander
- java.lang.Object
-
- net.sf.saxon.lib.StandardCollectionURIResolver.FileExpander
-
- All Implemented Interfaces:
MappingFunction<ExternalObject<File>,Item<?>>
- Enclosing class:
- StandardCollectionURIResolver
protected static class StandardCollectionURIResolver.FileExpander extends Object implements MappingFunction<ExternalObject<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 Summary
Fields Modifier and Type Field Description (package private) FilenameFilterfilter(package private) intonError(package private) Maker<XMLReader>parserMaker(package private) PipelineConfigurationpipe(package private) booleanrecurse(package private) SpaceStrippingRulestrippingRule(package private) booleanunparsed(package private) intvalidation(package private) Booleanxinclude
-
Constructor Summary
Constructors Constructor Description FileExpander(URIQueryParameters params, PipelineConfiguration pipe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceIterator<?>map(ExternalObject<File> item)Map one item to a sequence.
-
-
-
Field Detail
-
recurse
boolean recurse
-
strippingRule
SpaceStrippingRule strippingRule
-
validation
int validation
-
xinclude
Boolean xinclude
-
unparsed
boolean unparsed
-
onError
int onError
-
filter
FilenameFilter filter
-
pipe
PipelineConfiguration pipe
-
-
Constructor Detail
-
FileExpander
public FileExpander(URIQueryParameters params, PipelineConfiguration pipe)
-
-
Method Detail
-
map
public SequenceIterator<?> map(ExternalObject<File> item) throws XPathException
Map one item to a sequence.- Specified by:
mapin interfaceMappingFunction<ExternalObject<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
-
-