E
- The Java type used for the elements of this sequence.public class SequenceFieldType<E> extends FieldType<java.util.List<E>>
sequence<type>
type,
for which values are specified as List
objects.Constructor and Description |
---|
SequenceFieldType(FieldType<E> elementType)
Construct a new field type representing a sequence whose members are all of a given field type.
|
Modifier and Type | Method and Description |
---|---|
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.util.List<E> |
defaultValue()
Get the default value for Sequence field type.
|
FieldType<E> |
getElementType()
Get the type of the elements.
|
java.lang.String |
getName()
Return the name of this type.
|
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.
|
format, getTypeClass, newField
public SequenceFieldType(FieldType<E> elementType)
FieldTypes.sequence(FieldType)
.elementType
- type of elements this sequence containsFieldTypes.sequence(FieldType)
public java.lang.String getName()
FieldType
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
public java.util.List<E> defaultValue()
defaultValue
in class FieldType<java.util.List<E>>
Submit a bug or feature
Copyright (c) 2013-2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.