public class OdsxMeasurementHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
OdsxMeasurementHelper.SaveContext |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Object |
LOCK |
static java.lang.String |
version |
Modifier and Type | Method and Description |
---|---|
static InstanceElement |
appendToMeasurement(java.lang.String asamPath,
OdsxColumnAssignmentInterface assignment)
Append columns to measurement.
|
static InstanceElement |
createColumn(OdsxMeasurementHelper.SaveContext saveContext,
InstanceElement meaIe,
InstanceElement subIe,
OdsxColumnSaveInfoInterface colInfo)
Append columns to submatrix.
|
static void |
createParameters(OdsxMeasurementHelper.SaveContext saveContext,
InstanceElement ieObj,
InstanceElement psIe,
OdsxParameterSetSaveInfoInterface pSet)
Create a parameter set.
|
static InstanceElement |
createParameterSet(OdsxMeasurementHelper.SaveContext saveContext,
InstanceElement ieObj,
OdsxParameterSetSaveInfoInterface pSet)
Create a parameter set.
|
static InstanceElement |
createSubMatrix(OdsxMeasurementHelper.SaveContext saveContext,
InstanceElement meaIe,
InstanceElement parIe,
OdsxSubMatrixSaveInfoInterface subInfo)
Append submatrix to measurement.
|
protected static InstanceElement |
createSubMatrix(OdsxMeasurementHelper.SaveContext saveContext,
InstanceElement ieObj,
OdsxSubMatrixSaveInfoInterface subInfo)
Append submatrix to measurement.
|
static java.lang.String |
getVersion() |
static void |
main(java.lang.String[] args) |
static InstanceElement |
saveMeasurement(java.lang.String asamPath,
FwkDialogPaneValueInterface editorValue,
OdsxColumnAssignmentInterface assignment)
Save a measurement.
|
static InstanceElement |
saveMeasurement(java.lang.String asamPath,
OdsxMeasurementSaveInfoInterface meaInfo)
Save a measurement.
|
protected static void |
setAttributes(OdsxMeasurementHelper.SaveContext saveContext,
InstanceElement ieObj,
ApplicationElement aeObj,
java.util.Map attrs)
Set the attributes of an instance element according to the given map.
|
static void |
validateMEQAttrs(OdsxMeasurementHelper.SaveContext saveContext,
AoSession aoSession,
InstanceElement meaIe)
If one measurement quantity is linkes to multiple local columns some base atributes
must be checked and must become invalid.
|
public static final java.lang.String version
protected static java.lang.Object LOCK
public static java.lang.String getVersion()
protected static void setAttributes(OdsxMeasurementHelper.SaveContext saveContext, InstanceElement ieObj, ApplicationElement aeObj, java.util.Map attrs) throws AoException
ieObj
- the instance element.attrs
- the map containing the attribues.
The keyword must be equal to the base attributes name or
equal to the application attribute name.AoException
public static InstanceElement saveMeasurement(java.lang.String asamPath, OdsxMeasurementSaveInfoInterface meaInfo) throws java.lang.Exception
asamPath
- The path to the measurement parent or a sister measurement.meaInfo
- The measurement save information.an
- exception.java.lang.Exception
protected static InstanceElement createSubMatrix(OdsxMeasurementHelper.SaveContext saveContext, InstanceElement ieObj, OdsxSubMatrixSaveInfoInterface subInfo) throws java.lang.Exception
saveContext
- may be nullieObj
- the measurement instance.subInfo
- The submatrix save information.an
- exception.java.lang.Exception
public static InstanceElement createSubMatrix(OdsxMeasurementHelper.SaveContext saveContext, InstanceElement meaIe, InstanceElement parIe, OdsxSubMatrixSaveInfoInterface subInfo) throws java.lang.Exception
saveContext
- may be nullmeaIe
- the measurement instance.parIe
- the parameter set instance.subInfo
- The submatrix save information.an
- exception.java.lang.Exception
public static void validateMEQAttrs(OdsxMeasurementHelper.SaveContext saveContext, AoSession aoSession, InstanceElement meaIe) throws java.lang.Exception
saveContext
- may be nullaoSession
- the session.meaIe
- the measurement instance.an
- exception.java.lang.Exception
public static InstanceElement createColumn(OdsxMeasurementHelper.SaveContext saveContext, InstanceElement meaIe, InstanceElement subIe, OdsxColumnSaveInfoInterface colInfo) throws java.lang.Exception
saveContext
- may be nullmeaIe
- the measurement instance.subIe
- the submatrix instance.colInfo
- The column save information.an
- exception.java.lang.Exception
public static InstanceElement createParameterSet(OdsxMeasurementHelper.SaveContext saveContext, InstanceElement ieObj, OdsxParameterSetSaveInfoInterface pSet) throws AoException
saveContext
- may be nullieObj
- InstanceElement to bind to the parameter set that should be created.pSet
- The parameter set to be created.AoException
public static void createParameters(OdsxMeasurementHelper.SaveContext saveContext, InstanceElement ieObj, InstanceElement psIe, OdsxParameterSetSaveInfoInterface pSet) throws AoException
saveContext
- may be nullieObj
- InstanceElement to bind to the parameter set that should be created.pSet
- The parameter set to be created.AoException
public static InstanceElement saveMeasurement(java.lang.String asamPath, FwkDialogPaneValueInterface editorValue, OdsxColumnAssignmentInterface assignment) throws java.lang.Exception
asamPath
- The path to the measurement parent or a sister measurement.editorValue
- the dialog value of the instance editor.assignment
- The dialog value of the column assignment.an
- exception.java.lang.Exception
public static InstanceElement appendToMeasurement(java.lang.String asamPath, OdsxColumnAssignmentInterface assignment)
asamPath
- The path to the measurement parent or a sister measurement.assignment
- The dialog value of the column assignment.an
- exception.public static void main(java.lang.String[] args)