|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.JavaPlatform
Implementation of the Platform class containing methods specific to the Java platform (as distinct from .NET)
| Method Summary | |
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 |
static java.lang.String |
escapeSpaces(java.lang.String s)
Replace spaces by %20 |
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)
|
static JavaPlatform |
getInstance()
|
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. |
static java.lang.String |
tryToExpand(java.lang.String systemId)
If a system ID can't be parsed as a URL, we'll try to expand it as a relative URI using the current directory as the base URI: MHK addition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static JavaPlatform getInstance()
public void initialize(Configuration config)
initialize in interface Platform
public java.net.URI makeAbsolute(java.lang.String relativeURI,
java.lang.String base)
throws java.net.URISyntaxException
makeAbsolute in interface PlatformrelativeURI - the relative URIbase - the base URI
java.net.URISyntaxExceptionpublic static java.lang.String escapeSpaces(java.lang.String s)
public static java.lang.String tryToExpand(java.lang.String systemId)
public java.lang.String getPlatformVersion()
getPlatformVersion in interface Platformpublic java.lang.String getPlatformSuffix()
getPlatformSuffix in interface Platform
public javax.xml.transform.Source getParserSource(javax.xml.transform.stream.StreamSource input,
int validation,
boolean dtdValidation,
int stripspace)
getParserSource in interface Platforminput - the supplied StreamSourcevalidation - dtdValidation - stripspace -
public RegularExpression compileRegularExpression(java.lang.CharSequence regex,
boolean isXPath,
java.lang.CharSequence flags)
throws XPathException
compileRegularExpression in interface Platformregex - 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 form
XPathException - if the syntax of the regular expression or flags is incorrect
public java.util.Comparator makeCollation(Configuration config,
java.util.Properties props)
throws XPathException
makeCollation in interface Platformconfig - the configuration objectprops - the desired properties of the collation
XPathException - if a fatal error occurspublic boolean canReturnCollationKeys(java.util.Comparator collation)
canReturnCollationKeys in interface Platformcollation - the collation, provided as a Comparator
public java.lang.Object getCollationKey(java.util.Comparator collation,
java.lang.String value)
getCollationKey in interface Platformjava.lang.ClassCastException - if the collation is not one that is capable of supplying
collation keys (this should have been checked in advance)
public void addFunctionLibraries(FunctionLibraryList list,
Configuration config)
addFunctionLibraries in interface Platform
public SchemaType getExternalObjectType(java.lang.String uri,
java.lang.String localName)
getExternalObjectType in interface Platform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||