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 classValidator.Columnprotected static classValidator.Line
-
Field Summary
Fields Modifier and Type Field Description protected static int_INDENT_MULTIPLIERprotected static boolean_TEST_COLprotected static boolean_TEST_LNEprotected static boolean_TEST_PADprotected static org.apache.logging.log4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static com.google.gson.JsonElementgetElementCaseInsensitive(com.google.gson.JsonObject e, java.lang.String propName)static voidmain(java.lang.String[] args)protected static Validator.LineprintArray(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 voidprintColAligned(java.io.Writer out, java.util.List<Validator.Line> table, int level, int extraPad)protected static voidprintValue(Validator.Line out, java.lang.String name, com.google.gson.JsonPrimitive val, boolean firstElement, java.lang.Class<?> type, boolean flatPrint, int colGroup)static voidvalidateCodeModel(java.util.List<Validator.Line> table, com.google.gson.JsonArray tildaDef, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, boolean top)static voidvalidateCodeModel(java.util.List<Validator.Line> table, com.google.gson.JsonObject tildaDef, java.lang.Class<?> tildaPartClass, TildaLayoutDef[] tildaLayoutDefs, boolean parentFlatPrint, boolean top)protected static Validator.LinevalidateCodeModel(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
-
-