ParsingFramework
Interface IParseOperations
- All Known Implementing Classes: 
 - Actuator, JavaObjectListener, Listener, MessageActuator, MessageListener, ParserFramework, TextMessageListener, XMLMessageActuator, XMLMessageListener
 
public interface IParseOperations
- Version:
 
  - Connect 0.1
 
- Author:
 
  - Paul Grace, Lancaster University
 
| 
Method Summary | 
 java.lang.Object | 
composeTypedValue(java.lang.String dataType,
                  java.lang.Object dataValue,
                  int size)
 
          Composes the representation of the data type to be used in the message
 format. | 
 java.lang.Object | 
decode(java.lang.String name,
       java.lang.Object data)
 
            | 
 java.lang.Object | 
getConstantValue(java.lang.String type,
                 java.lang.String constant)
 
            | 
 java.lang.Object | 
getFunctionResult(java.lang.String function)
 
            | 
 java.lang.Object | 
getFunctionResult(java.lang.String function,
                  java.lang.Object parameter)
 
            | 
 java.lang.Object | 
getTextTypedValue(java.lang.String dataType,
                  java.lang.Object dataValue)
 
            | 
 java.lang.Object | 
getTypedValue(java.lang.String dataType,
              java.lang.Object dataValue)
 
          Convert the data in the dataValue parameter into a Java object that
 matches the dataType provided. | 
 byte[] | 
toByteArray(java.util.BitSet bits)
 
            | 
 
getTypedValue
java.lang.Object getTypedValue(java.lang.String dataType,
                               java.lang.Object dataValue)
                               throws TypeNotFoundException
- Convert the data in the dataValue parameter into a Java object that
 matches the dataType provided.
- Parameters:
 dataType - Required type to be produceddataValue - The raw data to be parsed
- Returns:
 - A Java of type dataType with the value held in dataValue
 - Throws:
 TypeNotFoundException
 
 
composeTypedValue
java.lang.Object composeTypedValue(java.lang.String dataType,
                                   java.lang.Object dataValue,
                                   int size)
                                   throws TypeNotFoundException
- Composes the representation of the data type to be used in the message
 format.
- Parameters:
 dataType - Required type to be composeddataValue - The current object value to be marshalledsize - The length of the data to be created e.g. (2 byte for int)
- Returns:
 - The marshalled result which will typically be a byte array
 - Throws:
 TypeNotFoundException
 
 
getConstantValue
java.lang.Object getConstantValue(java.lang.String type,
                                  java.lang.String constant)
 
getFunctionResult
java.lang.Object getFunctionResult(java.lang.String function,
                                   java.lang.Object parameter)
 
getFunctionResult
java.lang.Object getFunctionResult(java.lang.String function)
 
decode
java.lang.Object decode(java.lang.String name,
                        java.lang.Object data)
                        throws TypeNotFoundException
- Throws:
 TypeNotFoundException
 
toByteArray
byte[] toByteArray(java.util.BitSet bits)
 
getTextTypedValue
java.lang.Object getTextTypedValue(java.lang.String dataType,
                                   java.lang.Object dataValue)
                                   throws TypeNotFoundException
- Throws:
 TypeNotFoundException