Package net.sf.saxon.functions
Class URIQueryParameters
- java.lang.Object
-
- net.sf.saxon.functions.URIQueryParameters
-
public class URIQueryParameters extends java.lang.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 static int
ON_ERROR_FAIL
static int
ON_ERROR_IGNORE
static int
ON_ERROR_WARNING
-
Constructor Summary
Constructors Constructor Description URIQueryParameters(java.lang.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 java.util.Optional<java.lang.String>
getContentType()
Get the value of media-type, or absent if absentjava.util.Optional<java.io.FilenameFilter>
getFilenameFilter()
Get the file name filter (select=pattern), or absent if unspecifiedjava.util.Optional<java.lang.Boolean>
getMetaData()
Get the value of metadata=yes|no, or absent if unspecifiedjava.util.Optional<java.lang.Integer>
getOnError()
Get the value of the on-error=fail|warning|ignore parameter, or absent if unspecifiedjava.util.Optional<java.lang.Boolean>
getRecurse()
Get the value of the recurse=yes|no parameter, or absent if unspecifiedjava.util.Optional<SpaceStrippingRule>
getSpaceStrippingRule()
Get the value of the strip-space=yes|no parameter.java.util.Optional<java.lang.Boolean>
getStable()
Get the value of stable=yes|no, or absent if unspecifiedjava.util.Optional<java.lang.Integer>
getValidationMode()
Get the value of the validation=strict|lax|preserve|strip parameter, or absent if unspecifiedjava.util.Optional<java.lang.Boolean>
getXInclude()
Get the value of xinclude=yes|no, or absent if unspecifiedjava.util.Optional<Maker<org.xml.sax.XMLReader>>
getXMLReaderMaker()
Get a factory for the selected XML parser class, or absent if unspecifiedstatic java.io.FilenameFilter
makeGlobFilter(java.lang.String value)
ParseOptions
makeParseOptions(Configuration config)
Create ParseOptions based on these query parameters
-
-
-
Field Detail
-
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(java.lang.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 java.io.FilenameFilter makeGlobFilter(java.lang.String value) throws XPathException
- Throws:
XPathException
-
getSpaceStrippingRule
public java.util.Optional<SpaceStrippingRule> getSpaceStrippingRule()
Get the value of the strip-space=yes|no parameter.- Returns:
- an instance of
AllElementsSpaceStrippingRule
,IgnorableSpaceStrippingRule
, orNoElementsSpaceStrippingRule
, or absent.
-
getValidationMode
public java.util.Optional<java.lang.Integer> getValidationMode()
Get the value of the validation=strict|lax|preserve|strip parameter, or absent if unspecified
-
getFilenameFilter
public java.util.Optional<java.io.FilenameFilter> getFilenameFilter()
Get the file name filter (select=pattern), or absent if unspecified
-
getRecurse
public java.util.Optional<java.lang.Boolean> getRecurse()
Get the value of the recurse=yes|no parameter, or absent if unspecified
-
getOnError
public java.util.Optional<java.lang.Integer> getOnError()
Get the value of the on-error=fail|warning|ignore parameter, or absent if unspecified
-
getXInclude
public java.util.Optional<java.lang.Boolean> getXInclude()
Get the value of xinclude=yes|no, or absent if unspecified
-
getMetaData
public java.util.Optional<java.lang.Boolean> getMetaData()
Get the value of metadata=yes|no, or absent if unspecified
-
getContentType
public java.util.Optional<java.lang.String> getContentType()
Get the value of media-type, or absent if absent
-
getStable
public java.util.Optional<java.lang.Boolean> getStable()
Get the value of stable=yes|no, or absent if unspecified
-
getXMLReaderMaker
public java.util.Optional<Maker<org.xml.sax.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
-
-