net.sf.saxon.event
public class PipelineConfiguration extends Object
Constructor Summary | |
---|---|
PipelineConfiguration()
Create a PipelineConfiguration. | |
PipelineConfiguration(PipelineConfiguration p)
Create a PipelineConfiguration as a copy of an existing
PipelineConfiguration |
Method Summary | |
---|---|
Configuration | getConfiguration()
Get the Saxon Configuration object |
Controller | getController()
Get the controller associated with this pipelineConfiguration |
CopyInformee | getCopyInformee()
Get the CopyInformee to be notified of element nodes if the origin of the pipeline
is copying elements. |
ErrorListener | getErrorListener()
Get the ErrorListener used for reporting errors in processing this pipeline |
int | getHostLanguage()
Get the host language in use |
LocationProvider | getLocationProvider()
Get the LocationProvider for interpreting location ids passed down this pipeline |
ParseOptions | getParseOptions()
Get the document parsing and building options to be used on this pipeline
return the options to be used |
SchemaURIResolver | getSchemaURIResolver()
Get the user-defined SchemaURIResolver for resolving URIs used in "import schema"
declarations; returns null if none has been explicitly set. |
SourceLocator | getSourceLocation(long locationId)
Get a SourceLocator for a given locationId, using this location provider |
URIResolver | getURIResolver()
Get the URIResolver used for processing URIs encountered on this pipeline |
boolean | isExpandAttributeDefaults()
Ask whether attribute defaults defined in a schema or DTD are to be expanded or not
(by default, fixed and default attribute values are expanded, that is, they are inserted
into the document during validation as if they were present in the instance being validated) |
boolean | isRecoverFromValidationErrors()
Ask if this pipeline recovers from validation errors |
boolean | isSerializing()
Ask whether this pipeline is a serializing pipeline |
boolean | isShallowValidation()
Ask whether shallow validation has been requested |
void | setConfiguration(Configuration config)
Set the Saxon Configuration object |
void | setController(Controller controller)
Set the Controller associated with this pipelineConfiguration |
void | setCopyInformee(CopyInformee informee)
Set a CopyInformee to be notified of element nodes if the origin of the pipeline
is copying elements. |
void | setErrorListener(ErrorListener errorListener)
Set the ErrorListener used for reporting errors in processing this pipeline |
void | setExpandAttributeDefaults(boolean expand)
Set whether attribute defaults defined in a schema or DTD are to be expanded or not
(by default, fixed and default attribute values are expanded, that is, they are inserted
into the document during validation as if they were present in the instance being validated) |
void | setHostLanguage(int language)
Set the host language in use |
void | setLocationProvider(LocationProvider locationProvider)
Set the LocationProvider for interpreting location ids passed down this pipeline |
void | setParseOptions(ParseOptions options)
Set the document parsing and building options to be used on this pipeline |
void | setRecoverFromValidationErrors(boolean recover)
Say whether validation errors encountered on this pipeline should be treated as fatal
or as recoverable. |
void | setSchemaURIResolver(SchemaURIResolver resolver)
Set a user-defined SchemaURIResolver for resolving URIs used in "import schema"
declarations. |
void | setSerializing(boolean isSerializing)
Set whether this pipeline is a serializing pipeline |
void | setShallowValidation(boolean shallow)
Say whether validation should be shallow. |
void | setURIResolver(URIResolver uriResolver)
Set the URIResolver used for processing URIs encountered on this pipeline |
void | setUseXsiSchemaLocation(boolean recognize)
Say whether xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes
should be recognized while validating an instance document |
See Also: Configuration Controller
Parameters: p the existing PipelineConfiguration
Returns: the Saxon Configuration
Returns: the controller if it is known; otherwise null.
Returns: the CopyInformee to be notified
Returns: the ErrorListener
Returns: the appropriate LocationProvider
Returns: the SchemaURIResolver
Returns: the URIResolver
Returns: true if defaults are to be expanded, false if not
Returns: true if validation errors on this pipeline are treated as recoverable; false if they are treated as fatal
Returns: true if this pipeline is producing serialized output
Returns: true if shallow validation has been requested
Parameters: config the Saxon Configuration
Parameters: controller the Controller
Parameters: informee the CopyInformee to be notified
Parameters: errorListener the ErrorListener
Parameters: expand true if defaults are to be expanded, false if not
Parameters: locationProvider the LocationProvider
Parameters: options the options to be used
Parameters: recover set to true if validation errors are to be treated as recoverable. If this option is set to true, such errors will be reported to the ErrorListener using the error() method, and validation will continue. If it is set to false (the default), errors will be reported using the fatalError() method, and validation will be abandoned.
Parameters: resolver the SchemaURIResolver
Parameters: isSerializing true if this pipeline is producing serialized output
Parameters: shallow set to true to request shallow validation
Parameters: uriResolver the URIResolver
Parameters: recognize true if these attributes should be recognized