public class PipelineConfiguration
extends java.lang.Object
Constructor and Description |
---|
PipelineConfiguration(Configuration config)
Create a PipelineConfiguration.
|
PipelineConfiguration(PipelineConfiguration p)
Create a PipelineConfiguration as a copy of an existing
PipelineConfiguration
|
Modifier and Type | Method and Description |
---|---|
java.util.Stack<Item> |
getAppliedItemStack() |
java.lang.Object |
getComponent(java.lang.String name)
Get a named component of the pipeline
|
Configuration |
getConfiguration()
Get the Saxon Configuration object
|
Controller |
getController()
Get the controller associated with this pipelineConfiguration
|
UnfailingErrorListener |
getErrorListener()
Get an ErrorListener for reporting errors in processing this pipeline; this
will be the ErrorListener set locally in the PipelineConfiguration if there is one,
or the ErrorListener from the Configuration otherwise.
|
int |
getHostLanguage()
Get the host language in use
|
UnfailingErrorListener |
getLocalErrorListener()
Get the ErrorListener set as a property of 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.
|
javax.xml.transform.URIResolver |
getURIResolver()
Get the URIResolver used for processing URIs encountered on this pipeline
|
boolean |
isLocationIsCodeLocation() |
boolean |
isRecoverFromValidationErrors()
Ask if this pipeline recovers from validation errors
|
Item |
peekCurrentAppliedItem() |
void |
popCurrentAppliedItem() |
void |
pushCurrentAppliedItem(Item item)
Set the context item.
|
void |
setComponent(java.lang.String name,
java.lang.Object value)
Set a named component of the pipeline
|
void |
setConfiguration(Configuration config)
Set the Saxon Configuration object
|
void |
setController(Controller controller)
Set the Controller associated with this pipelineConfiguration
|
void |
setErrorListener(javax.xml.transform.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 |
setLocationIsCodeLocation(boolean locationIsCodeLocation) |
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 |
setURIResolver(javax.xml.transform.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
|
public PipelineConfiguration(Configuration config)
config
- the Saxon configurationConfiguration.makePipelineConfiguration()
,
Controller.makePipelineConfiguration()
public PipelineConfiguration(PipelineConfiguration p)
p
- the existing PipelineConfigurationpublic Configuration getConfiguration()
public void setConfiguration(Configuration config)
config
- the Saxon Configurationpublic UnfailingErrorListener getLocalErrorListener()
public UnfailingErrorListener getErrorListener()
public void setErrorListener(javax.xml.transform.ErrorListener errorListener)
errorListener
- the ErrorListenerpublic javax.xml.transform.URIResolver getURIResolver()
public void setURIResolver(javax.xml.transform.URIResolver uriResolver)
uriResolver
- the URIResolverpublic SchemaURIResolver getSchemaURIResolver()
public void setParseOptions(ParseOptions options)
options
- the options to be usedpublic ParseOptions getParseOptions()
public void setUseXsiSchemaLocation(boolean recognize)
recognize
- true if these attributes should be recognizedpublic void setRecoverFromValidationErrors(boolean recover)
Note this is a shortcut for getParseOptions().setContinueAfterValidationErrors()
, retained
for backwards compatibility.
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, errors will be reported using the fatalError() method, and validation will
be abandoned. The default depends on the circumstances: typically during standalone instance validation
the default is true, but during XSLT and XQuery processing it is false.public boolean isRecoverFromValidationErrors()
Note this is a shortcut for getParseOptions().isContinueAfterValidationErrors()
, retained
for backwards compatibility.
public void setSchemaURIResolver(SchemaURIResolver resolver)
resolver
- the SchemaURIResolverpublic Controller getController()
public void pushCurrentAppliedItem(Item item)
item
- the context itempublic void popCurrentAppliedItem()
public Item peekCurrentAppliedItem()
public java.util.Stack<Item> getAppliedItemStack()
public void setController(Controller controller)
controller
- the Controllerpublic int getHostLanguage()
Configuration.XSLT
or Configuration.XQUERY
public void setHostLanguage(int language)
language
- for example Configuration.XSLT
or Configuration.XQUERY
public void setExpandAttributeDefaults(boolean expand)
expand
- true if defaults are to be expanded, false if notpublic void setComponent(java.lang.String name, java.lang.Object value)
name
- string the component namevalue
- the component valuepublic java.lang.Object getComponent(java.lang.String name)
name
- string the component namepublic boolean isLocationIsCodeLocation()
public void setLocationIsCodeLocation(boolean locationIsCodeLocation)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.