Package deltix.qsrv.hf.pub.md
Class RecordClassDescriptor
- java.lang.Object
-
- deltix.qsrv.hf.pub.md.NamedDescriptor
-
- deltix.qsrv.hf.pub.md.ClassDescriptor
-
- deltix.qsrv.hf.pub.md.ExtendableClassDescriptor<RecordClassDescriptor>
-
- deltix.qsrv.hf.pub.md.RecordClassDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassDescriptor>
public final class RecordClassDescriptor extends ExtendableClassDescriptor<RecordClassDescriptor>
Class representing message definition.- 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 Constructor Description RecordClassDescriptor(RecordClassDescriptor from, java.lang.String[] excludingFields)
RecordClassDescriptor(java.lang.Class<?> inClass, RecordClassDescriptor inParent, DataField[] inFields)
RecordClassDescriptor(java.lang.String name, java.lang.String title, boolean isAbstract, RecordClassDescriptor parent, DataField... fields)
RecordClassDescriptor(java.lang.String guid, java.lang.String name, java.lang.String title, boolean isAbstract, RecordClassDescriptor parent, DataField... fields)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(java.io.OutputStream os)
boolean
equals(RecordClassDescriptor rcd)
void
excludeFields(java.lang.String[] excludingFields)
boolean
fieldsEquals(ClassDescriptor target)
DataField
getField(java.lang.String fname)
DataField[]
getFields()
boolean
hasField(java.lang.String fname)
boolean
hasFields()
boolean
isAssignableFrom(RecordClassDescriptor c)
boolean
isConvertibleTo(java.lang.String className)
boolean
isEquals(ClassDescriptor target)
static java.lang.String
printNames(RecordClassDescriptor... rcds)
protected void
readFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial)
protected void
readFieldsWithoutGuid(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial)
java.lang.String
toString()
boolean
visitDependencies(deltix.util.collections.Visitor<ClassDescriptor> out)
void
writeTo(java.io.DataOutputStream out, int serial)
-
Methods inherited from class deltix.qsrv.hf.pub.md.ExtendableClassDescriptor
getParent, isAbstract, setParent
-
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, writeReference
-
Methods inherited from class deltix.qsrv.hf.pub.md.NamedDescriptor
getDescription, getName, getTitle, setDescription
-
-
-
-
Constructor Detail
-
RecordClassDescriptor
public RecordClassDescriptor(java.lang.String name, java.lang.String title, boolean isAbstract, RecordClassDescriptor parent, DataField... fields)
-
RecordClassDescriptor
public RecordClassDescriptor(java.lang.String guid, java.lang.String name, java.lang.String title, boolean isAbstract, RecordClassDescriptor parent, DataField... fields)
-
RecordClassDescriptor
public RecordClassDescriptor(java.lang.Class<?> inClass, RecordClassDescriptor inParent, DataField[] inFields)
-
RecordClassDescriptor
public RecordClassDescriptor(RecordClassDescriptor from, java.lang.String[] excludingFields)
-
-
Method Detail
-
printNames
public static java.lang.String printNames(RecordClassDescriptor... rcds)
-
excludeFields
public void excludeFields(java.lang.String[] excludingFields)
-
equals
public boolean equals(RecordClassDescriptor rcd)
-
isEquals
public boolean isEquals(ClassDescriptor target)
- Overrides:
isEquals
in classClassDescriptor
-
fieldsEquals
public boolean fieldsEquals(ClassDescriptor target)
-
hasField
public boolean hasField(java.lang.String fname)
-
getField
public DataField getField(java.lang.String fname)
-
hasFields
public boolean hasFields()
-
isConvertibleTo
public boolean isConvertibleTo(java.lang.String className)
-
isAssignableFrom
public boolean isAssignableFrom(RecordClassDescriptor c)
-
getFields
public DataField[] getFields()
-
visitDependencies
public boolean visitDependencies(deltix.util.collections.Visitor<ClassDescriptor> out)
- Overrides:
visitDependencies
in classExtendableClassDescriptor<RecordClassDescriptor>
-
dump
public void dump(java.io.OutputStream os)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
writeTo
public void writeTo(java.io.DataOutputStream out, int serial) throws java.io.IOException
- Overrides:
writeTo
in classExtendableClassDescriptor<RecordClassDescriptor>
- Throws:
java.io.IOException
-
readFields
protected void readFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial) throws java.io.IOException
- Overrides:
readFields
in classExtendableClassDescriptor<RecordClassDescriptor>
- Throws:
java.io.IOException
-
readFieldsWithoutGuid
protected void readFieldsWithoutGuid(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver, int serial) throws java.io.IOException
- Overrides:
readFieldsWithoutGuid
in classExtendableClassDescriptor<RecordClassDescriptor>
- Throws:
java.io.IOException
-
-