net.sf.saxon
public class AugmentedSource extends Object implements Source
Method Summary | |
---|---|
void | addFilter(ProxyReceiver filter)
Add a filter to the list of filters to be applied to the raw input |
Source | getContainedSource()
Get the Source object wrapped by this AugmentedSource |
int | getDTDValidation()
Get whether or not DTD validation of this source is required |
List | getFilters()
Get the list of filters to be applied to the input. |
int | getSchemaValidation()
Get whether or not schema validation of this source is required |
int | getStripSpace()
Get the space-stripping action to be applied to the source document |
String | getSystemId()
Get the System ID. |
Boolean | getWrapDocument()
Assuming that the contained Source is a node in a tree, determine whether a tree will be created
as a view of this supplied tree, or as a copy. |
XMLReader | getXMLReader() |
boolean | isLineNumbering()
Get whether line numbers are to be maintained in the constructed document |
static AugmentedSource | makeAugmentedSource(Source source)
Create an AugmentedSource that wraps a given Source object. |
void | setDTDValidationMode(int option)
Set whether or not schema validation of this source is required |
void | setLineNumbering(boolean lineNumbering)
Set whether line numbers are to be maintained in the constructed document |
void | setSchemaValidationMode(int option)
Set whether or not schema validation of this source is required |
void | setStripSpace(int stripAction)
Set the space-stripping action to be applied to the source document |
void | setSystemId(String id)
Set the System ID. |
void | setWrapDocument(Boolean wrap)
Assuming that the contained Source is a node in a tree, indicate whether a tree should be created
as a view of this supplied tree, or as a copy. |
void | setXMLReader(XMLReader parser)
Set the SAX parser (XMLReader) to be used |
Returns: the contained Source object
Returns: the validation mode requested, or DEFAULT to use the default validation mode from the Configuration.
Returns: the validation mode requested, or DEFAULT to use the default validation mode from the Configuration.
Returns: one of net.sf.saxon.value.Whitespace.IGNORABLE, net.sf.saxon.value.Whitespace.ALL, or net.sf.saxon.value.Whitespace.NONE
Returns: the System ID.
Returns: if true, the node in the supplied Source is wrapped, to create a view. If false, the node and its contained subtree is copied. If null, the system default is chosen.
Returns: true if line numbers are maintained
Parameters: source the Source object to be wrapped
Parameters: lineNumbering
Parameters: option one of STRICT, LAX, STRIP, PRESERVE, DEFAULT
Parameters: stripAction one of net.sf.saxon.value.Whitespace.IGNORABLE, net.sf.saxon.value.Whitespace.ALL, or net.sf.saxon.value.Whitespace.NONE
Parameters: id the System ID.
Parameters: wrap if true, the node in the supplied Source is wrapped, to create a view. If false, the node and its contained subtree is copied. If null, the system default is chosen.
Parameters: parser