Package deltix.qsrv.hf.pub.md
Class EnumClassDescriptor
- java.lang.Object
-
- deltix.qsrv.hf.pub.md.NamedDescriptor
-
- deltix.qsrv.hf.pub.md.ClassDescriptor
-
- deltix.qsrv.hf.pub.md.EnumClassDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassDescriptor>
public final class EnumClassDescriptor extends ClassDescriptor
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class deltix.qsrv.hf.pub.md.ClassDescriptor
ClassDescriptor.GuidNotFoundException, ClassDescriptor.TypeResolver
-
-
Field Summary
-
Fields inherited from class deltix.qsrv.hf.pub.md.ClassDescriptor
ASCENDING_COMPARATOR, ASSEMBLY_SEPARATOR, guid, T_ENUM, T_RECORD
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EnumClassDescriptor(EnumClassDescriptor from)
EnumClassDescriptor(java.lang.Class<?> cls)
EnumClassDescriptor(java.lang.String name, java.lang.String title, boolean bitmask, EnumValue... values)
EnumClassDescriptor(java.lang.String name, java.lang.String title, boolean bitmask, java.lang.String... values)
Creates an enum descriptor by auto-numbering specified symbolic constants.EnumClassDescriptor(java.lang.String name, java.lang.String title, java.lang.String... values)
Creates a sequential nullable enum descriptor (Java-style).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeStorageSize()
void
dump(java.io.OutputStream os)
java.lang.String[]
getSymbols()
EnumValue[]
getValues()
boolean
isBitmask()
boolean
isEquals(ClassDescriptor target)
java.lang.String
longToString(long longval)
boolean
needsNormalization()
protected void
readFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial)
protected void
readFieldsWithoutGuid(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial)
long
stringToLong(java.lang.CharSequence symbol)
java.lang.String
toString()
void
writeTo(java.io.DataOutputStream out, int serial)
-
Methods inherited from class deltix.qsrv.hf.pub.md.ClassDescriptor
compareTo, createGuid, dependsOn, depSort, equals, extractGuids, getClassNameWithAssembly, getDependencies, getGuid, hashCode, isDotNet, newInstanceNoX, readFields, readFrom, readFrom, readReference, visitDependencies, writeReference
-
Methods inherited from class deltix.qsrv.hf.pub.md.NamedDescriptor
getDescription, getName, getTitle, setDescription
-
-
-
-
Constructor Detail
-
EnumClassDescriptor
protected EnumClassDescriptor(EnumClassDescriptor from)
-
EnumClassDescriptor
public EnumClassDescriptor(java.lang.String name, java.lang.String title, java.lang.String... values)
Creates a sequential nullable enum descriptor (Java-style).
-
EnumClassDescriptor
public EnumClassDescriptor(java.lang.String name, java.lang.String title, boolean bitmask, java.lang.String... values)
Creates an enum descriptor by auto-numbering specified symbolic constants.
-
EnumClassDescriptor
public EnumClassDescriptor(java.lang.String name, java.lang.String title, boolean bitmask, EnumValue... values)
-
EnumClassDescriptor
public EnumClassDescriptor(java.lang.Class<?> cls)
-
-
Method Detail
-
stringToLong
public long stringToLong(java.lang.CharSequence symbol)
-
isBitmask
public boolean isBitmask()
-
getValues
public EnumValue[] getValues()
-
getSymbols
public java.lang.String[] getSymbols()
-
longToString
public java.lang.String longToString(long longval)
-
computeStorageSize
public int computeStorageSize()
-
writeTo
public void writeTo(java.io.DataOutputStream out, int serial) throws java.io.IOException
- Overrides:
writeTo
in classClassDescriptor
- Throws:
java.io.IOException
-
dump
public void dump(java.io.OutputStream os)
-
readFields
protected void readFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial) throws java.io.IOException
- Overrides:
readFields
in classClassDescriptor
- Throws:
java.io.IOException
-
readFieldsWithoutGuid
protected void readFieldsWithoutGuid(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial) throws java.io.IOException
- Overrides:
readFieldsWithoutGuid
in classClassDescriptor
- Throws:
java.io.IOException
-
isEquals
public boolean isEquals(ClassDescriptor target)
- Overrides:
isEquals
in classClassDescriptor
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
needsNormalization
public boolean needsNormalization()
-
-