|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.java.JavaPlatform
public class JavaPlatform
Implementation of the Platform class containing methods specific to the Java platform (as distinct from .NET). This is a singleton class with no instance data.
| Constructor Summary | |
|---|---|
JavaPlatform()
The constructor is called during the static initialization of the Configuration, by virtue of the class name appearing in the edition.properties file within the issued JAR file |
|
| Method Summary | |
|---|---|
void |
addFunctionLibraries(FunctionLibraryList list,
Configuration config,
int hostLanguage)
Add the platform-specific function libraries to a function library list. |
boolean |
canReturnCollationKeys(StringCollator collation)
Given a collation, determine whether it is capable of returning collation keys. |
Object |
getCollationKey(SimpleCollation namedCollation,
String value)
Given a collation, get a collation key. |
SchemaType |
getExternalObjectType(Configuration config,
String uri,
String localName)
Get a SchemaType representing a wrapped external (Java or .NET) object |
String |
getInstallationDirectory(String edition,
Configuration config)
Return the name of the directory in which the software is installed (if available) |
Source |
getParserSource(PipelineConfiguration pipe,
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 |
String |
getVerifierClassName()
Get the verifier 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 |
XMLReader |
loadParser()
Get a parser by instantiating the SAXParserFactory |
StringCollator |
makeCollation(Configuration config,
Properties props,
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 |
void |
setDefaultSAXParserFactory()
Set the default XML parser to be loaded by the SAXParserFactory on this platform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaPlatform()
| Method Detail |
|---|
public void initialize(Configuration config)
initialize in interface Platformconfig - the Saxon Configurationpublic boolean isJava()
isJava in interface Platformpublic boolean isDotNet()
isDotNet in interface Platformpublic String getVerifierClassName()
getVerifierClassName in interface Platformpublic String getPlatformVersion()
getPlatformVersion in interface Platformpublic String getPlatformSuffix()
getPlatformSuffix in interface Platformpublic XMLReader loadParser()
loadParser in interface Platform
public Source getParserSource(PipelineConfiguration pipe,
StreamSource input,
int validation,
boolean dtdValidation,
int stripspace)
getParserSource in interface Platformpipe - the pipeline configurationinput - the supplied StreamSourcevalidation - indicates whether schema validation is requireddtdValidation - indicates whether DTD validation is requiredstripspace - indicates whether whitespace text nodes should be stripped
public StringCollator makeCollation(Configuration config,
Properties props,
String uri)
throws XPathException
makeCollation in interface Platformconfig - the configuration objectprops - the desired properties of the collationuri - the collation URI
XPathException - if a fatal error occurspublic boolean canReturnCollationKeys(StringCollator collation)
canReturnCollationKeys in interface Platformcollation - the collation, provided as a Comparator
public Object getCollationKey(SimpleCollation namedCollation,
String value)
getCollationKey in interface PlatformnamedCollation - the collation in usevalue - the string whose collation key is required
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,
int hostLanguage)
list - the function library list that is to be extendedconfig - the ConfigurationhostLanguage - the host language, for example Configuration.XQUERY
public SchemaType getExternalObjectType(Configuration config,
String uri,
String localName)
Platform
getExternalObjectType in interface Platformconfig - the Saxon Configurationuri - the namespace URI of the schema typelocalName - the local name of the schema type
public String getInstallationDirectory(String edition,
Configuration config)
getInstallationDirectory in interface Platformedition - config - the Saxon configuration
public void registerAllBuiltInObjectModels(Configuration config)
registerAllBuiltInObjectModels in interface Platformpublic void setDefaultSAXParserFactory()
setDefaultSAXParserFactory in interface Platform
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||