org.objectweb.joram.shared.selectors
Class Interpreter

java.lang.Object
  extended by org.objectweb.joram.shared.selectors.Interpreter

 class Interpreter
extends java.lang.Object

The Interpreter class is used for interpreting selector queries.


Constructor Summary
Interpreter()
           
 
Method Summary
(package private) static java.lang.Object interpret(java.lang.String name, Message message, java.lang.String syntaxType)
          Calls the appropriate method for interpreting a field name according to the syntax type.
private static java.lang.Object jmsInterpret(java.lang.String name, Message message)
          Retrieves the value of a field following the JMS syntax rules.
static java.lang.String wrapToString(java.lang.Object value)
          Gets the String value of the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreter

Interpreter()
Method Detail

interpret

static java.lang.Object interpret(java.lang.String name,
                                  Message message,
                                  java.lang.String syntaxType)
Calls the appropriate method for interpreting a field name according to the syntax type.

Method called by the org.objectweb.joram.shared.selectors.Filter class.

Parameters:
name - Name of a field to retrieve.
message - Message in which retrieving the field.
syntaxType - Type of the syntax; ex: "JMS".

wrapToString

public static java.lang.String wrapToString(java.lang.Object value)
Gets the String value of the given object.


jmsInterpret

private static java.lang.Object jmsInterpret(java.lang.String name,
                                             Message message)
Retrieves the value of a field following the JMS syntax rules.

Parameters:
name - Name of a field to retrieve.
message - Message in which retrieving the field.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.