@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class InfoTableInstanceFactory extends java.lang.Object
Constructor and Description |
---|
InfoTableInstanceFactory() |
Modifier and Type | Method and Description |
---|---|
static InfoTable |
convertInfoTableUsingDataShape(InfoTable t,
DataShapeDefinition ds)
|
static InfoTable |
createInfoTableFromDataShape(DataShapeDefinition t)
|
static InfoTable |
createInfoTableFromDataShape(java.lang.String type)
Creates and returns a new with a from the given entity type
as a String |
static InfoTable |
createInfoTableFromFieldDefinition(FieldDefinition field)
|
static InfoTable |
createInfoTableFromParameters(FieldDefinitionCollection t)
Creates and returns a new containing the fields defined in the given
|
static InfoTable |
createInfoTableFromVTQ(VTQ vtq)
|
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromDataShape(DataShapeDefinition t) throws java.lang.Exception
t
- DataShapeDefinition defining the fields for the new InfoTablejava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromDataShape(java.lang.String type) throws java.lang.Exception
InfoTable
with a DataShapeDefinition
from the given entity type
as a Stringtype
- The entity type as a Stringjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable convertInfoTableUsingDataShape(InfoTable t, DataShapeDefinition ds) throws java.lang.Exception
t
- InfoTable to be convertedds
- DataShapeDefinition to be used in the new InfoTablejava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromFieldDefinition(FieldDefinition field) throws java.lang.Exception
field
- The field for the new InfoTablejava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromParameters(FieldDefinitionCollection t) throws java.lang.Exception
InfoTable
containing the fields defined in the given
FieldDefinitionCollection
t
- FieldDefinitionCollection The fields for the new InfoTablejava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromVTQ(VTQ vtq) throws java.lang.Exception
vtq
- VTQ containing the values to be set in each field of the rowjava.lang.Exception
- If an error occurs