Package net.sf.okapi.filters.json.parser
Interface IJsonHandler
-
- All Known Implementing Classes:
JSONFilter
public interface IJsonHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleComment(String c)Handle Json comment (illegal but found in partice)voidhandleEnd()Called once at the end of a document.voidhandleKey(String key, JsonValueTypes valueType, JsonKeyTypes keyType)Handle json key, used in resnamevoidhandleListEnd()voidhandleListStart()Handle json List: i.e., [ "value1", "value2" ] For contextual information.voidhandleObjectEnd()voidhandleObjectStart()Handle json Object: i.e., { "key" : "value" } For contextual information.voidhandleSeparator(String separator)Handle separator, i.e., ":" or ","voidhandleStart()Called once at the beginning of a new document.voidhandleValue(String value, JsonValueTypes valueType)Handle json value, may be double, single quoted string, number, boolean symbol or nullvoidhandleWhitespace(String whitespace)Handle json whitespace
-
-
-
Method Detail
-
handleStart
void handleStart()
Called once at the beginning of a new document.
-
handleEnd
void handleEnd()
Called once at the end of a document.
-
handleComment
void handleComment(String c)
Handle Json comment (illegal but found in partice)
-
handleKey
void handleKey(String key, JsonValueTypes valueType, JsonKeyTypes keyType)
Handle json key, used in resname
-
handleSeparator
void handleSeparator(String separator)
Handle separator, i.e., ":" or ","
-
handleValue
void handleValue(String value, JsonValueTypes valueType)
Handle json value, may be double, single quoted string, number, boolean symbol or null
-
handleWhitespace
void handleWhitespace(String whitespace)
Handle json whitespace
-
handleObjectStart
void handleObjectStart()
Handle json Object: i.e., { "key" : "value" } For contextual information.
-
handleObjectEnd
void handleObjectEnd()
-
handleListStart
void handleListStart()
Handle json List: i.e., [ "value1", "value2" ] For contextual information.
-
handleListEnd
void handleListEnd()
-
-