Package wt.introspection
Class WTIntrospector
java.lang.Object
wt.introspection.WTIntrospector
WTIntrospector is a factory for class info objects.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey to access the Array ObjectType extended value from a ClassInfo.static final StringKey to access the Changeable setting (as a wt.introspection.ChangeableKind) from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the ConstrainedType (as a String), if it is constrained, from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Fully Qualified Name of the Property, as it was defined (modeled).static final StringKey to access the Derived setting from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Sequence Increment extended value from a ClassInfo.static final StringThe extension used for serialized ClassInfo files.static final StringKey to access the Initial Value setting from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Localizable setting from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Lower Limit from a PropertyDescriptor obtained from a ClassInfo.static final StringThe suffix used for resource files related to modeled information.static final StringKey to access the ColumnType from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the datastore ObjectName extended value from a ClassInfo.static final StringKey to access the Oracle Options extended value from a ClassInfo.static final StringKey to access the Persistence setting from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Query Name from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Required setting from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Sequence Seed extended value from a ClassInfo.static final StringKey to access the SQLServer Options extended value from a ClassInfo.static final StringKey to access the Stereotype from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the StringCase setting (as a wt.util.CaseKind) from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Updateable setting from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Upper Limit from a PropertyDescriptor obtained from a ClassInfo.static final StringKey to access the Method object, that returns the valid value set, from a PropertyDescriptor obtained from a ClassInfo. -
Method Summary
Modifier and TypeMethodDescriptionstatic wt.introspection.BaseTableInfogetBaseTableInfo(String tablename) Gets table meta info.static ClassInfogetClassInfo(Class aClass) Gets class meta info.static ClassInfogetClassInfo(String aClassname) Gets class meta info.static ClassInfogetClassInfo(String aClassname, String dir) Gets class meta info.static ClassInfogetClassInfoByAttribute(String attribute) Gets class meta info.static LinkInfogetLinkInfo(Class aClass) Gets class meta info.static LinkInfogetLinkInfo(String aClassname) Gets link class meta info.static LinkInfogetLinkInfo(String aClassname, String dir) Gets link class meta info.static StringGet the qualifed name (classname.name) of the PropertyDescriptor
Supported API: truestatic ClassGet the valid type for a PropertyDescriptor.static StringGet the name of the valid type for a PropertyDescriptor.
-
Field Details
-
INFO_EXTENSION
The extension used for serialized ClassInfo files.
Supported API: true- See Also:
-
MODEL_RESOURCE_SUFFIX
The suffix used for resource files related to modeled information.
Supported API: true- See Also:
-
STEREOTYPE
Key to access the Stereotype from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
DERIVED
Key to access the Derived setting from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
PERSISTENT
Key to access the Persistence setting from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
QUERY_NAME
Key to access the Query Name from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
STRING_CASE
Key to access the StringCase setting (as a wt.util.CaseKind) from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
INITIAL_VALUE
Key to access the Initial Value setting from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
REQUIRED
Key to access the Required setting from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
LOWER_LIMIT
Key to access the Lower Limit from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
UPPER_LIMIT
Key to access the Upper Limit from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
UPDATEABLE
Key to access the Updateable setting from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
CHANGEABLE
Key to access the Changeable setting (as a wt.introspection.ChangeableKind) from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
VALUE_SET_METHOD
Key to access the Method object, that returns the valid value set, from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
CONSTRAINED_TYPE
Key to access the ConstrainedType (as a String), if it is constrained, from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
DEFINED_AS
Key to access the Fully Qualified Name of the Property, as it was defined (modeled).
Supported API: true- See Also:
-
LOCALIZABLE
Key to access the Localizable setting from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
MODELED_PERSISTENT_TYPE
Key to access the ColumnType from a PropertyDescriptor obtained from a ClassInfo.
Supported API: true- See Also:
-
OBJECT_NAME
Key to access the datastore ObjectName extended value from a ClassInfo.
Supported API: true- See Also:
-
ORACLE_OPTIONS
Key to access the Oracle Options extended value from a ClassInfo.
Supported API: true- See Also:
-
SQL_SERVER_OPTIONS
Key to access the SQLServer Options extended value from a ClassInfo.
Supported API: true- See Also:
-
ARRAY_TYPE
Key to access the Array ObjectType extended value from a ClassInfo.
Supported API: true- See Also:
-
SEED
Key to access the Sequence Seed extended value from a ClassInfo.
Supported API: true- See Also:
-
INCREMENT
Key to access the Sequence Increment extended value from a ClassInfo.
Supported API: true- See Also:
-
-
Method Details
-
getClassInfo
Gets class meta info.
Supported API: true- Parameters:
aClass- is the target class- Returns:
- the ClassInfo instance for the requested class
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getClassInfo
Gets class meta info.
Supported API: true- Parameters:
aClassname- is the full qualified name of the target class- Returns:
- the ClassInfo instance for the requested class
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getClassInfo
Gets class meta info.
Supported API: true- Parameters:
aClassname- is the full qualified name of the target classdir- is the root directory under which ClassInfo's are located- Returns:
- the ClassInfo instance for the requested class
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getBaseTableInfo
public static wt.introspection.BaseTableInfo getBaseTableInfo(String tablename) throws WTIntrospectionException Gets table meta info.
Supported API: true- Parameters:
tablename- is the name of the table- Returns:
- the BaseTableInfo instance for the requested table
- Throws:
WTIntrospectionException- if table info cannot be loaded
-
getClassInfoByAttribute
Gets class meta info.
Supported API: true- Parameters:
attribute- is a fully qualified attribute name- Returns:
- the ClassInfo instance for the class holding this attribute
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getLinkInfo
Gets class meta info.
Supported API: true- Parameters:
aClass- is the target link class- Returns:
- the LinkInfo instance for the requested class
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getLinkInfo
Gets link class meta info.
Supported API: true- Parameters:
aClassname- is the full qualified name of the target class- Returns:
- the LinkInfo instance for the requested class
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getLinkInfo
Gets link class meta info.
Supported API: true- Parameters:
aClassname- is the full qualified name of the target classdir- is the root directory under which ClassInfo's are located- Returns:
- the LinkInfo instance for the requested class
- Throws:
WTIntrospectionException- if class info cannot be loaded
-
getValidType
Get the valid type for a PropertyDescriptor. It will use the CONSTRAINED_TYPE if one exists, otherwise it will use the propertyType.
Supported API: true- Parameters:
pd- The target PropertyDescriptor.- Returns:
- The type of Class that is valid for the PropertyDescriptor.
- Throws:
WTIntrospectionException- if fails to construct new PropertyDescriptor.
-
getValidTypeName
Get the name of the valid type for a PropertyDescriptor. It will use the CONSTRAINED_TYPE if one exists, otherwise it will use the propertyType.
Supported API: true- Parameters:
pd- The target PropertyDescriptor.- Returns:
- The name of the type that is valid for the PropertyDescriptor.
- Throws:
WTIntrospectionException- if fails to construct new PropertyDescriptor.
-
getQualifiedName
Get the qualifed name (classname.name) of the PropertyDescriptor
Supported API: true- Parameters:
pd- The target PropertyDescriptor.- Returns:
- The qualifed name (classname.name) of the PropertyDescriptor.
- Throws:
WTIntrospectionException- if fails to construct new PropertyDescriptor.
-