本文整理汇总了Java中org.onosproject.ovsdb.rfc.schema.type.ColumnType类的典型用法代码示例。如果您正苦于以下问题:Java ColumnType类的具体用法?Java ColumnType怎么用?Java ColumnType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ColumnType类属于org.onosproject.ovsdb.rfc.schema.type包,在下文中一共展示了ColumnType类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueFromJson
import org.onosproject.ovsdb.rfc.schema.type.ColumnType; //导入依赖的package包/类
/**
* Transform JsonNode to corresponding value.
* @param json the ColumnType JsonNode
* @param columnType AtomicColumnType or KeyValuedColumnType
* @return Object OvsdbMap or OvsdbSet
*/
public static Object getValueFromJson(JsonNode json, ColumnType columnType) {
if (columnType instanceof AtomicColumnType) {
AtomicColumnType atoType = (AtomicColumnType) columnType;
return getValueFromAtoType(json, atoType);
} else if (columnType instanceof KeyValuedColumnType) {
KeyValuedColumnType kvType = (KeyValuedColumnType) columnType;
return getValueFromKvType(json, kvType);
}
return null;
}
示例2: ColumnSchema
import org.onosproject.ovsdb.rfc.schema.type.ColumnType; //导入依赖的package包/类
/**
* Constructs a ColumnSchema object.
* @param name the column name
* @param columnType the column type
*/
public ColumnSchema(String name, ColumnType columnType) {
checkNotNull(name, "name cannot be null");
checkNotNull(columnType, "column type cannot be null");
this.name = name;
this.type = columnType;
}
示例3: type
import org.onosproject.ovsdb.rfc.schema.type.ColumnType; //导入依赖的package包/类
/**
* Returns the type of column.
* @return the type of column
*/
public ColumnType type() {
return type;
}