Package org.geotools.ysld.parse
Class RootParser
- Object
-
- YamlParseHandler
-
- YsldParseHandler
-
- RootParser
-
public class RootParser extends YsldParseHandler
YsldParseHandler
for the root of aYamlObject
. This is the "entrypoint"YsldParseHandler
for parsing Ysld into GeoTools-style objects. The resulting sld is accessible via the {sld()
method.
-
-
Field Summary
-
Fields inherited from class YsldParseHandler
factory, LOG
-
-
Constructor Summary
Constructors Constructor Description RootParser()
RootParser(List<ZoomContextFinder> zCtxtFinders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ZoomContext
getZoomContext(YamlMap map)
void
handle(YamlObject<?> obj, YamlParseContext context)
Handle parsing the providedYamlObject
in the givenYamlParseContext
.FeatureTypeStyle
newFeatureTypeStyle()
Rule
newRule()
StyledLayerDescriptor
sld()
-
-
-
Constructor Detail
-
RootParser
public RootParser()
-
RootParser
public RootParser(List<ZoomContextFinder> zCtxtFinders)
-
-
Method Detail
-
handle
public void handle(YamlObject<?> obj, YamlParseContext context)
Description copied from class:YamlParseHandler
Handle parsing the providedYamlObject
in the givenYamlParseContext
.- Specified by:
handle
in classYamlParseHandler
-
getZoomContext
protected ZoomContext getZoomContext(YamlMap map)
-
newFeatureTypeStyle
public FeatureTypeStyle newFeatureTypeStyle()
-
newRule
public Rule newRule()
-
sld
public StyledLayerDescriptor sld()
-
-