Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: creating_arrays

...

Table Filter
inversefalse,false,false,false
sparkNameSparkline
sortChapter ⇧,Name ⇧
separatorPoint (.)
labels‚‚‚
default,,,
cell-width,,,
userfilterChapter,Name,Excerpt
datepatterndd M yy
globalFiltertrue
id1657783173003_-1404199188
worklog5|8|w d h m|w d h m
isORAND
order0,1,2,3


ChapterNameExcerptUsage
Array Operationsarrays_of_arrays


Multiexcerpt
MultiExcerptNamearrays_of_arrays
shouldDisplayInlineCommentsInIncludesfalse

Arrays of arrays are not supported by the Designer.


  • Array Operations
Array Operationscreating_arrays


Multiexcerpt
MultiExcerptNamecreating_arrays

You can create arrays using the create statement (see action script example below):

Code Block
none
none
create anArray;
append "Hello World!" to anArray;

Most of the time the xUML Runtime will create the array implicitly on appending the first item. There is one exception to this rule, though: Arrays that contain array elements having a complex type with multiplicity.
Let's assume you have an array of complex type ArrayElement and this complex type has a property subArray with multiplicity 0..*.

  • What you can do, if subArray is NULL:

    Code Block
    set array1[0].subArray = anotherArray;

    The reference subArray is changed to point to anotherArray.

  • What you can't do, if subArray is NULL:

    Code Block
    append "something" to array1[0].subArray;

    In this case (get statement on the right side of a statement), the Runtime will throw a get error for array1[0].subArray.


  • Array Operations
Blob Operationsblob_definition


Multiexcerpt
MultiExcerptNameblob_definition
shouldDisplayInlineCommentsInIncludesfalse

A blob represents base64-encoded arbitrary binary data.


  • Available Base Types
DateTime Operationscalculate_dates


Multiexcerpt
MultiExcerptNamecalculate_dates
shouldDisplayInlineCommentsInIncludesfalse

This is calculated e.g. as follows:

  1. 31.01.2017 + 1 month = 31.02.2017
  2. The resulting date 31.02.2017 is normalized to 03.03.2017.


DateTime Operationstimeticks


Multiexcerpt
MultiExcerptNametimeticks
shouldDisplayInlineCommentsInIncludesfalse

Within this context TimeTicks are UNIX timestamps.
Unix time, or POSIX time, is a system for describing points in time: it is the number of seconds elapsed since midnight UTC of January 1, 1970, not counting leap seconds. It is widely used not only on Unix-like operating systems but also in many other computing systems.


Integer Operationsboolean_definition


Multiexcerpt
MultiExcerptNameboolean_definition
shouldDisplayInlineCommentsInIncludesfalse

Boolean values represent binary-valued logic (true, false).


  • Available Base Types
Integer Operationsdatetime_definition


Multiexcerpt
MultiExcerptNamedatetime_definition
shouldDisplayInlineCommentsInIncludesfalse

CCYY-MM-DDThh:mm:ss[.sss] [Z|[+|-]hh:mm]

Whereas "Z" stands for the time zone: Coordinated Universal Time (UTC). The W3C value space of DateTime is closely related to the dates and times described in ISO 8601.


  • Available Base Types
Integer Operationsfloat_definition


Multiexcerpt
MultiExcerptNamefloat_definition
shouldDisplayInlineCommentsInIncludesfalse

A float corresponds to the IEEE single-precision 32-bit floating-point type.

Lexical representation: [white spaces] [+|-][nnn][.nnn][e|E[+|-]nnn] (where white spaces are any tab or space character; nnn may be any number of digits)


  • Available Base Types
Integer Operationsinteger_definition


Multiexcerpt
MultiExcerptNameinteger_definition
shouldDisplayInlineCommentsInIncludesfalse

The W3C defines integers as "decimal", which represents arbitrary precision decimal numbers.


  • Available Base Types
  • Integer Operations
Integer Operationsstring_definition


Multiexcerpt
MultiExcerptNamestring_definition
shouldDisplayInlineCommentsInIncludesfalse

A string is a set of finite-length sequences of a character set (the Bridge uses UTF-8 internally).


  • Available Base Types


...