Package org.geotools.ysld.parse
Class YamlParseContext
Object
YamlParseContext
Holds the context of a call to
YamlParser.parse(YamlParseHandler, Map) during its descent into the
YamlObject being parsed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocHint(String key) voidmergeDocHints(Map<String, Object> hints) booleannext()Pop aYamlParseHandlerfrom the handler stack and execute itsYamlParseHandler.handle(YamlObject, YamlParseContext)method on theYamlObjectwith which it was pushed.pop()push(String key, YamlParseHandler handler) Parse a child of the current object if presentpush(YamlParseHandler handler) Add a handler to the stack handling the current object.push(YamlObject scope, String key, YamlParseHandler handler) Parse a child of the specified object if presentpush(YamlObject obj, YamlParseHandler handler) Add a handler to the stack handling the specified objectvoidsetDocHint(String key, Object value)
-
Constructor Details
-
YamlParseContext
public YamlParseContext()
-
-
Method Details
-
push
Parse a child of the current object if present- Parameters:
key- key of the child entryhandler- handler to use- Returns:
- self
-
push
Parse a child of the specified object if present- Parameters:
scope- object to start fromkey- key of the child entryhandler- handler to use- Returns:
- self
-
push
Add a handler to the stack handling the current object. Used for "inlined"/common properties.- Parameters:
handler- handler to use- Returns:
- self
-
push
Add a handler to the stack handling the specified object- Parameters:
obj- the object to parsehandler- handler to use- Returns:
- self
-
pop
-
next
public boolean next()Pop aYamlParseHandlerfrom the handler stack and execute itsYamlParseHandler.handle(YamlObject, YamlParseContext)method on theYamlObjectwith which it was pushed.- Returns:
- True if more handlers remain on handler stack; false if the handler stack is empty.
-
getDocHint
-
setDocHint
-
mergeDocHints
-