org.geotools.styling
Class SLDTransformer

Object
  extended by TransformerBase
      extended by 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
SLDTransformer()
          Construct a new instance of SLDTransformer with the default namespace mappings usually found in a simple Styled Layer Descriptor element.
SLDTransformer(Map nsBindings)
          Construct a new instance of SLDTransformer with the additional namespace mappings contained in nsBindings.
 
Method Summary
 Translator createTranslator(ContentHandler handler)
          Create a Translator to issue SAXEvents to a ContentHandler.
static void main(String[] args)
          Currently does nothing.
 
Methods inherited from class TransformerBase
createTransformer, createTransformTask, createXMLReader, getEncoding, getIndentation, isNamespaceDeclartionEnabled, isOmitXMLDeclaration, setEncoding, setIndentation, setNamespaceDeclarationEnabled, setOmitXMLDeclaration, transform, transform, transform, transform
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLDTransformer

public SLDTransformer()
Construct a new instance of SLDTransformer with the default namespace mappings usually found in a simple Styled Layer Descriptor element.


SLDTransformer

public SLDTransformer(Map nsBindings)
Construct a new instance of SLDTransformer with the additional namespace mappings contained in nsBindings.

The designated collection contains mappings of URI to associated prefix (string) to emit in the generated XML element.

Method Detail

createTranslator

public Translator createTranslator(ContentHandler handler)
Description copied from class: TransformerBase
Create a Translator to issue SAXEvents to a ContentHandler.

Specified by:
createTranslator in class TransformerBase

main

public static final void main(String[] args)
                       throws Exception
Currently does nothing.

Parameters:
args - DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!


Copyright © 1996-2014 Geotools. All Rights Reserved.