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 ofSLDTransformerwith the default namespace mappings usually found in a simple Styled Layer Descriptor element.SLDTransformer(Map nsBindings) Construct a new instance ofSLDTransformerwith the additional namespace mappings contained innsBindings. -
Method Summary
Modifier and TypeMethodDescriptioncreateTranslator(ContentHandler handler) Create a Translator to issue SAXEvents to a ContentHandler.booleanstatic final voidCurrently does nothing.voidsetExportDefaultValues(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 ofSLDTransformerwith the default namespace mappings usually found in a simple Styled Layer Descriptor element. -
SLDTransformer
Construct a new instance ofSLDTransformerwith the additional namespace mappings contained innsBindings.The designated collection contains mappings of
URIto 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:TransformerBaseCreate a Translator to issue SAXEvents to a ContentHandler.- Specified by:
createTranslatorin classTransformerBase
-
main
Currently does nothing.- Throws:
Exception
-