public class EnumFormat extends Format
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getEnumConstants()
Returns an unmodifiable list of the names of the enum instances, or null
if this is not an enum type.
|
boolean |
isEnum()
Returns whether this is an enum type.
|
Object |
newInstance(EntityInput input,
boolean rawAccess)
Creates a new instance of the target class using its default
constructor.
|
Object |
readObject(Object o,
EntityInput input,
boolean rawAccess)
Called after newInstance() to read the rest of the data bytes and fill
in the object contents.
|
allowEvolveFromProxy, getAccessor, getClassMetadata, getClassName, getComponentType, getDimensions, getEntityMetadata, getFields, getId, getOldKeyName, getPreviousVersion, getSuperType, getVersion, initializeReader, isArray, isDeleted, isPrimitive, isSimple, readPriKey, toStringpublic boolean isEnum()
RawTypeIf true is returned, a value of this type is a RawObject and
the enum constant String is available via RawObject.getEnum().
If false is returned, then this is a complex type, an array type (see
RawType.isArray()), or a simple type (see RawType.isSimple()).
public List<String> getEnumConstants()
RawTypegetEnumConstants in interface RawTypegetEnumConstants in class Formatpublic Object newInstance(EntityInput input, boolean rawAccess)
FormatnewInstance in class Formatpublic Object readObject(Object o, EntityInput input, boolean rawAccess)
FormatreadObject in class FormatCopyright © 2024. All rights reserved.