public class OdsxHelper
extends java.lang.Object
Property Keyword | Datatype | Default | Description |
---|---|---|---|
OdsxHelper.FlagsAsBits | boolean | true | If false the method flagsToString return a human readable text for flag value. Else the bit presentation is returned. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DE_DATE_FORMAT
The DE language date format.
|
static boolean |
deLang |
protected static java.lang.String |
FLAG_FILLER |
static boolean |
FLAGS_AS_BITS |
static java.lang.String |
ODS_DATE_FORMAT
The ASAM ODS date format.
|
static java.lang.String |
ODS_VERSION
The default ODS version string.
|
static java.lang.String |
OTHER_DATE_FORMAT
The other language date format.
|
static java.lang.String |
version |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
aoExceptionToString(AoException aoException)
Get the string of the AoException.
|
static java.lang.String |
applAttrToString(ApplAttr aa)
This method returns the ApplAttr as a string.
|
static java.lang.String |
applElemToString(ApplElem ae)
This method returns the ApplElem as a string.
|
static java.lang.String |
applicationStructureValueToString(ApplicationStructureValue asStr)
This method returns the ApplicationStructureValue as a string.
|
static java.lang.String |
applRelToString(ApplRel ar)
This method returns the ApplRel as a string.
|
static Blob |
clone(Blob val)
Clone a blob value.
|
static boolean[] |
clone(boolean[] val)
Clone a boolean sequence value.
|
static byte[] |
clone(byte[] val)
Clone a byte sequence value.
|
static byte[][] |
clone(byte[][] val)
Clone a byte stream sequence value.
|
static double[] |
clone(double[] val)
Clone a double sequence value.
|
static float[] |
clone(float[] val)
Clone a float sequence value.
|
static int[] |
clone(int[] val)
Clone a long sequence value.
|
static NameValueUnit |
clone(NameValueUnit nvu)
Clone a name value unit.
|
static short[] |
clone(short[] val)
Clone a short sequence value.
|
static java.lang.String[] |
clone(java.lang.String[] val)
Clone a string sequence value.
|
static T_COMPLEX |
clone(T_COMPLEX val)
Clone a T_COMPLEX value.
|
static T_COMPLEX[] |
clone(T_COMPLEX[] val)
Clone a T_COMPLEX sequence value.
|
static T_DCOMPLEX |
clone(T_DCOMPLEX val)
Clone a T_DCOMPLEX value.
|
static T_DCOMPLEX[] |
clone(T_DCOMPLEX[] val)
Clone a T_DCOMPLEX sequence value.
|
static T_ExternalReference |
clone(T_ExternalReference val)
Clone a T_ExternalReference value.
|
static T_ExternalReference[] |
clone(T_ExternalReference[] val)
Clone a T_ExternalReference sequence value.
|
static T_LONGLONG |
clone(T_LONGLONG val)
Clone a T_LONGLONG value.
|
static T_LONGLONG[] |
clone(T_LONGLONG[] val)
Clone a T_LONGLONG sequence value.
|
static InstanceElement |
copyInstance(java.lang.String name,
java.lang.String version,
java.lang.String description,
InstanceElement source,
InstanceElement parent)
Copy an instance inside the same session.
|
static NameValueUnit |
createNameValueUnit(java.lang.String name,
DataType datatype,
java.lang.String unit)
Create a name value unit.
|
static NameValueUnit |
createNameValueUnit(java.lang.String name,
java.lang.String unit,
DataType dt,
java.lang.String value)
This method creates a name value unit parsing the given string
according to the given datatype.
|
static java.lang.String |
datatypeToString(DataType dt)
This method returns the value of a DataType
as a string.
|
static DataType |
DS2DT(DataType dt)
Return an datatype of the given sequence datatype.
|
static DataType |
DT2DS(DataType dt)
Return an sequence datatype of the given datatype.
|
static java.lang.String |
escapePattern(java.lang.String pattern)
Return the pattern with the special pattern characters escaped.
|
static java.lang.String |
flagsToString(short flag)
Get the flag string.
|
static InstanceElement[] |
getChildren(InstanceElement ieObj)
Get the children of an instance element.
|
static short[] |
getFlags(InstanceElement column)
Get the flags of a column.
|
static float |
getHighestVersion(T_LONGLONG parIId,
T_LONGLONG parAId,
ApplicationElement aeObj,
java.lang.String instanceName)
Get the highest version of instance element.
|
static java.lang.String |
getHighestVersionString(T_LONGLONG parIId,
T_LONGLONG parAId,
ApplicationElement aeObj,
java.lang.String instanceName)
Get the highest string version of instance element.
|
static InstanceElement[] |
getInstancesById(ApplicationStructure asObj,
ElemId[] ei)
Get the instances by id.
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
boolean value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
byte value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
double value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
float value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
int value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
short value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnit(java.lang.String name,
java.lang.String value)
This static method creates a nameValueUnit with the given name
containing the given value
|
static NameValueUnit |
getNameValueUnitDate(java.lang.String name,
java.lang.String date)
This static method creates a nameValueUnit with the given name
containing the given date
|
static java.lang.String |
getOdsDate(java.util.Date date)
Get the ODS version of the given date.
|
static java.lang.String |
getODSVersion(AoSession session)
Get the ods version of the given session.
|
static java.lang.String |
getODSVersion(OdsxSessionInterface session)
Get the ods version of the given session.
|
static ApplicationElement |
getParent(ApplicationElement aeObj)
Get the parent of an instance element.
|
static InstanceElement |
getParent(InstanceElement ieObj)
Get the parent of an instance element.
|
static double[] |
getRating(InstanceElement column)
Get the rating of an independent column.
|
static ApplicationElement |
getSuperTypeElementByBaseType(ApplicationStructure as,
java.lang.String baseType)
Get the super type element of the ASAM ODS base type.
|
static int |
getTypeSize(DataType datatype)
Get the type size of a ODS value.
|
static int |
getTypeSize(int datatype)
Get the type size of a ODS value.
|
static int |
getTypeSize(TS_Value value)
Get the type size of a ODS value.
|
static java.lang.String |
getVersion() |
static java.lang.String |
getVersion(InstanceElement instance)
Return the version string of an instance element.
|
static boolean |
hasSelfReference(ApplicationElement aeObj)
Return a boolean whether the elements ahs a self reference.
|
static long |
isImplicit(InstanceElement column)
return a boolean whether the column is independent.
|
static boolean |
isIndependent(InstanceElement column)
Return a boolean whether the given local column is defined as independent.
|
static T_LONGLONG |
longToT_longlong(long id)
Get T_LONGLONG presentation of a long.
|
static void |
main(java.lang.String[] args)
The main test procedure.
|
static java.lang.String |
nameValueSeqUnitIdToString(NameValueSeqUnitId nvu)
This method returns the value of a NameValueSeqUnitId
structure as a string.
|
static java.lang.String |
nameValueSeqUnitToString(NameValueSeqUnit nvu)
This method returns the value of a NameValueSeqUnit
structure as a string.
|
static java.lang.String |
nameValueToString(NameValue nvu)
This method returns the value of a NameValue
structure as a string.
|
static java.lang.String |
nameValueUnitToString(NameValueUnit nvu)
This method returns the value of a NameValueUnit
structure as a string.
|
static boolean |
parseBoolean(java.lang.String value)
Parse a boolean string value.
|
static T_COMPLEX |
parseComplex(java.lang.String value)
Parse a T_COMPLEX string value.
|
static T_DCOMPLEX |
parseDComplex(java.lang.String value)
Parse a T_DCOMPLEX string value.
|
static T_LONGLONG |
parseLongLong(java.lang.String value)
Parse a T_LONGLONG string value.
|
static NameValueUnit |
parseNameValueUnit(NameValueUnit nvu,
java.lang.String value)
This method returns the value of a TS_Union
structure as a string.
|
static TS_Union |
parseTS_Union(DataType dt,
java.lang.String value)
This method returns the value of a TS_Union
structure as a string.
|
static TS_Union |
parseTS_Union(DataType dt,
java.lang.String[] value)
This method returns the value of a TS_Union
structure as a string array.
|
static TS_UnionSeq |
parseTS_UnionSeq(DataType dt,
java.lang.String[] value) |
static java.lang.String |
relationRangeToString(RelationRange relRange)
This method returns the RelationType as a string.
|
static java.lang.String |
relationshipToString(Relationship relship)
This method returns the relationship as a string.
|
static java.lang.String |
relationTypeToString(RelationType relType)
This method returns the RelationType as a string.
|
static java.lang.String |
seqToString(Blob val)
This method returns a string presentation of a blob value.
|
static java.lang.String |
seqToString(Blob blob,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a blob value.
|
static java.lang.String |
seqToString(boolean[] val)
This method returns a string presentation of a boolean sequence value.
|
static java.lang.String |
seqToString(boolean[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a boolean sequence value.
|
static java.lang.String |
seqToString(byte[] val)
This method returns a string presentation of a byte sequence value.
|
static java.lang.String |
seqToString(byte[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a byte sequence value.
|
static java.lang.String |
seqToString(byte[] val,
int maxCount,
boolean multiLine,
int lineCount,
java.lang.String terminator)
This method returns a string presentation of a byte sequence value.
|
static java.lang.String |
seqToString(double[] val)
This method returns a string presentation of a double sequence value.
|
static java.lang.String |
seqToString(double[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a double sequence value.
|
static java.lang.String |
seqToString(float[] val)
This method returns a string presentation of a float sequence value.
|
static java.lang.String |
seqToString(float[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a float sequence value.
|
static java.lang.String |
seqToString(int[] val)
This method returns a string presentation of a int sequence value.
|
static java.lang.String |
seqToString(int[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a int sequence value.
|
static java.lang.String |
seqToString(java.lang.Object[] val)
This method returns a string presentation of a sequence value.
|
static java.lang.String |
seqToString(java.lang.Object[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a sequence value.
|
static java.lang.String |
seqToString(short[] val)
This method returns a string presentation of a short sequence value.
|
static java.lang.String |
seqToString(short[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a short sequence value.
|
static java.lang.String |
seqToString(java.lang.String[] val)
This method returns a string presentation of a string sequence value.
|
static java.lang.String |
seqToString(java.lang.String[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a string sequence value.
|
static java.lang.String |
seqToString(T_ExternalReference[] val)
This method returns a string presentation of a sequence value.
|
static java.lang.String |
seqToString(T_ExternalReference[] val,
int maxCount,
boolean multiLine,
int lineCount)
This method returns a string presentation of a sequence value.
|
static void |
setAttributes(InstanceElement ieObj,
java.util.Map attrs)
Set the attributes of an instance element according to the given map.
|
static java.lang.String |
severityFlagToString(SeverityFlag sevFlag)
Get the string of the SeverityFlag.
|
protected static InstanceElement[] |
sortInstancesByElemIds(InstanceElement[] ieArr,
ElemId[] eiArr)
Sort the given instances by the given ElemIds.
|
static java.lang.String |
t_complexToString(T_COMPLEX complex)
Get string presentation of a T_COMPLEX.
|
static java.lang.String |
t_dcomplexToString(T_DCOMPLEX complex)
Get string presentation of a T_DCOMPLEX.
|
static long |
t_longlongToLong(T_LONGLONG id)
Get long presentation of a T_LONGLONG.
|
static java.lang.String |
t_longlongToString(T_LONGLONG id)
Get string presentation of a T_LONGLONG.
|
static java.lang.String |
ts_unionSeqToString(TS_UnionSeq ts)
This method returns the value of a TS_UnionSeq
structure as a string.
|
static java.lang.String |
ts_unionSeqToString(TS_UnionSeq ts,
int maxCount)
This method returns the value of a TS_UnionSeq
structure as a string.
|
static java.lang.String |
ts_unionSeqToString(TS_UnionSeq ts,
int maxCount,
boolean multiLine,
int lineCount)
This method returns the value of a TS_UnionSeq
structure as a string.
|
static java.lang.String |
ts_unionToString(TS_Union ts)
This method returns the value of a TS_Union
structure as a string.
|
static java.lang.String |
ts_unionToString(TS_Union ts,
int maxCount)
This method returns the value of a TS_Union
structure as a string.
|
static java.lang.String |
ts_unionToString(TS_Union ts,
int maxCount,
boolean multiLine,
int lineCount)
This method returns the value of a TS_Union
structure as a string.
|
static java.lang.String |
ts_valueSeqToString(TS_ValueSeq ts)
This method returns the value of a TS_ValueSeq
structure as a string.
|
static java.lang.String |
ts_valueToString(TS_Value ts)
This method returns the value of a TS_Value
structure as a string.
|
static java.lang.String |
valToString(byte[] val)
This method returns a string presentation of a BYTESTR value.
|
static java.lang.String |
valToString(java.lang.Object val)
This method returns a string presentation of a value.
|
static java.lang.String |
valToString(java.lang.String date)
This method returns a string presentation of a date value.
|
static java.lang.String |
valToString(T_COMPLEX val)
This method returns a string presentation of a T_COMPLEX value.
|
static java.lang.String |
valToString(T_DCOMPLEX val)
This method returns a string presentation of a T_DCOMPLEX value.
|
static java.lang.String |
valToString(T_ExternalReference val)
This method returns a string presentation of a T_ExternalReference value.
|
static java.lang.String |
valToString(T_LONGLONG val)
This method returns a string presentation of a T_LONGLONG value.
|
public static final java.lang.String version
public static final java.lang.String ODS_VERSION
public static final java.lang.String ODS_DATE_FORMAT
public static final java.lang.String DE_DATE_FORMAT
public static final java.lang.String OTHER_DATE_FORMAT
public static final boolean FLAGS_AS_BITS
protected static final java.lang.String FLAG_FILLER
public static boolean deLang
public static java.lang.String getVersion()
public static java.lang.String getVersion(InstanceElement instance)
instance
- the instance.public static java.lang.String escapePattern(java.lang.String pattern)
the
- string.public static boolean isIndependent(InstanceElement column)
column
- the instance of the type AoLocalColumn.public static short[] getFlags(InstanceElement column)
column
- the local column.public static long isImplicit(InstanceElement column)
column
- the local column.public static double[] getRating(InstanceElement column)
public static void setAttributes(InstanceElement ieObj, 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 java.lang.String severityFlagToString(SeverityFlag sevFlag)
sevFlag
- the severity flag.public static java.lang.String aoExceptionToString(AoException aoException)
aoException
- the exception.public static java.lang.String flagsToString(short flag)
flag
- the value flag.public static int getTypeSize(int datatype)
datatype
- The data type int representation.public static int getTypeSize(DataType datatype)
datatype
- The data type.public static int getTypeSize(TS_Value value)
value
- instance of TS_Valuepublic static NameValueUnit createNameValueUnit(java.lang.String name, DataType datatype, java.lang.String unit)
name
- The name to the NameValueUnit object.datatype
- The data type of the NameValueUnit object.unit
- The unit of the name value unit.public static T_LONGLONG clone(T_LONGLONG val)
val
- The value.public static T_COMPLEX clone(T_COMPLEX val)
val
- The value.public static T_DCOMPLEX clone(T_DCOMPLEX val)
val
- The value.public static T_ExternalReference clone(T_ExternalReference val)
val
- The value.public static byte[] clone(byte[] val)
val
- The value.public static java.lang.String[] clone(java.lang.String[] val)
val
- The value.public static short[] clone(short[] val)
val
- The value.public static float[] clone(float[] val)
val
- The value.public static boolean[] clone(boolean[] val)
val
- The value.public static int[] clone(int[] val)
val
- The value.public static double[] clone(double[] val)
val
- The value.public static T_LONGLONG[] clone(T_LONGLONG[] val)
val
- The value.public static T_COMPLEX[] clone(T_COMPLEX[] val)
val
- The value.public static T_DCOMPLEX[] clone(T_DCOMPLEX[] val)
val
- The value.public static T_ExternalReference[] clone(T_ExternalReference[] val)
val
- The value.public static byte[][] clone(byte[][] val)
val
- The value.public static Blob clone(Blob val)
val
- The value.public static NameValueUnit clone(NameValueUnit nvu)
nvu
- The name value unit to be cloned.public static java.lang.String datatypeToString(DataType dt)
dt
- The datatype.public static T_LONGLONG parseLongLong(java.lang.String value)
public static T_COMPLEX parseComplex(java.lang.String value)
public static T_DCOMPLEX parseDComplex(java.lang.String value)
public static boolean parseBoolean(java.lang.String value)
public static NameValueUnit parseNameValueUnit(NameValueUnit nvu, java.lang.String value) throws java.lang.RuntimeException, AoException
dt
- The datatype to be parsed.value,
- The string to be parsed.java.lang.RuntimeException
AoException
public static NameValueUnit createNameValueUnit(java.lang.String name, java.lang.String unit, DataType dt, java.lang.String value) throws java.lang.RuntimeException, AoException
name
- the name of the structure to be created.unit
- the unist string of the structure.dt
- The datatype to be parsed.value,
- The string to be parsed.java.lang.RuntimeException
AoException
public static TS_Union parseTS_Union(DataType dt, java.lang.String value) throws java.lang.RuntimeException, AoException
dt
- The datatype to be parsed.value,
- The string to be parsed.java.lang.RuntimeException
AoException
public static TS_Union parseTS_Union(DataType dt, java.lang.String[] value) throws java.lang.RuntimeException, AoException
dt
- The datatype to be parsed.value,
- The string array to be parsed.java.lang.RuntimeException
AoException
public static TS_UnionSeq parseTS_UnionSeq(DataType dt, java.lang.String[] value) throws java.lang.RuntimeException, AoException
java.lang.RuntimeException
AoException
public static java.lang.String valToString(java.lang.String date)
date
- the date.public static java.lang.String valToString(T_LONGLONG val)
val
- the value.public static java.lang.String valToString(byte[] val)
val
- the value.public static java.lang.String valToString(T_COMPLEX val)
val
- the value.public static java.lang.String valToString(T_DCOMPLEX val)
val
- the value.public static java.lang.String valToString(T_ExternalReference val)
val
- the value.public static java.lang.String valToString(java.lang.Object val)
val
- the value.public static java.lang.String seqToString(byte[] val)
val
- the value.public static java.lang.String seqToString(byte[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(byte[] val, int maxCount, boolean multiLine, int lineCount, java.lang.String terminator)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(short[] val)
val
- the value.public static java.lang.String seqToString(short[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(boolean[] val)
val
- the value.public static java.lang.String seqToString(boolean[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(int[] val)
val
- the value.public static java.lang.String seqToString(int[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(float[] val)
val
- the value.public static java.lang.String seqToString(float[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(double[] val)
val
- the value.public static java.lang.String seqToString(double[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(Blob val)
val
- the value.public static java.lang.String seqToString(Blob blob, int maxCount, boolean multiLine, int lineCount)
blob
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(java.lang.String[] val)
val
- the value.public static java.lang.String seqToString(java.lang.String[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(java.lang.Object[] val)
val
- the value.public static java.lang.String seqToString(java.lang.Object[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String seqToString(T_ExternalReference[] val)
val
- the value.public static java.lang.String seqToString(T_ExternalReference[] val, int maxCount, boolean multiLine, int lineCount)
val
- the value.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String ts_valueSeqToString(TS_ValueSeq ts)
ts
- The TS_ValueSeq structure.public static java.lang.String ts_valueToString(TS_Value ts)
ts
- The TS_Value structure.public static java.lang.String ts_unionToString(TS_Union ts)
ts
- The TS_Union structure.public static java.lang.String ts_unionToString(TS_Union ts, int maxCount)
ts
- The TS_Union structure.maxCount
- The maximal count of printed sequence elements.public static java.lang.String ts_unionToString(TS_Union ts, int maxCount, boolean multiLine, int lineCount)
ts
- The TS_Union structure.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String ts_unionSeqToString(TS_UnionSeq ts)
ts
- The TS_UnionSeq structure.public static java.lang.String ts_unionSeqToString(TS_UnionSeq ts, int maxCount)
ts
- The TS_UnionSeq structure.maxCount
- The maximal count of printed sequence elements.public static java.lang.String ts_unionSeqToString(TS_UnionSeq ts, int maxCount, boolean multiLine, int lineCount)
ts
- The TS_UnionSeq structure.maxCount
- The maximal count of printed sequence elements.multiLine
- If true the method will break lines.lineCount
- Total number of elements per line.public static java.lang.String nameValueUnitToString(NameValueUnit nvu)
nvu
- The NameValueUnit structure.public static java.lang.String nameValueSeqUnitToString(NameValueSeqUnit nvu)
nvu
- The NameValueSeqUnit structure.public static java.lang.String nameValueSeqUnitIdToString(NameValueSeqUnitId nvu)
nvu
- The NameValueSeqUnitId structure.public static java.lang.String nameValueToString(NameValue nvu)
nvu
- The NameValue structure.public static java.lang.String relationRangeToString(RelationRange relRange)
relRange
- The RelationRange.public static java.lang.String relationshipToString(Relationship relship)
relship
- The Relationship.public static java.lang.String relationTypeToString(RelationType relType)
relType
- The RelationType.public static java.lang.String applAttrToString(ApplAttr aa)
aa
- The ApplAttr structure.public static java.lang.String applRelToString(ApplRel ar)
ar
- The ApplRel structure.public static java.lang.String applElemToString(ApplElem ae)
ae
- The ApplElem structure.public static java.lang.String applicationStructureValueToString(ApplicationStructureValue asStr)
asStr
- The ApplicationStructureValue structure.public static InstanceElement copyInstance(java.lang.String name, java.lang.String version, java.lang.String description, InstanceElement source, InstanceElement parent) throws FwkException, AoException
name
- The name of the new instance.version
- The version string of the new instance. May be nulldescription
- The description of the new instance. May be nullsource
- The instance element to be copied.parent
- The parent under that the instance should be copied.FwkException
AoException
public static float getHighestVersion(T_LONGLONG parIId, T_LONGLONG parAId, ApplicationElement aeObj, java.lang.String instanceName)
parIId
- The id of the instance element parent object (may be null).parAId
- The id of the application element parent object (may be null).aeObj
- The application element.instanceName
- The name of the instance element.public static java.lang.String getHighestVersionString(T_LONGLONG parIId, T_LONGLONG parAId, ApplicationElement aeObj, java.lang.String instanceName)
parIId
- The id of the instance element parent object (may be null).parAId
- The id of the application element parent object (may be null).aeObj
- The application element.instanceName
- The name of the instance element.public static java.lang.String getOdsDate(java.util.Date date)
date
- the date that should be formated to ODSpublic static T_LONGLONG longToT_longlong(long id)
id
- the long value.public static long t_longlongToLong(T_LONGLONG id)
id
- a T_LONGLONG structurepublic static java.lang.String t_longlongToString(T_LONGLONG id)
id
- a T_LONGLONG structurepublic static java.lang.String t_complexToString(T_COMPLEX complex)
id
- a T_LONGLONG structurepublic static java.lang.String t_dcomplexToString(T_DCOMPLEX complex)
id
- a T_LONGLONG structurepublic static NameValueUnit getNameValueUnit(java.lang.String name, java.lang.String value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnit(java.lang.String name, int value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnit(java.lang.String name, short value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnit(java.lang.String name, boolean value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnit(java.lang.String name, float value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnit(java.lang.String name, double value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnit(java.lang.String name, byte value)
name
- The name of the unit.val
- The value of the unit.public static NameValueUnit getNameValueUnitDate(java.lang.String name, java.lang.String date)
name
- The name of the unit.date
- The value of the unit.public static InstanceElement getParent(InstanceElement ieObj)
ieObj
- the instance element.public static ApplicationElement getParent(ApplicationElement aeObj)
ieObj
- the instance element.public static InstanceElement[] getChildren(InstanceElement ieObj)
ieObj
- the instance element.public static InstanceElement[] getInstancesById(ApplicationStructure asObj, ElemId[] ei) throws AoException
AoException
protected static InstanceElement[] sortInstancesByElemIds(InstanceElement[] ieArr, ElemId[] eiArr)
ieArr
- An array of instances.eiArr
- An array of ElemIds.public static DataType DT2DS(DataType dt)
dt
- the datatype.public static DataType DS2DT(DataType dt)
dt
- the datatype.public static java.lang.String getODSVersion(AoSession session)
the
- session.public static java.lang.String getODSVersion(OdsxSessionInterface session)
the
- session.public static boolean hasSelfReference(ApplicationElement aeObj) throws AoException
AoException
public static ApplicationElement getSuperTypeElementByBaseType(ApplicationStructure as, java.lang.String baseType) throws AoException
as
- the application structurebaseType
- the base typeAoException
- any occurring ASAM ODS Exception.public static void main(java.lang.String[] args)