public abstract class ColumnType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ColumnType.AtomicColumnType |
static class |
ColumnType.KeyValuedColumnType |
Constructor and Description |
---|
ColumnType() |
ColumnType(BaseType baseType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ColumnType |
fromJson(com.fasterxml.jackson.databind.JsonNode json)
JSON.
|
protected abstract ColumnType |
fromJsonNode(com.fasterxml.jackson.databind.JsonNode json)
Creates a ColumnType from the JsonNode if the implementation knows how to, returns null otherwise.
|
BaseType |
getBaseType() |
long |
getMax() |
long |
getMin() |
int |
hashCode() |
boolean |
isMultiValued() |
String |
toString() |
abstract void |
validate(Object value) |
abstract Object |
valueFromJson(com.fasterxml.jackson.databind.JsonNode value) |
public ColumnType()
public ColumnType(BaseType baseType)
public long getMin()
public long getMax()
public BaseType getBaseType()
public static ColumnType fromJson(com.fasterxml.jackson.databind.JsonNode json)
"type": { "key": { "maxInteger": 4294967295, "minInteger": 0, "type": "integer" }, "min": 0, "value": { "type": "uuid", "refTable": "Queue" }, "max": "unlimited" }
protected abstract ColumnType fromJsonNode(com.fasterxml.jackson.databind.JsonNode json)
json
- the JSONNode object that needs to convertedpublic boolean isMultiValued()
public abstract Object valueFromJson(com.fasterxml.jackson.databind.JsonNode value)
public abstract void validate(Object value)
Copyright © 2018 OpenDaylight. All rights reserved.