Package com.adobe.granite.jmx.annotation
Class OpenTypeUtils
java.lang.Object
com.adobe.granite.jmx.annotation.OpenTypeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeTypecreateCompositeType(Class<?> clazz) Introspects the given class to generate composite type.static OpenTypecreateOpenType(Class<?> clazz, OpenTypeInfo info) Introspects the given class to generate open type type.static TabularTypecreateTabularType(Class<?> clazz) Introspects the given class to generate tabular type.static SimpleTypegetSimpleType(Class<?> clazz) Returns the simple type for the given class.
-
Constructor Details
-
OpenTypeUtils
public OpenTypeUtils()
-
-
Method Details
-
createOpenType
Introspects the given class to generate open type type. If the class isCompositeData,TabularDataor their respective array thenOpenTypeInfoparam must not be null.- Parameters:
clazz- the class to introspectinfo- the open type info- Returns:
- the generated open type type
- Throws:
OpenDataException- if type is null
-
getSimpleType
Returns the simple type for the given class. If the class is not a simple type then null is returned.- Parameters:
clazz- the class- Returns:
- the simple type for the given class
-
createCompositeType
Introspects the given class to generate composite type.- Parameters:
clazz- the class- Returns:
- the composite type of the given class
- Throws:
OpenDataException- when an error happens during inspection
-
createTabularType
Introspects the given class to generate tabular type. The class must be annotated withTabularTypeInfo.- Parameters:
clazz- the class- Returns:
- the tabular type of the given class
- Throws:
OpenDataException- when an error happens
-