Engine for Web Applications

org.cote.js.token

Class Index

static org.cote.js.token.TokenStack

version

Static instance of TokenStackImpl.

This class participates in the engine library.

org.cote.js.token.TokenStackImpl

version

A class for storing stacks of variant values and filtering the stack by owner.

This class participates in the engine library.

Index

Object Index

Property Index

Method Index

Objects

Token

Internal object used to store the references that comprise a token.

Properties

Properties

enable_overstack

Allows Token objects to be overstacked, meaning that names do not have to be unique. Defaults to false. Property is private and should not be directly referenced.

Syntax

= object.enable_overstack

object.enable_overstack =

object_config

Object API structure for storing sub structures: object_config.pointers and object_config.status.

Syntax

object = object.object_config

object_id

Unique instance identifier.

Syntax

String = object.object_id

object_type

The type of this object.

Syntax

String = object.object_type

object_version

Version of the object class.

Syntax

String = object.object_version

ready_state

Object load and execution state. Follows: 0 unitialized, 1 through 3 variant, 4 ready, 5 destroyed.

Syntax

int = object.ready_state

Methods

addToken

Adds a token with the specified name and value for the specified owner.

Syntax

r = addToken( o, n, v, b )

Parameters

Returns

r as boolean: Bit indicating whether the token was added.

getObjectId

Returns the unique id of the object.

Syntax

i = getObjectId( )

Returns

i as String: The unique object instance id.

getObjectType

Returns the type of the object.

Syntax

t = getObjectType( )

Returns

t as String: The type of the object instance.

getObjectVersion

Returns the version of the object.

Syntax

v = getObjectVersion( )

Returns

v as String: The version of the object instance.

getPointers

Returns the object_config.pointers sub structure.

Syntax

o = getPointers( )

Returns

o as object: The object_config.pointers substructure.

getReadyState

Returns the state of the object.

Syntax

s = getReadyState( )

Returns

s as int: The object ready state.

getStatus

Returns the object_config.status sub structure.

Syntax

o = getStatus( )

Returns

o as object: The object_config.status substructure.

getToken

Returns the specified token.

Syntax

r = getToken( n, i )

Parameters

Returns

r as Token: The specified token object.

getTokenByOwner

Returns the specified token.

Syntax

r = getTokenByOwner( n, o )

Parameters

Returns

r as Token: The specified token object belonging to the specified owner.

getTokens

Returns an array of tokens that match the specified name.

Syntax

a = getTokens( n )

Parameters

Returns

a as array: Array of tokens that match the specified name.

getTokensByOwner

Returns all tokens for the specified owner.

Syntax

r = getTokensByOwner( o )

Parameters

Returns

r as array: Array of tokens belonging to the specified owner.

getTokenValue

Returns the value of the specified token.

Syntax

r = getTokenValue( n, i )

Parameters

Returns

r as variant: The value of the specified token.

removeToken

Removes all tokens for the specified owner.

Syntax

void removeToken( o, n )

Parameters

removeTokens

Removes all tokens for the specified owner.

Syntax

void removeTokens( o )

Parameters