public interface EnumDef extends FieldDef
FieldDef
to support an enumeration type.
Valid members of an enumeration are represented as an array of strings.
A value instance of EnumDef is represented by a single string, which
must exist in the set of valid strings.FieldDef.Type
Modifier and Type | Method and Description |
---|---|
EnumDef |
clone()
Perform a deep copy of this FieldDef instance.
|
String |
getName() |
String[] |
getValues() |
asArray, asBinary, asBoolean, asDouble, asEnum, asFixedBinary, asFloat, asInteger, asLong, asMap, asRecord, asString, createArray, createBinary, createBoolean, createDouble, createEnum, createFixedBinary, createFloat, createInteger, createLong, createMap, createRecord, createString, getDescription, getType, isArray, isBinary, isBoolean, isDouble, isEnum, isFixedBinary, isFloat, isInteger, isLong, isMap, isRecord, isString, isType, isValidIndexField, isValidKeyField
Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.