public abstract class OpenTypeUtils extends Object
Constructor and Description |
---|
OpenTypeUtils() |
Modifier and Type | Method and Description |
---|---|
static CompositeType |
createCompositeType(Class<?> clazz)
Introspects the given class to generate composite type.
|
static OpenType |
createOpenType(Class<?> clazz,
OpenTypeInfo info)
Introspects the given class to generate open type type.
|
static TabularType |
createTabularType(Class<?> clazz)
Introspects the given class to generate tabular type.
|
static SimpleType |
getSimpleType(Class<?> clazz)
Returns the simple type for the given class.
|
public static OpenType createOpenType(Class<?> clazz, OpenTypeInfo info) throws OpenDataException
CompositeData
, TabularData
or their respective array then
OpenTypeInfo
param must not be null.clazz
- the class to introspectinfo
- the open type infoOpenDataException
- if type is nullpublic static SimpleType getSimpleType(Class<?> clazz)
clazz
- the classpublic static CompositeType createCompositeType(Class<?> clazz) throws OpenDataException
clazz
- the classOpenDataException
- when an error happens
during inspectionpublic static TabularType createTabularType(Class<?> clazz) throws OpenDataException
TabularTypeInfo
.clazz
- the classOpenDataException
- when an error happensCopyright © 2010 - 2020 Adobe. All Rights Reserved