Package org.geotools.ysld.parse
Class RootParser
- Object
-
- YamlParseHandler
-
- YsldParseHandler
-
- RootParser
-
public class RootParser extends YsldParseHandler
YsldParseHandlerfor the root of aYamlObject. This is the "entrypoint"YsldParseHandlerfor 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 ZoomContextgetZoomContext(YamlMap map)voidhandle(YamlObject<?> obj, YamlParseContext context)Handle parsing the providedYamlObjectin the givenYamlParseContext.FeatureTypeStylenewFeatureTypeStyle()RulenewRule()StyledLayerDescriptorsld()
-
-
-
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:YamlParseHandlerHandle parsing the providedYamlObjectin the givenYamlParseContext.- Specified by:
handlein classYamlParseHandler
-
getZoomContext
protected ZoomContext getZoomContext(YamlMap map)
-
newFeatureTypeStyle
public FeatureTypeStyle newFeatureTypeStyle()
-
newRule
public Rule newRule()
-
sld
public StyledLayerDescriptor sld()
-
-