org.stringtree.json
Class JSONValidator

java.lang.Object
  extended by org.stringtree.json.JSONValidator

public class JSONValidator
extends java.lang.Object


Field Summary
private  char c
           
private  int col
           
private  java.text.CharacterIterator it
           
private  JSONErrorListener listener
           
 
Constructor Summary
JSONValidator(JSONErrorListener listener)
           
 
Method Summary
private  boolean aggregate(char entryCharacter, char exitCharacter, boolean prefix)
           
private  boolean array()
           
private  boolean error(java.lang.String type, int col)
           
private  boolean escape()
           
private  boolean ishex(char d)
           
private  boolean literal(java.lang.String text)
           
private  char nextCharacter()
           
private  boolean number()
           
private  boolean object()
           
private  void skipWhiteSpace()
           
private  boolean string()
           
private  boolean valid(java.lang.String input)
           
 boolean validate(java.lang.String input)
           
private  boolean value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

private JSONErrorListener listener

it

private java.text.CharacterIterator it

c

private char c

col

private int col
Constructor Detail

JSONValidator

public JSONValidator(JSONErrorListener listener)
Method Detail

validate

public boolean validate(java.lang.String input)

valid

private boolean valid(java.lang.String input)

value

private boolean value()

literal

private boolean literal(java.lang.String text)

array

private boolean array()

object

private boolean object()

aggregate

private boolean aggregate(char entryCharacter,
                          char exitCharacter,
                          boolean prefix)

number

private boolean number()

string

private boolean string()

escape

private boolean escape()

ishex

private boolean ishex(char d)

nextCharacter

private char nextCharacter()

skipWhiteSpace

private void skipWhiteSpace()

error

private boolean error(java.lang.String type,
                      int col)