|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apama.event.parser.FieldType<java.util.List<E>>
com.apama.event.parser.SequenceFieldType<E>
E
- The Java type used for the elements of this sequence.public class SequenceFieldType<E>
Represents the Apama sequence<type>
type,
for which values are specified as List
objects.
Constructor Summary | |
---|---|
SequenceFieldType(FieldType<E> elementType)
Construct a new field type representing a sequence whose members are all of a given field 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. |
FieldType<E> |
getElementType()
Get the type of the elements. |
java.util.List<E> |
parse(java.lang.String value)
Convert a value of this type from the format used in Apama event strings, into a List object. |
java.lang.String |
toString()
Returns a String representation of the field type. |
Methods inherited from class com.apama.event.parser.FieldType |
---|
format, getName, getTypeClass, newField |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequenceFieldType(FieldType<E> elementType)
FieldTypes.sequence(FieldType)
.
elementType
- type of elements this sequence containsFieldTypes.sequence(FieldType)
Method Detail |
---|
public FieldType<E> getElementType()
public void assertAssignable(java.lang.Object c, java.lang.String fieldName)
FieldType
assertAssignable
in class FieldType<java.util.List<E>>
public java.util.List<E> parse(java.lang.String value) throws ParserRuntimeException
parse
in class FieldType<java.util.List<E>>
value
- the value to parse.
ParserRuntimeException
- If the specified value string cannot be parsed.public java.lang.String toString()
FieldType
toString
in class FieldType<java.util.List<E>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |