Package tilda.parsing
Class Validator
- java.lang.Object
-
- tilda.parsing.Validator
-
public abstract class Validator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Validator.Column
protected static class
Validator.Line
-
Field Summary
Fields Modifier and Type Field Description protected static int
_INDENT_MULTIPLIER
protected static boolean
_TEST_COL
protected static boolean
_TEST_LNE
protected static boolean
_TEST_PAD
protected static org.apache.logging.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static com.google.gson.JsonElement
getElementCaseInsensitive(com.google.gson.JsonObject e, java.lang.String propName)
static void
main(java.lang.String[] args)
protected static Validator.Line
printArray(java.util.List<Validator.Line> table, Validator.Line out, java.lang.String name, com.google.gson.JsonArray val, boolean flatPrint, boolean firstElement, java.lang.Class type, int colGroup)
protected static void
printColAligned(java.io.Writer out, java.util.List<Validator.Line> table, int level, int extraPad)
protected static void
printValue(Validator.Line out, java.lang.String name, com.google.gson.JsonPrimitive val, boolean firstElement, java.lang.Class<?> type, boolean flatPrint, int colGroup)
static void
validateCodeModel(java.util.List<Validator.Line> table, com.google.gson.JsonArray tildaDef, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, boolean top)
static void
validateCodeModel(java.util.List<Validator.Line> table, com.google.gson.JsonObject tildaDef, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, boolean top)
protected static Validator.Line
validateCodeModel(java.util.List<Validator.Line> table, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, com.google.gson.JsonObject e, Validator.Line line, boolean objectArray, boolean top)
-
-
-
Field Detail
-
LOG
protected static final org.apache.logging.log4j.Logger LOG
-
_INDENT_MULTIPLIER
protected static final int _INDENT_MULTIPLIER
- See Also:
- Constant Field Values
-
_TEST_LNE
protected static final boolean _TEST_LNE
- See Also:
- Constant Field Values
-
_TEST_COL
protected static final boolean _TEST_COL
- See Also:
- Constant Field Values
-
_TEST_PAD
protected static final boolean _TEST_PAD
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateCodeModel
public static void validateCodeModel(java.util.List<Validator.Line> table, com.google.gson.JsonObject tildaDef, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, boolean top) throws java.io.IOException
- Throws:
java.io.IOException
-
validateCodeModel
public static void validateCodeModel(java.util.List<Validator.Line> table, com.google.gson.JsonArray tildaDef, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, boolean top) throws java.io.IOException
- Throws:
java.io.IOException
-
getElementCaseInsensitive
protected static com.google.gson.JsonElement getElementCaseInsensitive(com.google.gson.JsonObject e, java.lang.String propName)
-
validateCodeModel
protected static Validator.Line validateCodeModel(java.util.List<Validator.Line> table, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, com.google.gson.JsonObject e, Validator.Line line, boolean objectArray, boolean top) throws java.io.IOException
- Throws:
java.io.IOException
-
printColAligned
protected static void printColAligned(java.io.Writer out, java.util.List<Validator.Line> table, int level, int extraPad) throws java.io.IOException
- Throws:
java.io.IOException
-
printArray
protected static Validator.Line printArray(java.util.List<Validator.Line> table, Validator.Line out, java.lang.String name, com.google.gson.JsonArray val, boolean flatPrint, boolean firstElement, java.lang.Class type, int colGroup) throws java.io.IOException
- Throws:
java.io.IOException
-
printValue
protected static void printValue(Validator.Line out, java.lang.String name, com.google.gson.JsonPrimitive val, boolean firstElement, java.lang.Class<?> type, boolean flatPrint, int colGroup) throws java.io.IOException
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
-