public class SchemaValidator extends Object
Constructor and Description |
---|
SchemaValidator() |
Modifier and Type | Method and Description |
---|---|
static <T extends SchemaProblemsSupplier> |
checkChildren(List<SchemaProblem> problems,
List<T> children,
boolean incudeDescendants) |
static void |
checkCyclicalFieldDependency(List<SchemaProblem> problems,
RecordFieldDef recordFieldDef) |
static void |
checkEntitiesExists(List<SchemaProblem> problems,
SchemaDef schema,
SchemaPart schemaPart,
String entityRole,
List<String> entityNames) |
static void |
checkEntityExists(List<SchemaProblem> problems,
SchemaDef schema,
SchemaPart schemaPart,
String entityRole,
String entityName) |
static void |
checkEntityExistsInRelationship(List<SchemaProblem> problems,
SchemaDef schema,
SchemaPart schemaPart,
String entityRole,
String entityName) |
static void |
checkEntityRelationshipCardinality(List<SchemaProblem> problems,
EntityRelationshipDef entityRelationship) |
static void |
checkEntityRelationshipKeys(List<SchemaProblem> problems,
EntityRelationshipDef entityRelationship) |
static void |
checkFieldExists(List<SchemaProblem> problems,
SchemaPart schemaPart,
EntityDef entity,
String fieldRole,
String fieldName) |
static void |
checkFieldsExists(List<SchemaProblem> problems,
SchemaPart schemaPart,
EntityDef entity,
String fieldRole,
List<String> fieldNames) |
static <T extends SchemaProblemsSupplier> |
checkIndexHasFields(List<SchemaProblem> problems,
SchemaPart schemaPart,
List<T> children,
boolean includeChildren,
String entityDefQualifiedName) |
static void |
checkMinimumAndMaximumValues(List<SchemaProblem> problems,
SchemaPart schemaPart,
Number minimum,
Number maximum,
String minimumFieldName,
String maximumFieldName) |
static void |
checkMinimumAndMaximumValues(List<SchemaProblem> problems,
SchemaPart schemaPart,
Number minimum,
Number maximum,
String minimumFieldName,
String maximumFieldName,
boolean negativeNumberAllowed) |
static void |
checkMinimumAndMaximumValues(List<SchemaProblem> problems,
SchemaPart schemaPart,
TemporalAccessor minimum,
TemporalAccessor maximum,
String minimumFieldName,
String maximumFieldName) |
static void |
checkNegativeValue(List<SchemaProblem> problems,
SchemaPart schemaPart,
Number value,
String name) |
static <T> void |
checkParentExists(List<SchemaProblem> problems,
SchemaPart schemaPart,
String parentIdentifierName,
SchemaObject parent) |
static void |
checkPrecisionAndScale(List<SchemaProblem> problems,
SchemaPart schemaPart,
Integer precision,
Integer scale,
FieldType fieldType) |
static void |
checkPrimaryKeyPositions(List<SchemaProblem> problems,
EntityDef entityDef) |
static <T> void |
checkUniqueChildNames(List<SchemaProblem> problems,
SchemaPart schemaPart,
String childIdentifierName,
List<T> children,
Function<T,String> nameExtractor) |
static void |
checkUniqueIndexFieldNames(List<SchemaProblem> problems,
SchemaPart schemaPart,
List<IndexDef> indexes) |
static void |
checkValidIdentifier(List<SchemaProblem> problems,
SchemaPart schemaPart,
String identifierName,
String identifier) |
public static void checkValidIdentifier(List<SchemaProblem> problems, SchemaPart schemaPart, String identifierName, String identifier)
public static <T> void checkParentExists(List<SchemaProblem> problems, SchemaPart schemaPart, String parentIdentifierName, SchemaObject parent)
public static <T extends SchemaProblemsSupplier> void checkChildren(List<SchemaProblem> problems, List<T> children, boolean incudeDescendants)
public static <T extends SchemaProblemsSupplier> void checkIndexHasFields(List<SchemaProblem> problems, SchemaPart schemaPart, List<T> children, boolean includeChildren, String entityDefQualifiedName)
public static <T> void checkUniqueChildNames(List<SchemaProblem> problems, SchemaPart schemaPart, String childIdentifierName, List<T> children, Function<T,String> nameExtractor)
public static void checkPrimaryKeyPositions(List<SchemaProblem> problems, EntityDef entityDef)
public static void checkFieldExists(List<SchemaProblem> problems, SchemaPart schemaPart, EntityDef entity, String fieldRole, String fieldName)
public static void checkFieldsExists(List<SchemaProblem> problems, SchemaPart schemaPart, EntityDef entity, String fieldRole, List<String> fieldNames)
public static void checkEntityExistsInRelationship(List<SchemaProblem> problems, SchemaDef schema, SchemaPart schemaPart, String entityRole, String entityName)
public static void checkEntityExists(List<SchemaProblem> problems, SchemaDef schema, SchemaPart schemaPart, String entityRole, String entityName)
public static void checkEntitiesExists(List<SchemaProblem> problems, SchemaDef schema, SchemaPart schemaPart, String entityRole, List<String> entityNames)
public static void checkEntityRelationshipKeys(List<SchemaProblem> problems, EntityRelationshipDef entityRelationship)
public static void checkEntityRelationshipCardinality(List<SchemaProblem> problems, EntityRelationshipDef entityRelationship)
public static void checkNegativeValue(List<SchemaProblem> problems, SchemaPart schemaPart, Number value, String name)
public static void checkMinimumAndMaximumValues(List<SchemaProblem> problems, SchemaPart schemaPart, Number minimum, Number maximum, String minimumFieldName, String maximumFieldName)
public static void checkMinimumAndMaximumValues(List<SchemaProblem> problems, SchemaPart schemaPart, Number minimum, Number maximum, String minimumFieldName, String maximumFieldName, boolean negativeNumberAllowed)
public static void checkPrecisionAndScale(List<SchemaProblem> problems, SchemaPart schemaPart, Integer precision, Integer scale, FieldType fieldType)
public static void checkMinimumAndMaximumValues(List<SchemaProblem> problems, SchemaPart schemaPart, TemporalAccessor minimum, TemporalAccessor maximum, String minimumFieldName, String maximumFieldName)
public static void checkCyclicalFieldDependency(List<SchemaProblem> problems, RecordFieldDef recordFieldDef)
public static void checkUniqueIndexFieldNames(List<SchemaProblem> problems, SchemaPart schemaPart, List<IndexDef> indexes)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.