Package org.geotools.xml.styling
Class SLDTransformer
- Object
-
- TransformerBase
-
- SLDTransformer
-
public class SLDTransformer extends TransformerBase
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
Constructors Constructor Description SLDTransformer()
Construct 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Translator
createTranslator(ContentHandler handler)
Create a Translator to issue SAXEvents to a ContentHandler.boolean
isExportDefaultValues()
static void
main(String[] args)
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 Detail
-
SLDTransformer
public SLDTransformer()
Construct a new instance ofSLDTransformer
with the default namespace mappings usually found in a simple Styled Layer Descriptor element.
-
SLDTransformer
public SLDTransformer(Map nsBindings)
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 Detail
-
isExportDefaultValues
public boolean isExportDefaultValues()
- Returns:
- the exportDefaultValues
-
setExportDefaultValues
public void setExportDefaultValues(boolean exportDefaultValues)
- Parameters:
exportDefaultValues
- the exportDefaultValues to set
-
createTranslator
public Translator createTranslator(ContentHandler handler)
Description copied from class:TransformerBase
Create a Translator to issue SAXEvents to a ContentHandler.- Specified by:
createTranslator
in classTransformerBase
-
main
public static final void main(String[] args) throws Exception
Currently does nothing.- Throws:
Exception
-
-