UIEvolutin Inc.
UJML Language Reference
Identifiers

Identifiers are names that represent things in your UJML code.

Identifiers are names given to things in UJML code when they are declared. You can refer to those things by their identifier in UJML code. Identifiers must be properly formatted UJML names. See Names. Any identifiers used in UJML scripting language statements and expressions cannot share a name with a UJML scripting language keyword. See Keywords

Many kinds of things may have identifiers in UJML; including variables, functions, templates, state machines and components. See Data, Using Functions, Components. Identifiers are used in UJML by including their name in an expression or a scripting statement within the proper scope. See Scope. Identifiers may be explicitly shared between applications and linked partitions. See Sharing, Linking Files.

Dot notation

Identifiers may be combined using a period in what is called 'dot notation' to refer to a member of an object. For example 'foo.bar'. In UJML this is used to access a function or variable of a state machine in the form 'StateMachineName.MemberName or a function of an component in the form 'ComponentName.FunctionName'. See Using Functions, State Machines, Components.

Topic 
Description 
Names are identifiers for variables, functions, templates, state machines and components
Scope is where identifiers are valid in your UJML code. 
Sharing extends the scope of identifiers to other modules. 

The following example shows how to declare a variable with the name 'mBooleanVar'; which is now the the identifier of this variable. It is part of the assignment.ujml sample.

<var name="mBooleanVar" type="boolean"/>

 

The following example shows how to call a function of a state machine using dot notation. It is part of the datetime.ujml sample.

Date.setDate(_x_utcCurrentDate());
Copyright (c) 2000-2007 UIEvolution, Inc. All rights reserved.
What do you think about this topic? Send feedback!