Package net.sf.saxon.lib
Class StandardCollectionURIResolver.FileExpander
- java.lang.Object
-
- net.sf.saxon.lib.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 Summary
Fields Modifier and Type Field Description (package private) java.io.FilenameFilterfilter(package private) intonError(package private) Maker<org.xml.sax.XMLReader>parserMaker(package private) PipelineConfigurationpipe(package private) booleanrecurse(package private) SpaceStrippingRulestrippingRule(package private) booleanunparsed(package private) intvalidation(package private) java.lang.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<java.io.File> item)Map one item to a sequence.
-
-
-
Field Detail
-
recurse
boolean recurse
-
strippingRule
SpaceStrippingRule strippingRule
-
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
-
pipe
PipelineConfiguration pipe
-
-
Constructor Detail
-
FileExpander
public FileExpander(URIQueryParameters params, PipelineConfiguration pipe)
-
-
Method Detail
-
map
public SequenceIterator<?> map(ExternalObject<java.io.File> item) throws XPathException
Map one item to a sequence.- Specified by:
mapin interfaceMappingFunction<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
-
-