org.sandev.basics.structs
Class TestConditionStruct

java.lang.Object
  extended by org.sandev.basics.structs.TestConditionStruct
Direct Known Subclasses:
TestCondition

public class TestConditionStruct
extends java.lang.Object

A received message condition test.

summary fields: commType msgClass
This message has the following verb forms: update
declared printname: Test Condition
help text: A received message condition test.

Field Summary
protected  int commType
          How the incoming message to be tested will be received.
protected  SandAttrVal[] matchInfo
          The match information to be applied to the incoming message as a condition test.
protected  java.lang.String msgClass
          The short class name of the message to be received.
 
Constructor Summary
TestConditionStruct()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commType

protected int commType
How the incoming message to be tested will be received.

declared default value: 0

enumerated constant values:

  • SYNC("synchronous (query, call/response)") = 0
  • ASYNC("asynchronous (subscription delivery)") = 1
declared invalid value: -1
declared printname: communications type
help text: How the incoming message to be tested will be received. This is either synchronous (query, call/response) or asynchronous (subcription delivery).

msgClass

protected java.lang.String msgClass
The short class name of the message to be received. This may be the specific message class (e.g. TaskUpdate), or an interface (e.g. SandUpdateMessage).

Length in characters, normal: 40 max: 80
declared printname: message class
help text: The class of message to be received.

matchInfo

protected SandAttrVal[] matchInfo
The match information to be applied to the incoming message as a condition test. If the incoming message is a SandQueryMessage, then the match conditions are compared against the conditions specified in the query. If the incoming message is a SandUpdateMessage, then the match conditions are applied as a query against the instance to test for a match. An AggregateUpdate is unpacked and each contained SandUpdateMessage is checked against the condition. All other message types are checked by applying the match conditions directly against the message.

declared printname: match information
help text: The match information to be applied to the incoming message as a condition test.
Constructor Detail

TestConditionStruct

public TestConditionStruct()