| java.lang.Object net.sf.saxon.AugmentedSource
AugmentedSource | public class AugmentedSource implements Source(Code) | | This class wraps a JAXP Source object to provide an extended Source object that
contains options indicating how the Source should be processed: for example,
whether or not it should be validated against a schema. Other options that can
be set include the SAX XMLReader to be used, and the choice of whether a source
in the form of an existing tree should be copied or wrapped.
|
addFilter | public void addFilter(ProxyReceiver filter)(Code) | | Add a filter to the list of filters to be applied to the raw input
|
getContainedSource | public Source getContainedSource()(Code) | | Get the Source object wrapped by this AugmentedSource
the contained Source object |
getFilters | public List getFilters()(Code) | | Get the list of filters to be applied to the input. Returns null if there are no filters.
|
getSchemaValidation | public int getSchemaValidation()(Code) | | Get whether or not schema validation of this source is required
the validation mode requested, or Validation.DEFAULTto use the default validation mode from the Configuration. |
getStripSpace | public int getStripSpace()(Code) | | Get the space-stripping action to be applied to the source document
|
getSystemId | public String getSystemId()(Code) | | Get the System ID. This gets the System Id on the underlying Source object.
the System ID. |
getWrapDocument | public Boolean getWrapDocument()(Code) | | 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.
if true, the node in the supplied Source is wrapped, to create a view. If false, the nodeand its contained subtree is copied. If null, the system default is chosen. |
makeAugmentedSource | public static AugmentedSource makeAugmentedSource(Source source)(Code) | | Create an AugmentedSource that wraps a given Source object. If this is already
an AugmentedSource, the original AugmentedSource is returned.
Parameters: source - the Source object to be wrapped |
setStripSpace | public void setStripSpace(int stripAction)(Code) | | Set the space-stripping action to be applied to the source document
|
setSystemId | public void setSystemId(String id)(Code) | | Set the System ID. This sets the System Id on the underlying Source object.
Parameters: id - the System ID. |
setWrapDocument | public void setWrapDocument(Boolean wrap)(Code) | | 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.
Parameters: wrap - if true, the node in the supplied Source is wrapped, to create a view. If false, the nodeand its contained subtree is copied. If null, the system default is chosen. |
|
|