deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.rendering.r2d.se.parser
Class SymbologyParser

java.lang.Object
  extended by org.deegree.rendering.r2d.se.parser.SymbologyParser

public class SymbologyParser
extends Object

SymbologyParser parses the SE part of 1.1.0 and the corresponding SLD 1.0.0 part.

Version:
$Revision: 22769 $, $Date: 2010-02-26 12:55:38 +0100 (Fr, 26 Feb 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Nested Class Summary
static class SymbologyParser.Common
          Common
(package private) static class SymbologyParser.ElseFilter
           
static class SymbologyParser.FilterContinuation
          FilterContinuation
 
Field Summary
(package private) static SymbologyParser.ElseFilter ELSEFILTER
           
(package private) static org.slf4j.Logger LOG
           
 
Constructor Summary
SymbologyParser()
           
 
Method Summary
static Style parse(XMLStreamReader in)
           
static Style parseFeatureTypeOrCoverageStyle(XMLStreamReader in)
           
static Symbolizer<LineStyling> parseLineSymbolizer(XMLStreamReader in, UOM uom)
           
static URL parseOnlineResource(XMLStreamReader in)
           
static Symbolizer<PointStyling> parsePointSymbolizer(XMLStreamReader in, UOM uom)
           
static Symbolizer<PolygonStyling> parsePolygonSymbolizer(XMLStreamReader in, UOM uom)
           
static Symbolizer<RasterStyling> parseRasterSymbolizer(XMLStreamReader in, UOM uom)
           
static Pair<Symbolizer<?>,Continuation<StringBuffer>> parseSymbolizer(XMLStreamReader in)
           
static Pair<Symbolizer<TextStyling>,Continuation<StringBuffer>> parseTextSymbolizer(XMLStreamReader in, UOM uom)
           
static
<T> Continuation<T>
updateOrContinue(XMLStreamReader in, String name, T obj, Continuation.Updater<T> updater, Continuation<T> contn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

static final org.slf4j.Logger LOG

ELSEFILTER

static final SymbologyParser.ElseFilter ELSEFILTER
Constructor Detail

SymbologyParser

public SymbologyParser()
Method Detail

parseOnlineResource

public static URL parseOnlineResource(XMLStreamReader in)
                               throws XMLStreamException,
                                      MalformedURLException
Parameters:
in -
Returns:
the resolved href attribute
Throws:
XMLStreamException
MalformedURLException

parsePointSymbolizer

public static Symbolizer<PointStyling> parsePointSymbolizer(XMLStreamReader in,
                                                            UOM uom)
                                                     throws XMLStreamException
Parameters:
in -
uom -
Returns:
a new symbolizer
Throws:
XMLStreamException

parseSymbolizer

public static Pair<Symbolizer<?>,Continuation<StringBuffer>> parseSymbolizer(XMLStreamReader in)
                                                                      throws XMLStreamException
Parameters:
in -
Returns:
the symbolizer
Throws:
XMLStreamException

parseRasterSymbolizer

public static Symbolizer<RasterStyling> parseRasterSymbolizer(XMLStreamReader in,
                                                              UOM uom)
                                                       throws XMLStreamException
Parameters:
in -
uom -
Returns:
the symbolizer
Throws:
XMLStreamException

parseLineSymbolizer

public static Symbolizer<LineStyling> parseLineSymbolizer(XMLStreamReader in,
                                                          UOM uom)
                                                   throws XMLStreamException
Parameters:
in -
uom -
Returns:
the symbolizer
Throws:
XMLStreamException

parsePolygonSymbolizer

public static Symbolizer<PolygonStyling> parsePolygonSymbolizer(XMLStreamReader in,
                                                                UOM uom)
                                                         throws XMLStreamException
Parameters:
in -
uom -
Returns:
the symbolizer
Throws:
XMLStreamException

updateOrContinue

public static <T> Continuation<T> updateOrContinue(XMLStreamReader in,
                                                   String name,
                                                   T obj,
                                                   Continuation.Updater<T> updater,
                                                   Continuation<T> contn)
                                        throws XMLStreamException
Type Parameters:
T -
Parameters:
in -
name -
obj -
updater -
contn -
Returns:
either contn, or a new continuation which updates obj
Throws:
XMLStreamException

parseTextSymbolizer

public static Pair<Symbolizer<TextStyling>,Continuation<StringBuffer>> parseTextSymbolizer(XMLStreamReader in,
                                                                                           UOM uom)
                                                                                    throws XMLStreamException
Parameters:
in -
uom -
Returns:
the symbolizer
Throws:
XMLStreamException

parse

public static Style parse(XMLStreamReader in)
                   throws XMLStreamException
Parameters:
in -
Returns:
null, if no symbolizer and no MatchableObject type style was found
Throws:
XMLStreamException

parseFeatureTypeOrCoverageStyle

public static Style parseFeatureTypeOrCoverageStyle(XMLStreamReader in)
                                             throws XMLStreamException
Parameters:
in -
Returns:
a new style
Throws:
XMLStreamException

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>