Package deltix.qsrv.hf.pub.md
Class Introspector
- java.lang.Object
-
- deltix.qsrv.hf.pub.md.Introspector
-
public final class Introspector extends java.lang.Object
Introspector used to analyze message structures. Also used by Super Form GUI. By default search only: - public fields with and without @SchemaElement - public properties with @SchemaElement on 'getter' only
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Introspector.IntrospectionException
Exception that reports some kind of problem about message class or algorithm
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Introspector
createCustomIntrospector()
Creates Introspector with ability to check all public methodsstatic Introspector
createEmptyMessageIntrospector()
static Introspector
createMessageIntrospector()
static Introspector
createNetIntrospector()
Creates Inrospector instance that looks into luminary-generated classes and extracts enum int values from it (like in .NET).ClassDescriptor[]
getAllClasses()
ClassAnnotator
getClassAnnotator()
DataType
getClassDataType(java.lang.String fieldName, java.lang.Class<?> cls, boolean isNullable)
ClassDescriptor
getClassDescriptor(java.lang.Class cls)
ClassDescriptor
getClassDescriptor(java.lang.String name)
Deprecated.DataType
getDataType(java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls, boolean nullable, java.lang.String encoding, java.lang.String min, java.lang.String max, boolean elementNullable, java.lang.String elementEncoding, java.lang.String elementMin, java.lang.String elementMax)
RecordClassDescriptor[]
getRecordClasses()
RecordClassDescriptor[]
getRecordClasses(java.lang.Class<?> from)
Gets record classes that representClass
object is either the same as, or is a superclass, the class represented by the specifiedClass
parameter.static RecordClassDescriptor[]
getStandardMarketMessageDescriptors()
EnumClassDescriptor
introspectEnumClass(java.lang.Class<?> cls)
RecordClassDescriptor
introspectMemberClass(java.lang.String whyLookedAt, java.lang.Class<?> cls)
RecordClassDescriptor
introspectRecordClass(java.lang.Class<?> cls)
RecordClassDescriptor
introspectRecordClass(java.lang.String whyLookedAt, java.lang.Class<?> cls)
RecordClassDescriptor
introspectRecordClass(java.lang.String whyLookedAt, java.lang.Class<?> cls, java.util.Collection<DataField> additionalFields)
static ClassDescriptor
introspectSingleClass(java.lang.Class<?> cls)
DataType
parseSchemaArrayType(deltix.timebase.api.SchemaArrayType arrayType, java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls)
DataType
parseSchemaType(deltix.timebase.api.SchemaStaticType schemaType, java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls)
DataType
parseSchemaType(deltix.timebase.api.SchemaType schemaType, java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls)
void
register(ClassDescriptor cd)
void
register(RecordClassDescriptor[] types)
void
setClassAnnotator(ClassAnnotator annotator)
-
-
-
Method Detail
-
createCustomIntrospector
public static Introspector createCustomIntrospector()
Creates Introspector with ability to check all public methods- Returns:
- Introspector instance
-
createEmptyMessageIntrospector
public static Introspector createEmptyMessageIntrospector()
-
createNetIntrospector
public static Introspector createNetIntrospector()
Creates Inrospector instance that looks into luminary-generated classes and extracts enum int values from it (like in .NET).
-
createMessageIntrospector
public static Introspector createMessageIntrospector()
-
getStandardMarketMessageDescriptors
public static RecordClassDescriptor[] getStandardMarketMessageDescriptors()
-
register
public void register(RecordClassDescriptor[] types)
-
introspectEnumClass
public EnumClassDescriptor introspectEnumClass(java.lang.Class<?> cls) throws Introspector.IntrospectionException
-
register
public void register(ClassDescriptor cd)
-
getClassDescriptor
public ClassDescriptor getClassDescriptor(java.lang.Class cls)
-
introspectRecordClass
public RecordClassDescriptor introspectRecordClass(java.lang.Class<?> cls) throws Introspector.IntrospectionException
-
introspectRecordClass
public RecordClassDescriptor introspectRecordClass(java.lang.String whyLookedAt, java.lang.Class<?> cls) throws Introspector.IntrospectionException
-
introspectRecordClass
public RecordClassDescriptor introspectRecordClass(java.lang.String whyLookedAt, java.lang.Class<?> cls, java.util.Collection<DataField> additionalFields) throws Introspector.IntrospectionException
-
introspectMemberClass
public RecordClassDescriptor introspectMemberClass(java.lang.String whyLookedAt, java.lang.Class<?> cls) throws Introspector.IntrospectionException
-
parseSchemaType
public DataType parseSchemaType(deltix.timebase.api.SchemaType schemaType, java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls) throws Introspector.IntrospectionException
-
parseSchemaType
public DataType parseSchemaType(deltix.timebase.api.SchemaStaticType schemaType, java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls) throws Introspector.IntrospectionException
-
parseSchemaArrayType
public DataType parseSchemaArrayType(deltix.timebase.api.SchemaArrayType arrayType, java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls) throws Introspector.IntrospectionException
-
getDataType
public DataType getDataType(java.lang.String fieldName, java.lang.Class<?> cls, java.lang.Class<?> genericCls, boolean nullable, java.lang.String encoding, java.lang.String min, java.lang.String max, boolean elementNullable, java.lang.String elementEncoding, java.lang.String elementMin, java.lang.String elementMax) throws Introspector.IntrospectionException
-
getClassDataType
public DataType getClassDataType(java.lang.String fieldName, java.lang.Class<?> cls, boolean isNullable) throws Introspector.IntrospectionException
-
getAllClasses
public ClassDescriptor[] getAllClasses()
-
getClassDescriptor
@Deprecated public ClassDescriptor getClassDescriptor(java.lang.String name)
Deprecated.
-
getRecordClasses
public RecordClassDescriptor[] getRecordClasses()
-
getRecordClasses
public RecordClassDescriptor[] getRecordClasses(java.lang.Class<?> from)
Gets record classes that representClass
object is either the same as, or is a superclass, the class represented by the specifiedClass
parameter. It returnstrue
if so; otherwise it returnsfalse
.
-
introspectSingleClass
public static ClassDescriptor introspectSingleClass(java.lang.Class<?> cls) throws Introspector.IntrospectionException
-
getClassAnnotator
public ClassAnnotator getClassAnnotator()
-
setClassAnnotator
public void setClassAnnotator(ClassAnnotator annotator)
-
-