java.io.Serializable
JavaPlatform
public interface Platform
extends java.io.Serializable
Modifier and Type | Method | Description |
---|---|---|
void |
addFunctionLibraries(FunctionLibraryList list,
Configuration config) |
Add platform-specific function libraries to the function library list
|
boolean |
canReturnCollationKeys(java.util.Comparator collation) |
Given a collation, determine whether it is capable of returning collation keys.
|
RegularExpression |
compileRegularExpression(java.lang.CharSequence regex,
boolean isXPath,
java.lang.CharSequence flags) |
Create a compiled regular expression
|
java.lang.Object |
getCollationKey(java.util.Comparator collation,
java.lang.String value) |
Given a collation, get a collation key.
|
SchemaType |
getExternalObjectType(java.lang.String uri,
java.lang.String localName) |
|
javax.xml.transform.Source |
getParserSource(javax.xml.transform.stream.StreamSource input,
int validation,
boolean dtdValidation,
int stripspace) |
Convert a StreamSource to either a SAXSource or a PullSource, depending on the native
parser of the selected platform
|
java.lang.String |
getPlatformSuffix() |
Get a suffix letter to add to the Saxon version number to identify the platform
|
java.lang.String |
getPlatformVersion() |
Get the platform version
|
void |
initialize(Configuration config) |
Perform platform-specific initialization of the configuration
|
java.net.URI |
makeAbsolute(java.lang.String relativeURI,
java.lang.String base) |
Construct an absolute URI from a relative URI and a base URI
|
java.util.Comparator |
makeCollation(Configuration config,
java.util.Properties props) |
Obtain a collation with a given set of properties.
|
void initialize(Configuration config)
java.net.URI makeAbsolute(java.lang.String relativeURI, java.lang.String base) throws java.net.URISyntaxException
relativeURI
- the relative URIbase
- the base URIjava.net.URISyntaxException
java.lang.String getPlatformVersion()
java.lang.String getPlatformSuffix()
javax.xml.transform.Source getParserSource(javax.xml.transform.stream.StreamSource input, int validation, boolean dtdValidation, int stripspace)
input
- the supplied StreamSourcevalidation
- dtdValidation
- stripspace
- RegularExpression compileRegularExpression(java.lang.CharSequence regex, boolean isXPath, java.lang.CharSequence flags) throws XPathException
regex
- the source text of the regular expression, in XML Schema or XPath syntaxisXPath
- set to true if this is an XPath regular expression, false if it is XML Schemaflags
- the flags argument as supplied to functions such as fn:matches(), in string formXPathException
- if the syntax of the regular expression or flags is incorrectjava.util.Comparator makeCollation(Configuration config, java.util.Properties props) throws XPathException
config
- the configuration objectprops
- the desired properties of the collationXPathException
- if a fatal error occursboolean canReturnCollationKeys(java.util.Comparator collation)
collation
- the collation being examined, provided as a Comparatorjava.lang.Object getCollationKey(java.util.Comparator collation, java.lang.String value)
java.lang.ClassCastException
- if the collation is not one that is capable of supplying
collation keys (this should have been checked in advance)void addFunctionLibraries(FunctionLibraryList list, Configuration config)
SchemaType getExternalObjectType(java.lang.String uri, java.lang.String localName)