|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdai.lang.Value
This class represents instances of any data type defined in EXPRESS language and their values. The data types may be simple, such as integer, double, string and so on, entities, aggregates including nested, and defined data types. These instances are used not only as values of entity attributes but also may implement other items of the Express code, for example, expressions and identifiers. Moreover, objects of this class are used to represent parameters and return type for functions and procedures written in EXPRESS. For all EXPRESS operators, built-in functions and built-in procedures the corresponding methods are included in this class. Within the class, the following two data types are defined:
getDeclaredType
method;
getActualType
method.
getActualJavaType
method. The specific constants indicating
the supported data types are as follows:
The JSDAI-ExpressCompiler is using objects of Value
to implement
expressions, defined in EXPRESS functions, procedures, where-rules and derived
attributes. Within EXPRESS expressions methods of this class implementing
operators are used.
Field Summary | |
static int |
INDETERMINATE
Represents indeterminate (denoted as ?) in Express language. |
int |
tag
The type of a value wrapped in an object of this class. |
Constructor Summary | |
Value(java.lang.Class provided_class)
Creates an object of this class and attaches simple entity data type to it. |
|
Value(jsdai.dictionary.EEntity_definition edef)
Creates an object of this class and attaches simple entity data type to it. |
|
Value(EntityValue eval)
|
Method Summary | |
Value |
abs(Value val)
Implements built-in function "Abs" of Express language. |
Value |
aCos(Value val)
Implements built-in function "ACos" of Express language. |
Value |
addComplex(Value val)
Adds a partial complex entity value to already existing complex entity instance represented by the current object of this class. |
void |
addMember(SdaiContext context,
Value val)
Adds a new member to the aggregate represented by an object of this class. |
Value |
addOrUnionOrConcatenate(SdaiContext context,
Value val1,
Value val2)
Implements addition, union, string concatenation and binary concatenation operators of Express language. |
Value |
addParameter(Value val)
Adjoins value of an attribute to a partial complex entity value being formed (and represented by the current object of this class). |
static Value |
alloc()
Produces an object of this class. |
static Value |
alloc(jsdai.dictionary.EData_type type)
Produces an object of this class prepared to wrap values of the specified data type. |
static Value |
alloc(Value v)
Produces an object of this class prepared to wrap values of the specified data type (or its specializations). |
Value |
AND(SdaiContext context,
Value val1,
Value val2)
Implements AND operator of Express language. |
Value |
aSin(Value val)
Implements built-in function "ASin" of Express language. |
Value |
aTan(Value val1,
Value val2)
Implements built-in function "ATan" of Express language. |
Value |
bagToSet(SdaiContext context,
Value bag)
Implements conversion of an aggregate of Express BAG OF GENERIC type to an aggregate of Express SET OF GENERIC type. |
Value |
bLength(Value val)
Implements built-in function "BLength" of Express language. |
Value |
check_selection(SdaiContext context,
jsdai.dictionary.EData_type type)
Verifies if the value wrapped in the object of this class is of type (or of its specialization) specified by the method's second parameter. |
Value |
check(SdaiContext context,
jsdai.dictionary.EData_type type)
Verifies if the value wrapped in the object of this class is of type (or of its specialization) specified by the method's second parameter. |
void |
checkRedefine(CEntity inst,
jsdai.dictionary.EAttribute attr)
Prints a warning message to the log file in the case where a submitted attribute of an entity instance is redefined, yet it has a value assigned, which is meaningless. |
Value |
cos(Value val)
Implements built-in function "Cos" of Express language. |
Value |
create()
Initializes the current object of this class to represent an empty aggregate. |
Value |
dec()
Decreases the value of integer type wrapped by an object of this class by 1. |
Value |
dec(Value delta)
Decreases the value of integer type wrapped by an object of this class by a specified integer. |
Value |
DIV(SdaiContext context,
Value numerator,
Value denominator)
Implements integer division operator of Express language. |
Value |
divide(SdaiContext context,
Value numerator,
Value denominator)
Implements real division operator of Express language. |
Value |
equal(SdaiContext context,
Value val1,
Value val2)
Implements "equal" - a value comparison operator of Express language. |
static int |
equalInt(SdaiContext context,
Value val1,
Value val2)
Implements "equal" - a value comparison operator of Express language. |
Value |
exists(Value val)
Implements built-in function "Exists" of Express language. |
Value |
exp(Value val)
Implements built-in function "Exp" of Express language. |
Value |
exponent(SdaiContext context,
Value base,
Value power)
Implements exponentiation operator of Express language. |
Value |
extent(SdaiContext context,
Value data_type)
Implements built-in function "Extent" of Express-X language. |
Value |
format(Value number,
Value form_str)
Implements built-in function "Format" of Express language. |
Value |
gequal(SdaiContext context,
Value val1,
Value val2)
It is a shortcut to gequalOrSuperset method. |
static int |
gequalInt(SdaiContext context,
Value val1,
Value val2)
Implements "greater than or equal" - a value comparison operator of Express language. |
Value |
gequalOrSuperset(SdaiContext context,
Value val1,
Value val2)
Implements "greater than or equal" - a value comparison operator and also superset operator of Express language. |
int |
getActualJavaType()
Returns an indicator specifying actual data type attached to this object of Value . |
jsdai.dictionary.EData_type |
getActualType()
Returns actual data type attached to this object of Value .
|
boolean |
getAsBoolean()
Converts logical value represented by an integer to boolean according to the following rule: if TRUE (integer value 2), then true ,
if FALSE or UNKNOWN (integer values 1 and 3, respectively), then
false is returned.
|
Value |
getAttribute(jsdai.dictionary.EAttribute attr)
Returns an object of this class wrapping the value of the specified attribute. |
Value |
getAttribute(jsdai.dictionary.EAttribute attr,
SdaiContext context)
Returns an object of this class wrapping the value of the specified attribute. |
Value |
getAttribute(java.lang.String attrName,
SdaiContext context)
Returns an object of this class wrapping the value of the attribute specified by its name. |
Value |
getByIndex(int index)
Returns the value (of type Value ) of the member at the specified index
position in an aggregate wrapped in an object of this class. |
Binary |
getBinary()
Returns a binary value wrapped in an object of this class. |
A_binary |
getBinaryAggregate()
Returns an aggregate of binary values wrapped in an object of this class. |
A_binary |
getBinaryAggregate(EEntity owner)
Returns an aggregate of binary values that is wrapped in an object of this class. |
int |
getBoolean()
Returns an integer representing the boolean value wrapped in an object of this class. |
Aa_boolean |
getBoolean2Aggregate()
Returns a double-nesting aggregate of boolean values wrapped in an object of this class. |
Aa_boolean |
getBoolean2Aggregate(EEntity owner)
Returns a double-nesting aggregate of boolean values that is wrapped in an object of this class. |
A_boolean |
getBooleanAggregate()
Returns an aggregate of boolean values wrapped in an object of this class. |
A_boolean |
getBooleanAggregate(EEntity owner)
Returns an aggregate of boolean values that is wrapped in an object of this class. |
jsdai.dictionary.EData_type |
getDeclaredType()
Returns declared data type attached to this object of Value . |
double |
getDouble()
Returns a real value wrapped in an object of this class. |
Aa_double |
getDouble2Aggregate()
Returns a double-nesting aggregate of real values wrapped in an object of this class. |
Aa_double |
getDouble2Aggregate(EEntity owner)
Returns a double-nesting aggregate of real values that is wrapped in an object of this class. |
Aaa_double |
getDouble3Aggregate()
Returns a triple-nesting aggregate of real values wrapped in an object of this class. |
Aaa_double |
getDouble3Aggregate(EEntity owner)
Returns a triple-nesting aggregate of real values that is wrapped in an object of this class. |
A_double |
getDoubleAggregate()
Returns an aggregate of real values wrapped in an object of this class. |
A_double |
getDoubleAggregate(EEntity owner)
Returns an aggregate of real values that is wrapped in an object of this class. |
int |
getEnumeration()
Returns an integer representing enumeration value wrapped in an object of this class. |
Aa_enumeration |
getEnumeration2Aggregate()
Returns a double-nesting aggregate of enumeration values wrapped in an object of this class. |
Aa_enumeration |
getEnumeration2Aggregate(EEntity owner)
Returns a double-nesting aggregate of enumeration values that is wrapped in an object of this class. |
A_enumeration |
getEnumerationAggregate()
Returns an aggregate of enumeration values wrapped in an object of this class. |
A_enumeration |
getEnumerationAggregate(EEntity owner)
Returns an aggregate of enumeration values that is wrapped in an object of this class. |
EEntity |
getInstance()
Returns an entity instance wrapped in an object of this class. |
Aggregate |
getInstanceAggregate()
Returns an aggregate of entity instances wrapped in an object of this class. |
Aggregate |
getInstanceAggregate(EEntity owner)
Returns an aggregate of entity instances that is wrapped in an object of this class. |
int |
getInteger()
Returns an integer value wrapped in an object of this class. |
Aa_integer |
getInteger2Aggregate()
Returns a double-nesting aggregate of integer values wrapped in an object of this class. |
Aa_integer |
getInteger2Aggregate(EEntity owner)
Returns a double-nesting aggregate of integer values that is wrapped in an object of this class. |
A_integer |
getIntegerAggregate()
Returns an aggregate of integer values wrapped in an object of this class. |
A_integer |
getIntegerAggregate(EEntity owner)
Returns an aggregate of integer values that is wrapped in an object of this class. |
int |
getLogical()
Returns an integer representing the logical value wrapped in an object of this class. |
Aa_integer |
getLogical2Aggregate()
Returns a double-nesting aggregate of logical values wrapped in an object of this class. |
Aa_integer |
getLogical2Aggregate(EEntity owner)
Returns a double-nesting aggregate of logical values that is wrapped in an object of this class. |
A_enumeration |
getLogicalAggregate()
Returns an aggregate of logical values wrapped in an object of this class. |
A_enumeration |
getLogicalAggregate(EEntity owner)
Returns an aggregate of logical values that is wrapped in an object of this class. |
int |
getMemberCount()
Returns the number of elements in an aggregate wrapped in an object of this class. |
Aggregate |
getMixedAggregate()
Returns an aggregate of values of select data type wrapped in an object of this class. |
Aggregate |
getMixedAggregate(EEntity owner)
Returns an aggregate of values of select data type that is wrapped in an object of this class. |
java.lang.String |
getString()
Returns a string value wrapped in an object of this class. |
Aa_string |
getString2Aggregate()
Returns a double-nesting aggregate of string values wrapped in an object of this class. |
Aa_string |
getString2Aggregate(EEntity owner)
Returns a double-nesting aggregate of string values that is wrapped in an object of this class. |
A_string |
getStringAggregate()
Returns an aggregate of string values wrapped in an object of this class. |
A_string |
getStringAggregate(EEntity owner)
Returns an aggregate of string values that is wrapped in an object of this class. |
Value |
greater(SdaiContext context,
Value val1,
Value val2)
Implements "greater than" - a value comparison operator of Express language. |
static int |
greaterInt(SdaiContext context,
Value val1,
Value val2)
Implements "greater than" - a value comparison operator of Express language. |
Value |
groupReference(SdaiContext context,
java.lang.Class provided_class)
Returns a partial complex entity value within a complex entity instance represented by the current object of this class. |
Value |
groupReference(SdaiContext context,
jsdai.dictionary.EEntity_definition edef)
Returns a partial complex entity value within a complex entity instance represented by the current object of this class. |
Value |
hiBound(Value val)
Implements built-in function "HiBound" of Express language. |
Value |
hiIndex(Value val)
Implements built-in function "HiIndex" of Express language. |
Value |
IN(SdaiContext context,
Value val1,
Value val2)
Implements membership operator IN of Express language. |
Value |
inc()
Increments the value of integer type wrapped by an object of this class by 1. |
Value |
inc(Value delta)
Increments the value of integer type wrapped by an object of this class by a specified integer. |
Value |
indexing(int index1,
int index2)
Implements Aggregate indexing , String indexing and
Binary indexing operators of Express language.
|
Value |
indexing(Value index1,
Value index2)
Implements Aggregate indexing , String indexing and
Binary indexing operators of Express language.
|
static int |
INInt(SdaiContext context,
Value val1,
Value val2)
Implements membership operator IN of Express language. |
Value |
init(jsdai.dictionary.EData_type type)
Initializes the current object of this class to wrap values of the specified data type. |
Value |
initAggregate(jsdai.dictionary.EAggregation_type type,
EEntity owner)
Initializes the current object of this class to wrap aggregates of the specified aggregation type. |
Value |
initAggregateMember(int index,
jsdai.dictionary.EAggregation_type type)
Initializes an object of this class for the member of the aggregate represented by the current object of Value to wrap values of the
specified aggregation type. |
void |
insert(SdaiContext context,
Value val,
Value index)
Implements built-in procedure "Insert" of Express language. |
void |
insert(SdaiContext context,
Value list,
Value new_member,
Value index)
Implements built-in procedure "Insert" of Express language. |
Value |
instanceEqual(SdaiContext context,
Value val1,
Value val2)
Implements "instance equal" - an instance comparison operator of Express language. |
static int |
instanceEqualInt(SdaiContext context,
Value val1,
Value val2)
Implements "instance equal" - an instance comparison operator of Express language. |
Value |
instanceNotEqual(SdaiContext context,
Value val1,
Value val2)
Implements "instance not equal" - an instance comparison operator of Express language. |
static int |
instanceNotEqualInt(SdaiContext context,
Value val1,
Value val2)
Implements "instance not equal" - an instance comparison operator of Express language. |
boolean |
isIndeterminate()
Returns true if and only if the current object of
Value class wraps Express indeterminate value ("?"). |
Value |
length(Value val)
Implements built-in function "Length" of Express language. |
Value |
lequal(SdaiContext context,
Value val1,
Value val2)
It is a shortcut to lequalOrSubset method. |
static int |
lequalInt(SdaiContext context,
Value val1,
Value val2)
Implements "less than or equal" - a value comparison operator of Express language. |
Value |
lequalOrSubset(SdaiContext context,
Value val1,
Value val2)
Implements "less than or equal" - a value comparison operator and also subset operator of Express language. |
Value |
less(SdaiContext context,
Value val1,
Value val2)
Implements "less than" - a value comparison operator of Express language. |
static int |
lessInt(SdaiContext context,
Value val1,
Value val2)
Implements "less than" - a value comparison operator of Express language. |
Value |
LIKE(SdaiContext context,
Value val1,
Value val2)
Implements LIKE operator of Express language. |
Value |
loBound(Value val)
Implements built-in function "LoBound" of Express language. |
Value |
log(Value val)
Implements built-in function "Log" of Express language. |
Value |
log10(Value val)
Implements built-in function "Log10" of Express language. |
Value |
log2(Value val)
Implements built-in function "Log2" of Express language. |
Value |
loIndex(Value val)
Implements built-in function "LoIndex" of Express language. |
Value |
makeInstance(SdaiContext context)
Creates an instance of the entity described by the current object of this class. |
Value |
MOD(SdaiContext context,
Value val1,
Value val2)
Implements modulo operator of Express language. |
Value |
mulOrIntersect(SdaiContext context,
Value val1,
Value val2)
Implements multiplication and aggregate intersection operators of Express language. |
Value |
negation(Value val)
Implements arithmetic negation (-) operator of Express language. |
Value |
nequal(SdaiContext context,
Value val1,
Value val2)
Implements "not equal" - a value comparison operator of Express language. |
static int |
nequalInt(SdaiContext context,
Value val1,
Value val2)
Implements "not equal" - a value comparison operator of Express language. |
Value |
NOT(Value val)
Implements NOT operator of Express language. |
Value |
NVL(SdaiContext context,
Value val,
Value substitute)
Implements built-in function "NVL" of Express language. |
Value |
odd(Value val)
Implements built-in function "Odd" of Express language. |
Value |
OR(SdaiContext context,
Value val1,
Value val2)
Implements OR operator of Express language. |
void |
remove(Value index)
Implements built-in procedure "Remove" of Express language. |
void |
remove(Value list,
Value index)
Implements built-in procedure "Remove" of Express language. |
Value |
replaceByAlreadyExistingAndDelete(SdaiContext _context,
java.lang.Class entity_extent,
SdaiModel entity_model)
Checks if the specified entity instance is value-equal to another entity instance in the specified SdaiModel . |
Value |
replaceRange(int index1,
int index2,
Value repl)
Implements assignment statement when the object being assigned to is range qualified. |
Value |
replaceRange(Value index1,
Value index2,
Value repl)
Implements assignment statement when the object being assigned to is range qualified. |
Value |
rolesOf(Value val)
Implements built-in function "RolesOf" of Express language. |
Value |
set(SdaiContext context,
Aggregate aggr)
Wraps an aggregate (also nested) in an object of this class. |
Value |
set(SdaiContext context,
Binary val)
Wraps a value of binary type in an object of this class. |
Value |
set(SdaiContext context,
double val)
Wraps a value of real type in an object of this class. |
Value |
set(SdaiContext context,
EEntity val)
Wraps an entity instance in an object of this class. |
Value |
set(SdaiContext context,
int val)
Wraps a value of integer type in an object of this class. |
Value |
set(SdaiContext context,
java.lang.Object val)
Writes the value submitted as a method's second parameter to the current object of this class provided the value to be written conforms to the data type declared, using, for example, alloc(EData_type) method,
in the current object. |
Value |
set(SdaiContext context,
java.lang.String val)
Wraps a value of string type in an object of this class. |
Value |
set(SdaiContext context,
java.lang.String val,
java.lang.String schema_name)
Wraps a value of string type in an object of this class. |
Value |
set(SdaiContext context,
Value val)
Writes the value wrapped in the object of Value submitted
as a method's second parameter to the current object of this class provided
the value to be written conforms to the data type declared, using,
for example, alloc(EData_type) method,
in the current object. |
Value |
set(Value val)
Writes the value wrapped in the object of Value submitted
as a method's parameter to the current object of this class without
checking whether the value to be written conforms to the data type
declared for the current Value object. |
Value |
setAttribute(jsdai.dictionary.EExplicit_attribute attr,
Value val)
Assigns the submitted value to the specified attribute of the entity instance wrapped in this object of type Value . |
Value |
setEnum(SdaiContext context,
java.lang.String val)
Wraps a value of enumeration type in an object of this class. |
Value |
setInstancesAggregate(SdaiContext context,
AEntity aggr)
Wraps an aggregate of entity instances in an object of this class. |
Value |
setLB(SdaiContext context,
int val)
Wraps a value of either logical or boolean type in an object of this class. |
Value |
setLB(SdaiContext context,
Value val)
Wraps a value of either logical or boolean type in an object of this class. |
void |
setMember(SdaiContext context,
Value val,
int index)
Assigns a new value to a member of the aggregate represented by an object of this class located at the specified index position. |
Value |
sin(Value val)
Implements built-in function "Sin" of Express language. |
Value |
sizeOf(Value val)
Implements built-in function "SizeOf" of Express language. |
Value |
sizeOfExt(SdaiContext context,
Value val)
Implements built-in function "SizeOf" of Express language. |
Value |
sizeOfExt0(SdaiContext context,
Value val)
Implements built-in function "SizeOf" of Express language. |
Value |
sqrt(Value val)
Implements built-in function "Sqrt" of Express language. |
Value |
subbinary(Value val,
int index1,
int index2)
Implements binary indexing operator of Express language. |
Value |
substractOrDifference(SdaiContext context,
Value val1,
Value val2)
Implements subtraction and aggregate difference operators of Express language. |
Value |
substring(Value val,
int index)
Implements string indexing operator of Express language. |
Value |
substring(Value val,
int index1,
int index2)
Implements string indexing operator of Express language. |
Value |
tan(Value val)
Implements built-in function "Tan" of Express language. |
A_string |
typeOf(SdaiContext context)
Implements built-in function "TypeOf" of Express language. |
Value |
typeOfV(SdaiContext context)
Implements built-in function "TypeOf" of Express language. |
java.lang.String |
toString()
Returns a description of this value as a String . |
Value |
unionEnlarge(Value val,
SdaiContext context)
Implements Express language operation A:=A+e, where A is an aggregate, e is an element, and plus stands for the aggregate union operator. |
Value |
unnest()
Performs a conversion of the nested aggregate to a one-dimensional aggregate of entity instances. |
Value |
unset()
Makes an object of this class representing no value, that is, attaches INDETERMINATE to it. |
Value |
usedIn(Value instance,
Value role)
Implements built-in function "UsedIn" of Express language. |
Value |
value_in(SdaiContext context,
Value aggr,
Value el)
Implements built-in function "Value_in" of Express language. |
Value |
value_unique(SdaiContext context,
Value aggr)
Implements built-in function "Value_unique" of Express language. |
Value |
value(Value val)
Implements built-in function "Value" of Express language. |
Value |
XOR(SdaiContext context,
Value val1,
Value val2)
Implements XOR operator of Express language. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int tag
public static final int INDETERMINATE
Constructor Detail |
public Value(jsdai.dictionary.EEntity_definition edef)
edef
- simple entity data type for which an object of type Value
is asked.public Value(java.lang.Class provided_class) throws SdaiException
provided_class
- Java class for the simple entity data type for which an
object of type Value
is asked.public Value(EntityValue eval)
Method Detail |
public jsdai.dictionary.EData_type getDeclaredType()
Value
.
getActualType()
,
getActualJavaType()
public jsdai.dictionary.EData_type getActualType()
Value
.
The value (provided not INDETERMINATE) of this type is wrapped in the object.
If value is INDETERMINATE, then null is returned.
getDeclaredType()
,
getActualJavaType()
public int getActualJavaType()
Value
. The specific constants indicating
the supported data types are as follows:
getDeclaredType()
,
getActualType()
public int getInteger() throws SdaiException
SdaiException
public double getDouble() throws SdaiException
SdaiException
public java.lang.String getString() throws SdaiException
SdaiException
public int getLogical() throws SdaiException
SdaiException
public int getBoolean() throws SdaiException
SdaiException
public int getEnumeration() throws SdaiException
SdaiException
public Binary getBinary() throws SdaiException
SdaiException
public void checkRedefine(CEntity inst, jsdai.dictionary.EAttribute attr) throws SdaiException
inst
- given entity instance.attr
- the attribute to be checked.
SdaiException
public A_integer getIntegerAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_integer getIntegerAggregate() throws SdaiException
SdaiException
public A_double getDoubleAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_double getDoubleAggregate() throws SdaiException
SdaiException
public A_string getStringAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_string getStringAggregate() throws SdaiException
SdaiException
public A_enumeration getLogicalAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_enumeration getLogicalAggregate() throws SdaiException
SdaiException
public A_boolean getBooleanAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_boolean getBooleanAggregate() throws SdaiException
SdaiException
public A_enumeration getEnumerationAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_enumeration getEnumerationAggregate() throws SdaiException
SdaiException
public A_binary getBinaryAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public A_binary getBinaryAggregate() throws SdaiException
SdaiException
public Aggregate getInstanceAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aggregate getInstanceAggregate() throws SdaiException
SdaiException
public Aggregate getMixedAggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aggregate getMixedAggregate() throws SdaiException
SdaiException
public Aa_integer getInteger2Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aa_integer getInteger2Aggregate() throws SdaiException
SdaiException
public Aa_double getDouble2Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aa_double getDouble2Aggregate() throws SdaiException
SdaiException
public Aa_string getString2Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aa_string getString2Aggregate() throws SdaiException
SdaiException
public Aa_integer getLogical2Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aa_integer getLogical2Aggregate() throws SdaiException
SdaiException
public Aa_boolean getBoolean2Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aa_boolean getBoolean2Aggregate() throws SdaiException
SdaiException
public Aa_enumeration getEnumeration2Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aa_enumeration getEnumeration2Aggregate() throws SdaiException
SdaiException
public Aaa_double getDouble3Aggregate(EEntity owner) throws SdaiException
This method is used when dealing with Express expressions. It is invoked in Express compiler generated classes.
owner
- the entity instance owning the returned aggregate.
SdaiException
- SY_ERR, underlying system error.public Aaa_double getDouble3Aggregate() throws SdaiException
SdaiException
public static Value alloc()
public static Value alloc(jsdai.dictionary.EData_type type)
type
- data type values of which (or of which specializations) are allowed
to be described by the created object of this class.
alloc(Value)
,
init(EData_type)
public static Value alloc(Value v)
v
- an object of Value
the data type attached to which
is borrowed to specify values which are allowed to be described by the
created object of this class.
alloc(EData_type)
public EEntity getInstance() throws SdaiException
SdaiException
public Value init(jsdai.dictionary.EData_type type)
type
- data type values of which (or of which specializations) are allowed
to be described by this object of Value
.
alloc(EData_type)
public Value initAggregate(jsdai.dictionary.EAggregation_type type, EEntity owner) throws SdaiException
type
- aggregation type specifying aggregates which are allowed
to be described by this object of Value
.owner
- the instance (if null, then none) owning the aggregate wrapped.
SdaiException
public Value initAggregateMember(int index, jsdai.dictionary.EAggregation_type type) throws SdaiException
Value
to wrap values of the
specified aggregation type.
index
- the index for the member of interest within the aggregate wrapped.type
- aggregation type specifying aggregates which are allowed
to be in the role of the member of the aggregate at the specified position.
SdaiException
public Value create() throws SdaiException
Value
with empty aggregate wrapped.
SdaiException
- SY_ERR, underlying system error.public int getMemberCount() throws SdaiException
SdaiException
- SY_ERR, underlying system error.public Value getByIndex(int index) throws SdaiException
Value
) of the member at the specified index
position in an aggregate wrapped in an object of this class. Indexing starts from 1.
index
- the index or position from which the value is asked.
SdaiException
- SY_ERR, underlying system error.public Value getAttribute(jsdai.dictionary.EAttribute attr) throws SdaiException
attr
- an attribute the value of which is asked.
SdaiException
- AT_NDEF, attribute not defined.
SdaiException
- SY_ERR, underlying system error.public Value getAttribute(jsdai.dictionary.EAttribute attr, SdaiContext context) throws SdaiException
attr
- an attribute the value of which is asked.context
- context in which the value of the attribute is calculated
(provided this attribute is a derived one).
SdaiException
- AT_NDEF, attribute not defined.
SdaiException
- SY_ERR, underlying system error.public Value getAttribute(java.lang.String attrName, SdaiContext context) throws SdaiException
attrName
- the name of an attribute the value of which is asked.context
- context in which the value of the attribute is calculated
(provided this attribute is a derived one).
SdaiException
- AT_NDEF, attribute not defined.
SdaiException
- SY_ERR, underlying system error.public Value setAttribute(jsdai.dictionary.EExplicit_attribute attr, Value val) throws SdaiException
Value
.
attr
- an attribute the value to which is assigned.val
- the value to be assigned.
SdaiException
- AT_NDEF, attribute not defined.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value check(SdaiContext context, jsdai.dictionary.EData_type type) throws SdaiException
context
- context in which the value is checked.type
- data type against which the value is checked.
SdaiException
- SY_ERR, underlying system error.public Value check_selection(SdaiContext context, jsdai.dictionary.EData_type type) throws SdaiException
context
- context in which the value is checked.type
- data type against which the value is checked.
SdaiException
- SY_ERR, underlying system error.public Value set(SdaiContext context, Value val) throws SdaiException
Value
submitted
as a method's second parameter to the current object of this class provided
the value to be written conforms to the data type declared, using,
for example, alloc(EData_type)
method,
in the current object.
context
- context in which the value is checked for conformance.val
- the value to be written.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.set(SdaiContext, Object)
,
set(Value)
public Value set(Value val) throws SdaiException
Value
submitted
as a method's parameter to the current object of this class without
checking whether the value to be written conforms to the data type
declared for the current Value
object. Upon termination of the method's
run the declared and actual data types of the latter become equivalent to those of the
supplied parameter.
This method is used in special cases when dealing with Express functions. It is invoked in Express compiler generated classes.
val
- the value to be written.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.set(SdaiContext, Value)
,
set(SdaiContext, Object)
public Value set(SdaiContext context, java.lang.Object val) throws SdaiException
alloc(EData_type)
method,
in the current object.
context
- context in which the value is checked for conformance.val
- the value to be written.
SdaiException
- SY_ERR, underlying system error.set(SdaiContext, Value)
,
set(Value)
public Value set(SdaiContext context, int val) throws SdaiException
Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value set(SdaiContext context, double val) throws SdaiException
Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value set(SdaiContext context, java.lang.String val) throws SdaiException
null
as an unset value is also allowed.
The value is checked against the data type attached to
this object of class Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value set(SdaiContext context, java.lang.String val, java.lang.String schema_name) throws SdaiException
null
as an unset value is also allowed.
The value is checked against the data type attached to
this object of class Value
.
This method also stores the name of the schema in which
the string (for example, the name of an entity data type) is defined.
The method is invoked in compiler generated code implementing Express expressions.
context
- an object of type SdaiContext
.val
- string value to be assigned.schema_name
- the name of the schema.
SdaiException
- VT_NVLD, value type invalid.public Value setLB(SdaiContext context, int val) throws SdaiException
Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VT_NVLD, value type invalid.setLB(SdaiContext, Value)
public Value setLB(SdaiContext context, Value val) throws SdaiException
Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VA_NVLD, value invalid.
SdaiException
- VT_NVLD, value type invalid.setLB(SdaiContext, int)
public Value setEnum(SdaiContext context, java.lang.String val) throws SdaiException
null
as an unset value is also allowed.
The value is checked against the data type attached to
this object of class Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value set(SdaiContext context, Binary val) throws SdaiException
null
as an unset value is also allowed.
The value is checked against the data type attached to
this object of class Value
.
context
- context in which the value is checked for conformance.val
- the value to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value set(SdaiContext context, EEntity val) throws SdaiException
null
as an unset value is also allowed.
The entity definition of the instance is checked against the data type
attached to this object of class Value
.
context
- context in which the value is checked for conformance.val
- the entity instance to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value set(SdaiContext context, Aggregate aggr) throws SdaiException
null
as an unset value is also allowed.
The aggregation type of the aggregate submitted is checked against the data
type attached to this object of class Value
.
context
- context in which the value is checked for conformance.aggr
- the aggregate to be assigned.
SdaiException
- VT_NVLD, value type invalid.public Value setInstancesAggregate(SdaiContext context, AEntity aggr) throws SdaiException
null
as an unset value is also allowed.
The aggregation type of the aggregate submitted is checked against the data
type attached to this object of class Value
.
context
- context in which the value is checked for conformance.aggr
- the aggregate to be assigned.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value unset()
public Value indexing(Value index1, Value index2) throws SdaiException
Aggregate indexing
, String indexing
and
Binary indexing
operators of Express language.
An aggregate or string or binary, depending on the operator, is given
by the current object of type Value
, while indices are given by
objects of type Value
submitted through parameters.
For Aggregate indexing
, the member of the aggregate at the
position specified by the first method's parameter is returned. The second
parameter is ignored.
For String indexing
and Binary indexing
, the
sequence of characters or, respectively, bits at position index1
through index2
inclusive is taken as a result.
The value to be returned is wrapped in a newly created object of this class.
index1
- index of the aggregate member asked or position of the first
character or bit in the case of string and, respectively, binary indexing.index2
- position of the last character or bit in string and,
respectively, binary indexing.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.indexing(int, int)
public Value indexing(int index1, int index2) throws SdaiException
Aggregate indexing
, String indexing
and
Binary indexing
operators of Express language.
An aggregate or string or binary, depending on the operator, is given
by the current object of type Value
.
For Aggregate indexing
, the member of the aggregate at the
position specified by the first method's parameter is returned. The second
parameter is ignored.
For String indexing
and Binary indexing
, the
sequence of characters or, respectively, bits at position index1
through index2
inclusive is taken as a result.
The value to be returned is wrapped in a newly created object of this class.
index1
- index of the aggregate member asked or position of the first
character or bit in the case of string and, respectively, binary indexing.index2
- position of the last character or bit in string and,
respectively, binary indexing.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.indexing(Value, Value)
public Value replaceRange(Value index1, Value index2, Value repl) throws SdaiException
Value
, while indices are given by
objects of type Value
submitted through the first two parameters.
The value of the expression to the right of the assignment statement
is submitted through the last parameter. This value replaces the
elements originally between specified indices (inclusively).
For example, the result of the expression 'max_noteq_sat'[4:10] := '2' is 'max2sat'.
The result of the statement execution is wrapped into the current object of this class.
If the type of the data represented by this object differs from
STRING and BINARY, then the method ignores the last parameter and
makes a call to indexing(Value, Value)
.
index1
- index of the first element of STRING or BINARY to be replaced.index2
- index of the last element of STRING or BINARY to be replaced.repl
- value which replaces the specified part of STRING or BINARY.
Value
wrapping the result of the replacement operation.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.replaceRange(int, int, Value)
public Value replaceRange(int index1, int index2, Value repl) throws SdaiException
Value
, while indices are given by
the first two parameters.
The value of the expression to the right of the assignment statement
is submitted through the last parameter. This value replaces the
elements originally between specified indices (inclusively).
For example, the result of the expression 'max_noteq_sat'[4:10] := '2' is 'max2sat'.
The result of the statement execution is wrapped into the current object of this class.
If the type of the data represented by this object differs from
STRING and BINARY, then the method ignores the last parameter and
makes a call to indexing(int, int)
.
index1
- index of the first element of STRING or BINARY to be replaced.index2
- index of the last element of STRING or BINARY to be replaced.repl
- value which replaces the specified part of STRING or BINARY.
Value
wrapping the result of the replacement operation.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.replaceRange(Value, Value, Value)
public Value inc(Value delta) throws SdaiException
delta
- positive integer value (given by an object of type Value
) by
which a wrapped integer is enlarged.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.inc(jsdai.lang.Value)
public Value inc() throws SdaiException
SdaiException
- SY_ERR, underlying system error.inc(Value)
public Value dec(Value delta) throws SdaiException
delta
- positive integer value (given by an object of type Value
) by
which a wrapped integer is diminished.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.dec(jsdai.lang.Value)
public Value dec() throws SdaiException
SdaiException
- SY_ERR, underlying system error.dec(Value)
public boolean getAsBoolean() throws SdaiException
true
,
if FALSE or UNKNOWN (integer values 1 and 3, respectively), then
false
is returned.
This method is disallowed for data types different than LOGICAL
and BOOLEAN.
SdaiException
- VT_NVLD, value type invalid.public void addMember(SdaiContext context, Value val) throws SdaiException
context
- context in which the new member is checked for conformance.val
- an element (wrapped in an object of type Value
) to
be added.
SdaiException
- VT_NVLD, value type invalid.public void setMember(SdaiContext context, Value val, int index) throws SdaiException
context
- context in which the new value is checked for conformance.val
- a value (wrapped in an object of type Value
) to
be set.index
- a position for the member whose value is set.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.public Value addOrUnionOrConcatenate(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted through the parameters of the method.
The allowed types of the operands and the type of the result
for each of the above operators are defined in "ISO 10303-11".
If any operand is indeterminate, then as a result of the operator unset
value is taken. The result of an operator is stored in the current
object of this class.
context
- context in which an operation is performed.val1
- the first operand of an operator: of numeric type in the case
of addition; an aggregate or a new element in the case of union; string or
binary in the case of string and binary concatenation, respectively.val2
- the second operand of an operator (of the same type definition
as for the first one).
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value bagToSet(SdaiContext context, Value bag) throws SdaiException
Value
.
If such value for BAG is Express INDETERMINATE, then this method
returns INDETERMINATE.
context
- context in which an operation is performed.bag
- the bag to be converted to a set.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value unionEnlarge(Value val, SdaiContext context) throws SdaiException
Value
. The aggregate is represented by this Value
object, whereas the element being added by the first parameter submitted to the method.
If any operand is indeterminate, then as a result of the operation indeterminate
value is returned.
val
- the element to be added to the aggregate.context
- context in which operation is performed.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value negation(Value val) throws SdaiException
Value
submitted through the parameter of the method.
The result is stored in the current object of this class.
The allowed types of the operand are NUMBER, INTEGER and REAL.
If the operand is indeterminate, then as a result of the operator unset
value is taken.
val
- the number whose sign has to be changed.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value substractOrDifference(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method. The allowed types of the
operands and the type of the result for
each of above two operators are defined in "ISO 10303-11". If any operand is
indeterminate, then as a result of the operator unset value is taken.
The result of an operator is stored in the current object of this class.
context
- context in which an operation is performed.val1
- the first operand of an operator: of numeric type in the case
of subtraction; SET or BAG in the case of difference.val2
- the second operand of an operator: of numeric type in the case
of subtraction; SET, BAG or a new element in the case of difference.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value mulOrIntersect(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method. The allowed types of the operands
and the type of the result for each of above two operators are defined in
"ISO 10303-11". If any operand is indeterminate, then as a result of the
operator unset value is taken.
The result of an operator is stored in the current object of this class.
context
- context in which an operation is performed.val1
- the first operand of an operator: of numeric type in the case
of multiplication; SET or BAG in the case of intersection.val2
- the second operand of an operator (of the same type definition
as for the first one).
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value divide(SdaiContext context, Value numerator, Value denominator) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are NUMBER, INTEGER and REAL.
If any operand is indeterminate, then as a result of the operator unset
value is taken.
The result of the operator is stored in the current object of this class.
context
- context in which the operation is performed.numerator
- the numerator in the real division expression.denominator
- the denominator in the real division expression.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value exponent(SdaiContext context, Value base, Value power) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are NUMBER, INTEGER and REAL.
If any operand is indeterminate, then as a result of the operator unset
value is taken.
The result of the operator is stored in the current object of this class.
context
- context in which the operation is performed.base
- the base in the exponentiation expression.power
- the power in the exponentiation expression.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value DIV(SdaiContext context, Value numerator, Value denominator) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are NUMBER, INTEGER and REAL.
If any operand is indeterminate, then as a result of the operator unset
value is taken.
The result of the operator is stored in the current object of this class.
context
- context in which the operation is performed.numerator
- the numerator in the integer division expression.denominator
- the denominator in the integer division expression.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value MOD(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are NUMBER, INTEGER and REAL.
If any operand is indeterminate, then as a result of the operator unset
value is taken.
The result of the operator is stored in the current object of this class.
context
- context in which the operation is performed.val1
- the first operand in the modulo expression.val2
- the second operand in the modulo expression.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public static int equalInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of a value comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.equal(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public Value equal(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of a value comparison operator shall be data type compatible.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.equalInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public static int nequalInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of a value comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.nequal(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public Value nequal(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of a value comparison operator shall be data type compatible.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.nequalInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public static int greaterInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration.
The two operands of a value comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.greater(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public Value greater(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration.
The two operands of a value comparison operator shall be data type compatible.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.greaterInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public static int lessInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration.
The two operands of a value comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.less(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public Value less(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration.
The two operands of a value comparison operator shall be data type compatible.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.lessInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public static int gequalInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration.
The two operands of a value comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.gequal(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public Value gequalOrSuperset(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration in the case of value comparison and Express SET or BAG
in the case of superset operator.
The operands shall be of compatible types.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first operand.val2
- the second operand.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.gequalInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators",
"ISO 10303-11::12.6.6 Superset operator"public Value gequal(SdaiContext context, Value val1, Value val2) throws SdaiException
gequalOrSuperset
method.
SdaiException
public static int lequalInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration.
The two operands of a value comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.lequal(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators"public Value lequalOrSubset(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary
and enumeration in the case of value comparison and Express SET or BAG
in the case of subset operator.
The operands shall be of compatible types.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first operand.val2
- the second operand.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.lequalInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.1 Value comparison operators",
"ISO 10303-11::12.6.5 Subset operator"public Value lequal(SdaiContext context, Value val1, Value val2) throws SdaiException
lequalOrSubset
method.
SdaiException
public static int instanceEqualInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of an instance comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.instanceEqual(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.2 Instance comparison operators"public Value instanceEqual(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of an instance comparison operator shall be data type compatible.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.instanceEqualInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.2 Instance comparison operators"public static int instanceNotEqualInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of an instance comparison operator shall be data type compatible.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.instanceNotEqual(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.2 Instance comparison operators"public Value instanceNotEqual(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The allowed types of the operands are numeric, logical, string, binary,
enumeration, aggregate and entity data types.
The two operands of an instance comparison operator shall be data type compatible.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the first value to be compared.val2
- the second value to be compared.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.instanceNotEqualInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.2 Instance comparison operators"public static int INInt(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The right-hand operand shall be a value of an aggregation data type.
The left-hand operand shall be compatible with the base type of this
aggregation type.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the left-hand operand (an element to be tested for membership
in an aggregate submitted through the second parameter).val2
- the right-hand operand (aggregate value).
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.IN(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.3 Membership operator"public Value IN(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The right-hand operand shall be a value of an aggregation data type.
The left-hand operand shall be compatible with the base type of this
aggregation type.
The result evaluates to the logical value represented by the current object
of type Value
.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the left-hand operand (an element to be tested for membership
in an aggregate submitted through the second parameter).val2
- the right-hand operand (aggregate value).
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.INInt(jsdai.lang.SdaiContext, jsdai.lang.Value, jsdai.lang.Value)
,
"ISO 10303-11::12.2.3 Membership operator"public Value LIKE(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The left-hand operand (first parameter) is the target string,
whereas the right-hand operand (second parameter) is the pattern string.
If either operand evaluates to indeterminate, then as a result of
the operator unset value is taken.
context
- context in which the operation is performed.val1
- the target string.val2
- the pattern string.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value subbinary(Value val, int index1, int index2) throws SdaiException
Value
submitted
through the first parameter of the method.
The indices specifying a sequence of bits to be returned shall be supplied
explicitly as positive integers.
If either of the indices evaluates to indeterminate, then as a result of
the operator unset value is taken.
val
- the binary value.index1
- position of the first bit in the binary value being indexed.index2
- position of the last bit in the binary value being indexed.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value AND(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The result evaluates to the logical value represented by the current object
of type Value
.
If either of the operands evaluates to indeterminate, that operand is
dealt with as if it were logical value UNKNOWN.
context
- context in which the operation is performed.val1
- the first logical operand.val2
- the second logical operand.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value OR(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The result evaluates to the logical value represented by the current object
of type Value
.
If either of the operands evaluates to indeterminate, that operand is
dealt with as if it were logical value UNKNOWN.
context
- context in which the operation is performed.val1
- the first logical operand.val2
- the second logical operand.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value XOR(SdaiContext context, Value val1, Value val2) throws SdaiException
Value
submitted
through the parameters of the method.
The result evaluates to the logical value represented by the current object
of type Value
.
If either of the operands evaluates to indeterminate, that operand is
dealt with as if it were logical value UNKNOWN.
context
- context in which the operation is performed.val1
- the first logical operand.val2
- the second logical operand.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value NOT(Value val) throws SdaiException
Value
submitted
through the parameter of the method.
The result evaluates to the logical value represented by the current object
of type Value
.
If the operand evaluates to indeterminate, it is dealt with as if
it were logical value UNKNOWN.
val
- the logical operand.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public Value substring(Value val, int index1, int index2) throws SdaiException
Value
submitted
through the first parameter of the method.
The indices specifying a sequence of characters to be returned shall be supplied
explicitly as positive integers.
If either of the indices evaluates to indeterminate, then as a result of
the operator unset value is taken.
val
- the string value.index1
- position of the first character in the string being indexed.index2
- position of the last character in the string being indexed.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.substring(Value, int)
,
"ISO 10303-11::12.5.1 String indexing"public Value substring(Value val, int index) throws SdaiException
Value
submitted
through the first parameter of the method.
The index specifying a character asked shall be supplied explicitly as
a positive integer.
If this index evaluates to indeterminate, then as a result of
the operator unset value is taken.
val
- the string value.index
- position of the character asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.substring(Value, int, int)
,
"ISO 10303-11::12.5.1 String indexing"public Value addComplex(Value val) throws SdaiException
Value
submitted through the parameter
of the method.
This method is related to an implementation of complex entity instance
construction operator of Express language.
val
- partial complex entity value.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value groupReference(SdaiContext context, jsdai.dictionary.EEntity_definition edef) throws SdaiException
Value
.
The method is related to an implementation of group references
operator of Express language.
context
- context in which the operation is performed.edef
- simple entity data type of which a partial complex entity value
is asked.
SdaiException
- SY_ERR, underlying system error.groupReference(SdaiContext, Class)
,
"ISO 10303-11::12.7.4 Group references"public Value groupReference(SdaiContext context, java.lang.Class provided_class) throws SdaiException
Value
.
The method is related to an implementation of group references
operator of Express language.
context
- context in which the operation is performed.provided_class
- Java class for the simple entity data type of which
a partial complex entity value is asked.
SdaiException
- SY_ERR, underlying system error.groupReference(SdaiContext, EEntity_definition)
,
"ISO 10303-11::12.7.4 Group references"public Value addParameter(Value val) throws SdaiException
val
- value of an attribute of the simple entity data type.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value makeInstance(SdaiContext context) throws SdaiException
Value
.
The parameter of the method is used to get an SdaiModel
to make it owning for the instance created.
The method is related to an implementation of complex entity instance
construction operator of Express language.
context
- an object of type SdaiContext
.
SdaiException
- SY_ERR, underlying system error.public Value abs(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- the number the absolute value of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value aCos(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a cosine the angle of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value aSin(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a sine the angle of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value aTan(Value val1, Value val2) throws SdaiException
Value
submitted to the method. If either of the parameters is
indeterminate, then as a result of the function unset value is taken.
val1
- numerator in the ratio specifying tangent the angle of which is asked.val2
- denominator in the ratio specifying tangent the angle of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value bLength(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- binary the number of bits in which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value cos(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an angle the cosine of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value exists(Value val) throws SdaiException
Value
submitted to the method.
val
- a variable or the result of an expression of any type.
SdaiException
- VA_NEXS, value does not exist (since JSDAI 4.1.0).public Value exp(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- the power of the exponent.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value format(Value number, Value form_str) throws SdaiException
Value
submitted to the method.
If either of the parameters is indeterminate, then as a result of the
function unset value is taken.
number
- an integer or real number to be formatted.form_str
- a string containing formatting commands.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value hiBound(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an aggregate the upper index (if ARRAY) or upper bound
(if BAG, LIST or SET) of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value hiIndex(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an aggregate the upper index (if ARRAY) or the number of elements
(if BAG, LIST or SET) of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value length(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a string the the number of characters in which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value loBound(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an aggregate the lower index (if ARRAY) or lower bound
(if BAG, LIST or SET) of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value log(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a number the natural logarithm of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value log2(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a number the base two logarithm of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value log10(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a number the base ten logarithm of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value loIndex(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an aggregate the lower index (if ARRAY) of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value NVL(SdaiContext context, Value val, Value substitute) throws SdaiException
Value
submitted to the method. If both parameters are
indeterminate, then as a result of the function unset value is taken.
context
- context in which the function is considered.val
- the main input value (which is returned by the function provided this value exists).substitute
- an alternate value (which is returned if the main value is unset).
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value odd(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function UNKNOWN value is returned.
val
- a number which is checked whether it is odd.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value rolesOf(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an entity instance the names of the roles played by which are asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value sin(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an angle the sine of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value sizeOf(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then indeterminate value of size is returned.
val
- an aggregate the number of elements of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.sizeOfExt(jsdai.lang.SdaiContext, jsdai.lang.Value)
,
sizeOfExt0(jsdai.lang.SdaiContext, jsdai.lang.Value)
,
"ISO 10303-11::15.22 SizeOf - aggregate function"public Value sizeOfExt(SdaiContext context, Value val) throws SdaiException
Value
submitted to the method as the second parameter.
If this parameter is indeterminate, then indeterminate value of size is returned.
Through the context
parameter, this method transfers some
data to the where rule validation methods.
context
- context in which the function is considered.val
- an aggregate the number of elements of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.sizeOf(jsdai.lang.Value)
,
sizeOfExt0(jsdai.lang.SdaiContext, jsdai.lang.Value)
,
"ISO 10303-11::15.22 SizeOf - aggregate function"public Value sizeOfExt0(SdaiContext context, Value val) throws SdaiException
Value
submitted to the method as the second parameter.
If this parameter is indeterminate, then indeterminate value of size is returned.
Through the context
parameter, this method transfers some
data to the where rule validation methods.
context
- context in which the function is considered.val
- an aggregate the number of elements of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.sizeOf(jsdai.lang.Value)
,
sizeOfExt(jsdai.lang.SdaiContext, jsdai.lang.Value)
,
"ISO 10303-11::15.22 SizeOf - aggregate function"public Value sqrt(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a number the non-negative square root of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value tan(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- an angle the tangent of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public A_string typeOf(SdaiContext context) throws SdaiException
context
- context in which the function is considered.
SdaiException
- SY_ERR, underlying system error.typeOfV(jsdai.lang.SdaiContext)
,
"ISO 10303-11::15.25 TypeOf - general function"public Value typeOfV(SdaiContext context) throws SdaiException
Value
.
If the parameter is indeterminate, then as a result of the function an
empty list is returned.
context
- context in which the function is considered.
SdaiException
- SY_ERR, underlying system error.typeOf(jsdai.lang.SdaiContext)
,
"ISO 10303-11::15.25 TypeOf - general function"public Value usedIn(Value instance, Value role) throws SdaiException
Value
submitted to the method.
If either of the parameters is indeterminate, then as a result of the function
unset value is taken.
instance
- an entity instance the usage of which is reported.role
- the name of the attribute playing the role in which the specified
instance is used.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value value(Value val) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function unset value is taken.
val
- a string the numeric representation of which is asked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value value_in(SdaiContext context, Value aggr, Value el) throws SdaiException
Value
submitted to the method.
If either of the parameters is indeterminate, then as a result of the function
UNKNOWN value is returned.
context
- context in which the function is considered.aggr
- an aggregate.el
- a value whose membership to the specified aggregate is checked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public Value value_unique(SdaiContext context, Value aggr) throws SdaiException
Value
submitted to the method. If the parameter is
indeterminate, then as a result of the function UNKNOWN value is returned.
context
- context in which the function is considered.aggr
- an aggregate the uniqueness of which elements is checked.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.public void insert(SdaiContext context, Value val, Value index) throws SdaiException
Value
submitted to the method.
The aggregate itself (of Express type LIST OF GENERIC) is represented by the
current object of Value
class.
context
- context in which the procedure is considered.val
- an element to be inserted into the list.index
- an integer giving the position in the list at which the specified
element is to be inserted.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.insert(SdaiContext, Value, Value, Value)
,
"ISO 10303-11::16.1 Insert"public void insert(SdaiContext context, Value list, Value new_member, Value index) throws SdaiException
Value
submitted to the method.
The aggregate itself (of Express type LIST OF GENERIC) is also represented by the
object of Value
class identified as the second parameter of the method.
context
- context in which the procedure is considered.list
- a list into which the element is to be inserted.new_member
- an element to be inserted into the list.index
- an integer giving the position in the list at which the specified
element is to be inserted.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.insert(SdaiContext, Value, Value)
,
"ISO 10303-11::16.1 Insert"public void remove(Value index) throws SdaiException
Value
submitted to the method.
The aggregate itself (of Express type LIST OF GENERIC) is represented by the
current object of Value
class.
index
- an integer giving a position of an element in the list
to be removed.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.remove(Value, Value)
,
"ISO 10303-11::16.2 Remove"public void remove(Value list, Value index) throws SdaiException
Value
submitted to the method.
The aggregate itself (of Express type LIST OF GENERIC) is also represented by the
object of Value
class identified as the first parameter of the method.
list
- a list from which the element has to be removed.index
- an integer giving a position of an element in the list
to be removed.
SdaiException
- VA_NEXS, value does not exist.
SdaiException
- SY_ERR, underlying system error.remove(Value)
,
"ISO 10303-11::16.2 Remove"public boolean isIndeterminate() throws SdaiException
true
if and only if the current object of
Value
class wraps Express indeterminate value ("?").
true
if current Value
represents Express "?",
and false
otherwise.
SdaiException
public Value replaceByAlreadyExistingAndDelete(SdaiContext _context, java.lang.Class entity_extent, SdaiModel entity_model) throws SdaiException
SdaiModel
. If such an entity instance is found, then the
submitted instance is deleted and the found instance is returned.
Otherwise, the replacement operation is not performed, and the method returns
the submitted entity instance.
The input entity instance is wrapped in the current object of Value
.
entity_extent
- Java class for the entity of which instances are searched.entity_model
- SdaiModel
whose content is searched.
SdaiException
- MX_NRW, SDAI-model access not read-write.
SdaiException
- EI_NEXS, entity instance does not exist.
SdaiException
- SY_ERR, underlying system error.public Value unnest() throws SdaiException
SdaiException
- SY_ERR, underlying system error.public Value extent(SdaiContext context, Value data_type) throws SdaiException
Value
submitted to the method.
The resulting aggregate (of Express type SET OF GENERIC) is represented by the
current object of Value
class.
context
- context in which the function is considered.data_type
- the string representing the name of an entity data type.
SdaiException
- VT_NVLD, value type invalid.
SdaiException
- SY_ERR, underlying system error.public java.lang.String toString()
String
.
Value
class.
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |