Package org.geotools.xml.styling
Class SLDTransformer
Object
TransformerBase
SLDTransformer
Produces SLD to an output stream.
- Author:
- Ian Schneider
-
Nested Class Summary
Nested classes/interfaces inherited from class TransformerBase
TransformerBase.SchemaLocationSupport, TransformerBase.Task, TransformerBase.TranslatorSupport, TransformerBase.XMLReaderSupport
-
Field Summary
Fields inherited from class TransformerBase
XMLNS_NAMESPACE
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance ofSLDTransformer
with the default namespace mappings usually found in a simple Styled Layer Descriptor element.SLDTransformer
(Map nsBindings) Construct a new instance ofSLDTransformer
with the additional namespace mappings contained innsBindings
. -
Method Summary
Modifier and TypeMethodDescriptioncreateTranslator
(ContentHandler handler) Create a Translator to issue SAXEvents to a ContentHandler.boolean
static final void
Currently does nothing.void
setExportDefaultValues
(boolean exportDefaultValues) Methods inherited from class TransformerBase
createTransformer, createTransformTask, createXMLReader, getEncoding, getIndentation, isNamespaceDeclartionEnabled, isOmitXMLDeclaration, setEncoding, setIndentation, setNamespaceDeclarationEnabled, setOmitXMLDeclaration, transform, transform, transform, transform
-
Constructor Details
-
SLDTransformer
public SLDTransformer()Construct a new instance ofSLDTransformer
with the default namespace mappings usually found in a simple Styled Layer Descriptor element. -
SLDTransformer
Construct a new instance ofSLDTransformer
with the additional namespace mappings contained innsBindings
.The designated collection contains mappings of
URI
to associated prefix (string) to emit in the generated XML element.
-
-
Method Details
-
isExportDefaultValues
public boolean isExportDefaultValues()- Returns:
- the exportDefaultValues
-
setExportDefaultValues
public void setExportDefaultValues(boolean exportDefaultValues) - Parameters:
exportDefaultValues
- the exportDefaultValues to set
-
createTranslator
Description copied from class:TransformerBase
Create a Translator to issue SAXEvents to a ContentHandler.- Specified by:
createTranslator
in classTransformerBase
-
main
Currently does nothing.- Throws:
Exception
-