public class ASAMODSHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
INVALID
The invalid flag.
|
static short |
VALID
The valid flag.
|
Constructor and Description |
---|
ASAMODSHelper() |
Modifier and Type | Method and Description |
---|---|
static ApplicationElement |
getApplicationElement(ApplicationStructure asObj,
java.lang.String name,
java.lang.String basename,
java.lang.String id)
Get the application element belongs to the given description.
|
static InstanceElement |
getInstanceElement(ApplicationStructure asObj,
ApplicationElement aeObj,
java.lang.String name,
java.lang.String path,
java.lang.String id)
Get the instance element belongs to the given description.
|
static long |
toLong(T_LONGLONG id)
Get long presentation of a T_LONGLONG.
|
static T_LONGLONG |
toLongLong(long id)
Get T_LONGLONG presentation of a long.
|
static java.lang.String |
toString(AoException aoException)
Get the string of the AoException.
|
static java.lang.String |
toString(DataType dt)
This method returns the value of a DataType
as a string.
|
static java.lang.String |
toString(SeverityFlag sevFlag)
Get the string of the SeverityFlag.
|
static java.lang.String |
toString(TS_Union union)
Convert a TS_Union structure to a string.
|
public static final short VALID
public static final short INVALID
public static ApplicationElement getApplicationElement(ApplicationStructure asObj, java.lang.String name, java.lang.String basename, java.lang.String id) throws AoException, java.text.ParseException
asObj
- The application structure.name
- The optional name.basename
- The optional basename, if more than one are defined the method returns the first.id
- The optional id.AoException
- If ASAM ODS API returns an error.java.text.ParseException
- If the id was not parseable.public static InstanceElement getInstanceElement(ApplicationStructure asObj, ApplicationElement aeObj, java.lang.String name, java.lang.String path, java.lang.String id) throws AoException, java.text.ParseException
asObj
- The application structure, it is required only if path is available.aeObj
- The application element, it is not required if the path is available.name
- The name of the instancepath
- The ASAM path of the instanceid
- The id of the instanceAoException
- If ASAM ODS API returns an error.java.text.ParseException
- If the id was not parseable.public static java.lang.String toString(AoException aoException)
aoException
- the exception.public static java.lang.String toString(SeverityFlag sevFlag)
sevFlag
- the severity flag.public static java.lang.String toString(DataType dt)
dt
- The datatype.public static java.lang.String toString(TS_Union union)
union
- the unionpublic static T_LONGLONG toLongLong(long id)
id
- the long value.public static long toLong(T_LONGLONG id)
id
- a T_LONGLONG structure