| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
targetConfig |
| Constructor and Description |
|---|
ConfigurationReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(UnicodeString chars,
Location location,
int properties)
Notify character data.
|
void |
close()
Notify the end of the event stream
|
void |
comment(UnicodeString content,
Location location,
int properties)
Notify a comment.
|
void |
endDocument()
Notify the end of a document node
|
void |
endElement()
Notify the end of an element.
|
protected void |
error(XPathException err) |
protected void |
errorClass(java.lang.String element,
java.lang.String attribute,
java.lang.String actual,
java.lang.Class required,
java.lang.Exception cause) |
PipelineConfiguration |
getPipelineConfiguration()
Get the pipeline configuration
|
java.lang.String |
getSystemId() |
Configuration |
makeConfiguration(javax.xml.transform.Source source)
Create a Configuration based on the contents of this configuration file
|
void |
open()
Notify the start of the event stream
|
void |
processingInstruction(java.lang.String name,
UnicodeString data,
Location location,
int properties)
Output a processing instruction
|
protected void |
readExtensionElement(AttributeMap atts)
Process details of XSLT extension elements.
|
protected void |
readWithParam(AttributeMap atts,
NamespaceMap nsMap) |
protected void |
readXsltPackage(AttributeMap atts) |
void |
setBaseConfiguration(Configuration base)
Set a base Configuration to be used by the new Configuration.
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Set the ClassLoader to be used for dynamic loading of the configuration, and for dynamic loading
of other classes used within the configuration.
|
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration
|
void |
setSystemId(java.lang.String systemId) |
void |
setUnparsedEntity(java.lang.String name,
java.lang.String systemID,
java.lang.String publicID)
Notify an unparsed entity URI.
|
void |
startDocument(int properties)
Notify the start of a document node
|
void |
startElement(NodeName elemName,
SchemaType type,
AttributeMap atts,
NamespaceMap namespaces,
Location location,
int properties)
Notify the start of an element
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, append, handlesAppend, usesTypeAnnotationsprotected Configuration targetConfig
public void setPipelineConfiguration(PipelineConfiguration pipe)
ReceiversetPipelineConfiguration in interface Receiverpipe - the pipeline configurationpublic PipelineConfiguration getPipelineConfiguration()
ReceivergetPipelineConfiguration in interface Receiverpublic void setSystemId(java.lang.String systemId)
setSystemId in interface javax.xml.transform.Resultpublic void open()
throws XPathException
Receiveropen in interface ReceiverXPathException - if an error occurspublic void startDocument(int properties)
throws XPathException
ReceiverstartDocument in interface Receiverproperties - bit-significant integer indicating properties of the document node.
The definitions of the bits are in class ReceiverOptionXPathException - if an error occurspublic void setUnparsedEntity(java.lang.String name,
java.lang.String systemID,
java.lang.String publicID)
throws XPathException
ReceiversetUnparsedEntity in interface Receivername - The name of the unparsed entitysystemID - The system identifier of the unparsed entitypublicID - The identifier of the unparsed entityXPathException - if an error occurspublic void processingInstruction(java.lang.String name,
UnicodeString data,
Location location,
int properties)
throws XPathException
ReceiverprocessingInstruction in interface Receivername - The PI name. This must be a legal name (it will not be checked).data - The data portion of the processing instructionlocation - provides information such as line number and system ID.properties - Additional information about the PI.XPathException - if an error occurspublic void comment(UnicodeString content, Location location, int properties) throws XPathException
Receivercomment in interface Receivercontent - The content of the commentlocation - provides information such as line number and system ID.properties - Additional information about the comment.XPathException - if an error occurspublic void close()
throws XPathException
Receiverclose in interface ReceiverXPathException - if an error occurspublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.Resultpublic void setClassLoader(java.lang.ClassLoader classLoader)
classLoader - the ClassLoader to be usedpublic void setBaseConfiguration(Configuration base)
base - the base configuration to be usedpublic Configuration makeConfiguration(javax.xml.transform.Source source) throws XPathException
source - the Source of the configuration fileXPathException - if a failure occurs, typically an invalid configuration filepublic void endDocument()
ReceiverendDocument in interface Receiverpublic void startElement(NodeName elemName, SchemaType type, AttributeMap atts, NamespaceMap namespaces, Location location, int properties) throws XPathException
ReceiverstartElement in interface ReceiverelemName - the name of the element.type - the type annotation of the element.atts - the attributes of this elementnamespaces - the in-scope namespaces of this element: generally this is all the in-scope
namespaces, without relying on inheriting namespaces from parent elementslocation - an object providing information about the module, line, and column where the node originatedproperties - bit-significant properties of the element node. If there are no relevant
properties, zero is supplied. The definitions of the bits are in class ReceiverOptionXPathException - if an error occursprotected void readExtensionElement(AttributeMap atts)
atts - the attributes of the extensionElement element in the configuration fileprotected void readXsltPackage(AttributeMap atts)
protected void readWithParam(AttributeMap atts, NamespaceMap nsMap)
protected void error(XPathException err)
protected void errorClass(java.lang.String element,
java.lang.String attribute,
java.lang.String actual,
java.lang.Class required,
java.lang.Exception cause)
public void endElement()
throws XPathException
ReceiverendElement in interface ReceiverXPathException - if an error occurspublic void characters(UnicodeString chars, Location location, int properties) throws XPathException
Receivercharacters in interface Receiverchars - The characterslocation - provides information such as line number and system ID.properties - Bit significant value. The following bits are defined:
XPathException - if an error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.