net.sf.saxon
public interface Platform extends Serializable
Method Summary | |
---|---|
boolean | canReturnCollationKeys(Comparator collation)
Given a collation, determine whether it is capable of returning collation keys.
|
RegularExpression | compileRegularExpression(CharSequence regex, boolean isXPath, CharSequence flags)
Create a compiled regular expression |
Object | getCollationKey(Comparator collation, String value)
Given a collation, get a collation key. |
Source | getParserSource(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 |
String | getPlatformSuffix()
Get a suffix letter to add to the Saxon version number to identify the platform |
String | getPlatformVersion()
Get the platform version |
void | initialize(Configuration config)
Perform platform-specific initialization of the configuration |
URI | makeAbsolute(String relativeURI, String base)
Construct an absolute URI from a relative URI and a base URI |
Comparator | makeCollation(Configuration config, Properties props)
Obtain a collation with a given set of properties. |
Parameters: collation the collation being examined, provided as a Comparator
Returns: true if this collation can supply collation keys
Parameters: regex the source text of the regular expression, in XML Schema or XPath syntax isXPath set to true if this is an XPath regular expression, false if it is XML Schema flags the flags argument as supplied to functions such as fn:matches(), in string form
Returns: the compiled regular expression
Throws: XPathException if the syntax of the regular expression or flags is incorrect
Returns: a representation of the collation key, such that two collation keys are equal() if and only if the string values they represent are equal under the specified collation.
Throws: ClassCastException if the collation is not one that is capable of supplying collation keys (this should have been checked in advance)
Parameters: input the supplied StreamSource validation dtdValidation stripspace
Returns: the PullSource or SAXSource, initialized with a suitable parser, or the original input Source, if now special handling is required or possible
Parameters: relativeURI the relative URI base the base URI
Returns: the absolutized URI
Throws: URISyntaxException
Parameters: config the configuration object props the desired properties of the collation
Returns: a collation with these properties
Throws: XPathException if a fatal error occurs