AppCtxs represent Application Contexts explicitly in a TAO application. Additionally,
are returned by handlers when the handler needs to trigger a change in Application Context. This is
known as Chaining and is a very important part of TAO programming.
||no||string||wild||the term defining the Application Context|
||no||string||wild||the action defining the Application Context|
||no||string||wild||the orient defining the Application Context|
||no||multiple||the data defining the Application Context|
data is used to set the specific nature of the Application Context represented by the AppCtx
with several options for passing the data to the constructor:
- as an
Objectwith keys of the same names as the trigram
- as an
Objectwith properties named
- as an
[term, action, orient]
- as a set of up to 3 args in series ordered as
For examples see the Setting Application Contexts (AppCons)
||whether to use full words for the trigram keys or not|
Object with trigram keys for this AppCtx.
true will return an
Object with keys of
instead of the default
||another trigram to compare to this AppCtx|
||whether to match only exact trigrams or allow wildcards to match anything|
isMatch can take another
AppCtx or an
Object with trigram keys (
orient) and check it against the
AppCtx on which
isMatch is called.
isMatch allows wildcard trigram attributes to match anything on either side of the
true means that the AppCtx must match the provided
trigram arg exactly
on all 3 trigram attributes.
Returns the value of the term for the AppCtx
Returns the value of the action for the AppCtx
Returns the value of the orient for the AppCtx
true if any of the trigram attributes of the AppCtx are wildcard,
true if none of the trigram attributes of the AppCtx are wildcard,
data will always return an Object, even if it is empty so there is no need to check for
The Object returned will have keys that match the trigram attribute values.