|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.selector.parser.Identifier
Class to represent an identifier. Thread safe class may be freely used across threads. Identifiers can either be JMS header fields, or JMS provider-specific properties, or application properties.
The following JMS header fields are supported: JMSDeliveryMode, JMSPriority, JMSMessageID, JMSTimestamp, JMSCorrelationID, and JMSType. In addition, the header fields JMSRedelivered and JMSExpiration are also supported. These additional fields are relevant only for the receiving application and not for the sender.
Support is provided for nested fields. Nested fields are referenced using a dot notation. For example, order.quantity would select the quantity field of the nested sub-message field order if it exists. Otherwise, it selects nothing (null).
Method Summary | |
java.lang.Object |
eval(IValueProvider provider,
java.lang.Object corr)
Evaluate the expression. |
java.lang.Object |
eval(java.util.Map identifiers)
Evaluate the expression. |
java.lang.String |
getIdentifier()
Get identifier name. |
boolean |
isJMSHeader()
Check if this is a JMS header property. |
java.lang.String |
toString()
|
static Identifier |
valueOf(java.lang.String id)
Factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static Identifier valueOf(java.lang.String id)
id
- Identifier name.
java.lang.IllegalArgumentException
- Invalid identifier name.public java.lang.String getIdentifier()
public boolean isJMSHeader()
public java.lang.Object eval(java.util.Map identifiers)
IExpression
eval
in interface IExpression
identifiers
- Identifier values.
public java.lang.Object eval(IValueProvider provider, java.lang.Object corr)
IExpression
eval
in interface IExpression
provider
- Value provider. During evaluation of the expression callbacks
are made on the value provider to get identifier values.corr
- Correlation data. Passed as-is to the value provider.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |