OntoDL Statement: set: Unterschied zwischen den Versionen

Aus CTS2-LE
Zur Navigation springen Zur Suche springen
(Syntax)
(Syntax)
Zeile 1: Zeile 1:
 
== Syntax ==
 
== Syntax ==
<hr><font face="courier">
+
<font face="courier">
{|border="0"
+
{|border="0"  
| ''SetStatement''  
+
|- style="vertical-align:top"
| :=  
+
| style="width:10em" | ''SetStatement''  
| '''set''' [[OntoDL Syntax: InternalReference|''InternalReference'']] ''SetOperator'' ''CopyMode''? ''AssignedValue''
+
| style="width:3em"  | :=  
|-
+
| style="width:36em" |  '''set''' [[OntoDL Syntax: InternalReference|''InternalReference'']] ''SetOperator'' ''CopyMode''? ''AssignedValue''
 +
| style="width:1em" | &nbsp;
 +
|                      <font face="arial" size="2"> </font>
 +
|- style="vertical-align:top"
 
| ''AssignedValue''  
 
| ''AssignedValue''  
 
| :=  
 
| :=  
 
| [[OntoDL Syntax: InternalReference|''InternalReference'']]  
 
| [[OntoDL Syntax: InternalReference|''InternalReference'']]  
 +
|
 +
|
 
|-
 
|-
 
|
 
|
 
| style="text-align:right" | &#124;
 
| style="text-align:right" | &#124;
 
| '''=''' [[OntoDL Syntax: QualifiedConcept|''QualifiedConcept'']]
 
| '''=''' [[OntoDL Syntax: QualifiedConcept|''QualifiedConcept'']]
|-
+
|
 +
|
 +
|- style="vertical-align:top"
 
|
 
|
 
| style="text-align:right" | &#124;
 
| style="text-align:right" | &#124;
 
| '''=''' [[OntoDL Syntax: Text|''Text'']]  
 
| '''=''' [[OntoDL Syntax: Text|''Text'']]  
|-
+
|
 +
| <font face="arial" size="2"></font>
 +
|- style="vertical-align:top"
 
| ''SetOperator''  
 
| ''SetOperator''  
 
| :=  
 
| :=  
| &nbsp;&nbsp;'''=''' &#124; '''$=''' &#124; '''-=''' &#124; '''+=''' &#124; ''':='''
+
| &nbsp;'''=''' &#124; '''$=''' &#124; '''-=''' &#124; '''+=''' &#124; ''':='''
|-
 
 
|
 
|
| style="text-align:right" | &#124;
+
|<font face="arial" size="2">controls the behavior of the set-statement, e. g. if a collection shall be extended by the ''AssignedValue'' or if the ''AssignedValue'' shall replace the existing contents of the collection (see section below for details)</font>
| '''=''' [[OntoDL Syntax: Text|''Text'']]
+
 
|-
+
|- style="vertical-align:top"
 
| ''CopyMode''  
 
| ''CopyMode''  
 
| :=  
 
| :=  
| &nbsp;&nbsp;'''='''  
+
| &nbsp;'''='''  
 +
|
 +
| <font face="arial" size="2">signals that a full copy of the ''Assigned Value'' shall be created before assigning it to an object (see section below for details)</font>
 
|}
 
|}
 
</font>
 
</font>

Version vom 7. September 2016, 14:05 Uhr

Syntax

SetStatement := set InternalReference SetOperator CopyMode? AssignedValue  
AssignedValue := InternalReference
| = QualifiedConcept
| = Text
SetOperator := $= | -= | += | := controls the behavior of the set-statement, e. g. if a collection shall be extended by the AssignedValue or if the AssignedValue shall replace the existing contents of the collection (see section below for details)
CopyMode :=  = signals that a full copy of the Assigned Value shall be created before assigning it to an object (see section below for details)


Semantics of the set-operator

Operator Sematics a=string
b=string
a=object
b=object
a=empty collection a=collection
b=string
a=collection
b=object
$= String Concatenation ab error { b } {a1b, .. , anb} error