public class ColumnSchema<E extends TableSchema<E>,D> extends Object
Constructor and Description |
---|
ColumnSchema(String name,
ColumnType columnType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ColumnSchema |
fromJson(String name,
com.fasterxml.jackson.databind.JsonNode json) |
String |
getName() |
Object |
getNormalizeData(D value) |
ColumnType |
getType() |
int |
hashCode() |
Condition |
opEqual(D data) |
Condition |
opExcludes(D data) |
Condition |
opGreaterThan(D data) |
Condition |
opIncludes(D data) |
Condition |
opLesserThan(D data) |
Condition |
opLesserThanOrEquals(D data) |
String |
toString() |
D |
validate(Object value)
Validates the passed in value against the constraints set for this ColumnSchema.
|
void |
validateType(Class<?> typeClass)
Verifies if this Column if of the specified type.
|
D |
valueFromJson(com.fasterxml.jackson.databind.JsonNode value) |
public ColumnSchema(String name, ColumnType columnType)
public static ColumnSchema fromJson(String name, com.fasterxml.jackson.databind.JsonNode json)
public String getName()
public ColumnType getType()
public D validate(Object value)
public void validateType(Class<?> typeClass)
typeClass
- the type to check forpublic D valueFromJson(com.fasterxml.jackson.databind.JsonNode value)
Copyright © 2018 OpenDaylight. All rights reserved.