Skip to content

Latest commit

 

History

History
197 lines (142 loc) · 3.55 KB

variables.rst

File metadata and controls

197 lines (142 loc) · 3.55 KB

Item Variables

This module contains the basic run-time data model. Although the specification does contain elements to represent the values of variables set at runtime the XML schema sometimes relies too much on context for an efficient implementation. For example, a <value> element is always a value of a specific base type but the base type is rarely specified on the value element itself as it is normally implicit in the context. such as a variable declaration.

Although the expression model does contain an element that provides a more complete representation of single values (namely <baseValue>) we decide to make the distinction in this module with :pyValueElement representing the element and the abstract :pyValue being used as the root of the runtime object model.

For example, to get the default value of a variable from a variable declaration you'll use the :py~VariableDeclaration.GetDefaultValue method and it will return a :pyValue instance which could be of any cardinality or base type.

VariableDeclaration

ValueElement

DefaultValue

Cardinality

BaseType

Mapping

MapEntry

Response Variables

ResponseDeclaration

CorrectResponse

AreaMapping

AreaMapEntry

Outcome Variables

OutcomeDeclaration

LookupTable

MatchTable

MatchTableEntry

InterpolationTable

InterpolationTableEntry

Template Variables

TemplateDeclaration

Runtime Object Model

SessionState

ItemSessionState

TestSessionState

Value

SingleValue

BooleanValue

DirectedPairValue

DurationValue

FileValue

FloatValue

IdentifierValue

IntegerValue

PairValue

PointValue

StringValue

URIValue

Container

OrderedContainer

MultipleContainer

RecordContainer