Package net.sf.saxon.functions
Class URIQueryParameters
- java.lang.Object
-
- net.sf.saxon.functions.URIQueryParameters
-
public class URIQueryParameters extends Object
A set of query parameters on a URI passed to the collection() or document() function
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
URIQueryParameters.RegexFilter
A FilenameFilter that tests file names against a regular expression
-
Field Summary
Fields Modifier and Type Field Description (package private) Optional<String>
contentType
(package private) Optional<FilenameFilter>
filter
(package private) Optional<Boolean>
metadata
static int
ON_ERROR_FAIL
static int
ON_ERROR_IGNORE
static int
ON_ERROR_WARNING
(package private) Optional<Integer>
onError
(package private) Optional<Maker<XMLReader>>
parserMaker
(package private) Optional<Boolean>
recurse
(package private) Optional<Boolean>
stable
(package private) Optional<SpaceStrippingRule>
strippingRule
(package private) Optional<Integer>
validation
(package private) Optional<Boolean>
xinclude
-
Constructor Summary
Constructors Constructor Description URIQueryParameters(String query, Configuration config)
Create an object representing the query part of a URI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getContentType()
Get the value of media-type, or absent if absentOptional<FilenameFilter>
getFilenameFilter()
Get the file name filter (select=pattern), or absent if unspecifiedOptional<Boolean>
getMetaData()
Get the value of metadata=yes|no, or absent if unspecifiedOptional<Integer>
getOnError()
Get the value of the on-error=fail|warning|ignore parameter, or absent if unspecifiedOptional<Boolean>
getRecurse()
Get the value of the recurse=yes|no parameter, or absent if unspecifiedOptional<SpaceStrippingRule>
getSpaceStrippingRule()
Get the value of the strip-space=yes|no parameter.Optional<Boolean>
getStable()
Get the value of stable=yes|no, or absent if unspecifiedOptional<Integer>
getValidationMode()
Get the value of the validation=strict|lax|preserve|strip parameter, or absent if unspecifiedOptional<Boolean>
getXInclude()
Get the value of xinclude=yes|no, or absent if unspecifiedOptional<Maker<XMLReader>>
getXMLReaderMaker()
Get a factory for the selected XML parser class, or absent if unspecifiedstatic FilenameFilter
makeGlobFilter(String value)
ParseOptions
makeParseOptions(Configuration config)
Create ParseOptions based on these query parameters
-
-
-
Field Detail
-
filter
Optional<FilenameFilter> filter
-
strippingRule
Optional<SpaceStrippingRule> strippingRule
-
ON_ERROR_FAIL
public static final int ON_ERROR_FAIL
- See Also:
- Constant Field Values
-
ON_ERROR_WARNING
public static final int ON_ERROR_WARNING
- See Also:
- Constant Field Values
-
ON_ERROR_IGNORE
public static final int ON_ERROR_IGNORE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
URIQueryParameters
public URIQueryParameters(String query, Configuration config) throws XPathException
Create an object representing the query part of a URI- Parameters:
query
- the part of the URI after the "?" symbolconfig
- the Saxon configuration- Throws:
XPathException
-
-
Method Detail
-
makeGlobFilter
public static FilenameFilter makeGlobFilter(String value) throws XPathException
- Throws:
XPathException
-
getSpaceStrippingRule
public Optional<SpaceStrippingRule> getSpaceStrippingRule()
Get the value of the strip-space=yes|no parameter.- Returns:
- an instance of
AllElementsSpaceStrippingRule
,IgnorableSpaceStrippingRule
, orNoElementsSpaceStrippingRule
, or absent.
-
getValidationMode
public Optional<Integer> getValidationMode()
Get the value of the validation=strict|lax|preserve|strip parameter, or absent if unspecified
-
getFilenameFilter
public Optional<FilenameFilter> getFilenameFilter()
Get the file name filter (select=pattern), or absent if unspecified
-
getRecurse
public Optional<Boolean> getRecurse()
Get the value of the recurse=yes|no parameter, or absent if unspecified
-
getOnError
public Optional<Integer> getOnError()
Get the value of the on-error=fail|warning|ignore parameter, or absent if unspecified
-
getXInclude
public Optional<Boolean> getXInclude()
Get the value of xinclude=yes|no, or absent if unspecified
-
getMetaData
public Optional<Boolean> getMetaData()
Get the value of metadata=yes|no, or absent if unspecified
-
getContentType
public Optional<String> getContentType()
Get the value of media-type, or absent if absent
-
getStable
public Optional<Boolean> getStable()
Get the value of stable=yes|no, or absent if unspecified
-
getXMLReaderMaker
public Optional<Maker<XMLReader>> getXMLReaderMaker()
Get a factory for the selected XML parser class, or absent if unspecified
-
makeParseOptions
public ParseOptions makeParseOptions(Configuration config) throws XPathException
Create ParseOptions based on these query parameters- Throws:
XPathException
-
-