public class SerializerFactoryPE extends SerializerFactory
Constructor and Description |
---|
SerializerFactoryPE(ProfessionalConfiguration config) |
Modifier and Type | Method and Description |
---|---|
Receiver |
addTextOutputFilter(Receiver next,
java.util.Properties properties)
Add a filter to the text output method pipeline.
|
protected void |
checkExtensions(java.lang.String key) |
java.lang.String |
checkOutputProperty(java.lang.String key,
java.lang.String value)
Check that a supplied output property is valid, and normalize the value (specifically in the case of boolean
values where yes|true|1 are normalized to "yes", and no|false|0 are normalized to "no").
|
protected SequenceReceiver |
createSaxonSerializationMethod(java.lang.String method,
SerializationProperties serProps,
PipelineConfiguration pipe,
CharacterMapExpander characterMapExpander,
ProxyReceiver normalizer,
javax.xml.transform.stream.StreamResult result) |
protected java.util.Comparator<AtomicValue> |
getPropertySorter(java.lang.String propertyOrder)
Get a Comparator that sorts key values in a map into the order implied by the
serialization property saxon:property-order
|
protected ProxyReceiver |
newAttributeSorter(Receiver next,
java.util.Properties outputProperties)
Create a new AttributeSorter, responsible for sorting of attributes into a specified order.
|
protected Emitter |
newHTMLEmitter(java.util.Properties properties)
Create a new HTML Emitter.
|
protected ProxyReceiver |
newHTMLIndenter(Receiver next,
java.util.Properties outputProperties)
Create a new HTML Indenter.
|
protected Receiver |
newNamespaceSorter(Receiver next,
java.util.Properties outputProperties)
Create a new NamespaceSorter, responsible for sorting of namespaces into a specified order.
|
SequenceWrapper |
newSequenceWrapper(Receiver destination)
Get a SequenceWrapper, a class that serializes an XDM sequence with full annotation of item types, node kinds,
etc.
|
protected Emitter |
newXHTMLEmitter(java.util.Properties properties)
Create a new XHTML Emitter.
|
protected ProxyReceiver |
newXHTMLIndenter(Receiver next,
java.util.Properties outputProperties)
Create a new XHTML Indenter.
|
protected Emitter |
newXMLEmitter(java.util.Properties properties)
Create a new XML Emitter.
|
protected ProxyReceiver |
newXMLIndenter(XMLEmitter next,
java.util.Properties outputProperties)
Create a new XML Indenter.
|
SequenceReceiver |
prepareNextStylesheet(PipelineConfiguration pipe,
java.lang.String href,
java.lang.String baseURI,
javax.xml.transform.Result result)
Prepare another stylesheet to handle the output of this one.
|
addHtml5Component, checkListOfClarkNames, checkListOfClarkNamesAllowingStar, checkNonNegativeInteger, checkYesOrNo, createHTMLSerializer, createTextSerializer, createUserDefinedOutputMethod, createXHTMLSerializer, createXMLSerializer, customizeAdaptiveSerializer, customizeJSONSerializer, getConfiguration, getReceiver, getReceiver, getReceiver, getReceiver, getXMLStreamWriter, injectCharacterMapExpander, injectUnicodeNormalizer, makeSequenceNormalizer, newCDATAFilter, newCharacterMapExpander, newContentHandlerProxy, newHTMLMetaTagAdjuster, newHTMLURIEscaper, newTEXTEmitter, newUncommittedSerializer, newUnicodeNormalizer, newXHTMLMetaTagAdjuster, newXHTMLURIEscaper, newXML10ContentChecker, parseListOfNodeNames
public SerializerFactoryPE(ProfessionalConfiguration config)
protected SequenceReceiver createSaxonSerializationMethod(java.lang.String method, SerializationProperties serProps, PipelineConfiguration pipe, CharacterMapExpander characterMapExpander, ProxyReceiver normalizer, javax.xml.transform.stream.StreamResult result) throws XPathException
createSaxonSerializationMethod
in class SerializerFactory
XPathException
protected ProxyReceiver newHTMLIndenter(Receiver next, java.util.Properties outputProperties)
SerializerFactory
newHTMLIndenter
in class SerializerFactory
next
- the next receiver in the pipelineoutputProperties
- the serialization parametersprotected ProxyReceiver newXHTMLIndenter(Receiver next, java.util.Properties outputProperties)
SerializerFactory
newXHTMLIndenter
in class SerializerFactory
next
- the next receiver in the pipelineoutputProperties
- the serialization parametersprotected ProxyReceiver newXMLIndenter(XMLEmitter next, java.util.Properties outputProperties)
SerializerFactory
newXMLIndenter
in class SerializerFactory
next
- the next receiver in the pipelineoutputProperties
- the serialization parametersprotected Emitter newXMLEmitter(java.util.Properties properties)
SerializerFactory
newXMLEmitter
in class SerializerFactory
properties
- the output propertiesprotected Emitter newHTMLEmitter(java.util.Properties properties)
SerializerFactory
newHTMLEmitter
in class SerializerFactory
properties
- the output propertiesprotected ProxyReceiver newAttributeSorter(Receiver next, java.util.Properties outputProperties)
newAttributeSorter
in class SerializerFactory
next
- the next receiver in the pipelineoutputProperties
- the serialization parametersprotected Receiver newNamespaceSorter(Receiver next, java.util.Properties outputProperties)
newNamespaceSorter
in class SerializerFactory
next
- the next receiver in the pipelineoutputProperties
- the serialization parametersprotected Emitter newXHTMLEmitter(java.util.Properties properties)
newXHTMLEmitter
in class SerializerFactory
properties
- the output propertiespublic Receiver addTextOutputFilter(Receiver next, java.util.Properties properties) throws XPathException
addTextOutputFilter
in class SerializerFactory
next
- the next receiver (typically the TextEmitter)properties
- the output propertiesXPathException
- if the operation failspublic SequenceReceiver prepareNextStylesheet(PipelineConfiguration pipe, java.lang.String href, java.lang.String baseURI, javax.xml.transform.Result result) throws XPathException
This method is intended for internal use, to support the
saxon:next-in-chain
extension.
prepareNextStylesheet
in class SerializerFactory
pipe
- the pipeline for the current transformationhref
- URI of the next stylesheet to be appliedbaseURI
- base URI for resolving href if it's a relative
URIresult
- the output destination of the current stylesheetXPathException
- if any dynamic error occurspublic SequenceWrapper newSequenceWrapper(Receiver destination)
newSequenceWrapper
in class SerializerFactory
destination
- the place where the wrapped sequence will be sentpublic java.lang.String checkOutputProperty(java.lang.String key, java.lang.String value) throws XPathException
checkOutputProperty
in class SerializerFactory
key
- the name of the property, in Clark formatvalue
- the value of the property. This may be set to null, in which case no validation takes place.
The value must be in JAXP format, that is, with lexical QNames expanded to Clark namesXPathException
- if the property name or value is invalidprotected void checkExtensions(java.lang.String key)
checkExtensions
in class SerializerFactory
protected java.util.Comparator<AtomicValue> getPropertySorter(java.lang.String propertyOrder)
getPropertySorter
in class SerializerFactory
propertyOrder
- the value of the saxon:property-order serialization propertyCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.