public class SerializationProperties
extends java.lang.Object
method
or indent
, Saxon extensions such as saxon:indent-spaces
, and may also contain an index
of character maps.Constructor and Description |
---|
SerializationProperties()
Create a set of defaulted serialization parameters
|
SerializationProperties(java.util.Properties props)
Create a set of serialization parameters based on defined output properties,
with no character maps
|
SerializationProperties(java.util.Properties props,
CharacterMapIndex charMapIndex)
Create a set of serialization parameters based on defined output properties,
with an index of named character maps that may be referred to from the
USE_CHARACTER_MAPS property |
Modifier and Type | Method and Description |
---|---|
SerializationProperties |
combineWith(SerializationProperties defaults)
Combine these serialization parameters with a set of default serialization
parameters to create a new set of serialization parameters.
|
CharacterMapIndex |
getCharacterMapIndex()
Get the character map index, if any
|
java.util.Properties |
getProperties()
Get the simple output properties defined in these serialization parameters.
|
java.lang.String |
getProperty(java.lang.String name)
Get the value of a serialization property
|
FilterFactory |
getValidationFactory()
Get any validation factory that was added to the serialization parameters using
setValidationFactory(FilterFactory) |
SequenceNormalizer |
makeSequenceNormalizer(Receiver next)
Convenience method to create an appropriate SequenceNormalizer, based
on the item-separator appearing in the serialization parameters.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set the value of a serialization property.
|
void |
setValidationFactory(FilterFactory validationFactory)
Although validation is not normally part of serialization, the
xsl:result-document
instruction allows a validator to be inserted into the serialization pipeline. |
public SerializationProperties()
public SerializationProperties(java.util.Properties props)
public SerializationProperties(java.util.Properties props, CharacterMapIndex charMapIndex)
USE_CHARACTER_MAPS
propertypublic void setProperty(java.lang.String name, java.lang.String value)
name
- the property name in Clark notation (if this is constant, the available
constants are defined in classes OutputKeys
and SaxonOutputKeys
).value
- the property value. In the case of QName-valued properties, such as
cdata-section-elements
, these should be in Clark notationpublic java.lang.String getProperty(java.lang.String name)
name
- the property name in Clark notation (if this is constant, the available
constants are defined in classes OutputKeys
and SaxonOutputKeys
).cdata-section-elements
, these should be in Clark notationpublic java.util.Properties getProperties()
"indent"
or
"{http://saxon.sf.net/}indent-spaces"
public CharacterMapIndex getCharacterMapIndex()
public void setValidationFactory(FilterFactory validationFactory)
xsl:result-document
instruction allows a validator to be inserted into the serialization pipeline. This is achieved
by adding a request to insert a validation stage to the serialization parameters. The request
is in the form of a factory function that constructs the required validatorvalidationFactory
- a function that inserts a validator into a Receiver
pipelinepublic FilterFactory getValidationFactory()
setValidationFactory(FilterFactory)
public SequenceNormalizer makeSequenceNormalizer(Receiver next)
xsl:result-document
.next
- the next Receiver in the pipeline
SequenceNormalizer
, feeding into the supplied Receiver
,
possibly via a new validating filter.public SerializationProperties combineWith(SerializationProperties defaults)
defaults
- the parameters to use when no explicit values are suppliedCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.