com.saxonica.ptree
Class PTreeSource

java.lang.Object
  extended by com.saxonica.ptree.PTreeSource
All Implemented Interfaces:
Source

public class PTreeSource
extends Object
implements Source

A JAXP Source that maps to an XML document represented as a PTree on disk.


Constructor Summary
PTreeSource()
           
 
Method Summary
 String getSystemId()
          Get the system identifier that was set with setSystemId.
 DocumentInfo load(Configuration config)
          Read the PTree and return the DocumentInfo representing the root node of the resulting in-memory tree
 void setSystemId(String systemId)
          Set the system identifier for this Source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTreeSource

public PTreeSource()
Method Detail

getSystemId

public String getSystemId()
Get the system identifier that was set with setSystemId.

Specified by:
getSystemId in interface Source
Returns:
The system identifier that was set with setSystemId, or null if setSystemId was not called.

setSystemId

public void setSystemId(String systemId)
Set the system identifier for this Source.

The system identifier is optional if the source does not get its data from a URL, but it may still be useful to provide one. The application can use a system identifier, for example, to resolve relative URIs and to include in error messages and warnings.

Specified by:
setSystemId in interface Source
Parameters:
systemId - The system identifier as a URL string.

load

public DocumentInfo load(Configuration config)
                  throws XPathException
Read the PTree and return the DocumentInfo representing the root node of the resulting in-memory tree

Throws:
XPathException


Copyright (C) Michael H. Kay. All rights reserved.