com.apama.event.parser
Class StringFieldType

java.lang.Object
  extended by com.apama.event.parser.FieldType<java.lang.String>
      extended by com.apama.event.parser.StringFieldType

public class StringFieldType
extends FieldType<java.lang.String>

Represents the Apama string type, for which values are specified as String objects.

This class cannot be instantiated explicitly, but should be referenced using FieldTypes.STRING.


Field Summary
static StringFieldType TYPE
          Singleton instance of this type.
 
Method Summary
 void assertAssignable(java.lang.Object c, java.lang.String fieldName)
          This method is intended for internal use only and may be removed at any time - do not use.
 java.lang.String parse(java.lang.String value)
          Convert a value of this type from the format used in Apama event strings, into a String object containing the string's contents (without the surrounding quotes and any escape characters).
 
Methods inherited from class com.apama.event.parser.FieldType
format, getName, getTypeClass, newField, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final StringFieldType TYPE
Singleton instance of this type.

Method Detail

assertAssignable

public void assertAssignable(java.lang.Object c,
                             java.lang.String fieldName)
Description copied from class: FieldType
This method is intended for internal use only and may be removed at any time - do not use.

Specified by:
assertAssignable in class FieldType<java.lang.String>

parse

public java.lang.String parse(java.lang.String value)
                       throws ParserRuntimeException
Convert a value of this type from the format used in Apama event strings, into a String object containing the string's contents (without the surrounding quotes and any escape characters).

Overrides:
parse in class FieldType<java.lang.String>
Parameters:
value - the value to parse (including the surrounding quotes).
Returns:
an object specifying the value of the string that was parsed.
Throws:
ParserRuntimeException - If the specified value string cannot be parsed.


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG