|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Platform
This interface provides access to methods whose implementation depends on the chosen platform (typically Java or .NET)
| Method Summary | |
|---|---|
boolean |
canReturnCollationKeys(StringCollator collation)
Given a collation, determine whether it is capable of returning collation keys. |
java.lang.Object |
getCollationKey(NamedCollation namedCollation,
java.lang.String value)
Given a collation, get a collation key. |
SchemaType |
getExternalObjectType(Configuration config,
java.lang.String uri,
java.lang.String localName)
Get a SchemaType representing a wrapped external (Java or .NET) object |
java.lang.String |
getInstallationDirectory(java.lang.String edition)
Return the name of the directory in which the software is installed (if available) |
javax.xml.transform.Source |
getParserSource(PipelineConfiguration pipe,
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 |
java.lang.String |
getVerifierClassName()
Get the verifier class name appropriate to the platform |
void |
initialize(Configuration config)
Perform platform-specific initialization of the configuration |
boolean |
isDotNet()
Return true if this is the .NET platform |
boolean |
isJava()
Return true if this is the Java platform |
org.xml.sax.XMLReader |
loadParser()
Get a parser by instantiating the SAXParserFactory |
StringCollator |
makeCollation(Configuration config,
java.util.Properties props,
java.lang.String uri)
Obtain a collation with a given set of properties. |
void |
registerAllBuiltInObjectModels(Configuration config)
Register all the external object models that are provided as standard with the relevant edition of Saxon for this Configuration |
| Method Detail |
|---|
void initialize(Configuration config)
config - the Saxon Configurationboolean isJava()
boolean isDotNet()
java.lang.String getVerifierClassName()
java.lang.String getPlatformVersion()
java.lang.String getPlatformSuffix()
org.xml.sax.XMLReader loadParser()
javax.xml.transform.Source getParserSource(PipelineConfiguration pipe,
javax.xml.transform.stream.StreamSource input,
int validation,
boolean dtdValidation,
int stripspace)
pipe - the pipeline Configurationinput - the supplied StreamSourcevalidation - required validation mode, for example Validation.STRICTdtdValidation - true if DTD-based input validation is requiredstripspace - option for whitespace-stripping (ALL, NONE, or IGNORABLE)
StringCollator makeCollation(Configuration config,
java.util.Properties props,
java.lang.String uri)
throws XPathException
config - the configuration objectprops - the desired properties of the collationuri - the collation URI
XPathException - if a fatal error occursboolean canReturnCollationKeys(StringCollator collation)
collation - the collation being examined, provided as a Comparator
java.lang.Object getCollationKey(NamedCollation namedCollation,
java.lang.String value)
namedCollation - the collation in usevalue - the string whose collation key is required
java.lang.ClassCastException - if the collation is not one that is capable of supplying
collation keys (this should have been checked in advance)
SchemaType getExternalObjectType(Configuration config,
java.lang.String uri,
java.lang.String localName)
config - the Saxon Configurationuri - the namespace URI of the schema typelocalName - the local name of the schema type
java.lang.String getInstallationDirectory(java.lang.String edition)
edition - The edition of the software that is loaded ("HE", "PE", or "EE")
void registerAllBuiltInObjectModels(Configuration config)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||