|
|||||||||
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.Map<K,V>>
com.apama.event.parser.DictionaryFieldType<K,V>
K
- The Java type used for the keys of this dictionary.V
- The Java type used for the values of this dictionary.public class DictionaryFieldType<K,V>
Represents the Apama dictionary<key,item>
type,
for which values are specified as Map
objects.
Constructor Summary | |
---|---|
DictionaryFieldType(FieldType<K> keyType,
FieldType<V> valueType)
Construct a new field type representing a dictionary whose keys are values are of specified field types. |
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<K> |
getKeyType()
Get the type of the keys |
FieldType<V> |
getValueType()
Get the type of the values |
java.util.Map<K,V> |
parse(java.lang.String value)
Convert a value of this type from the format used in Apama event strings, into a Map 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 DictionaryFieldType(FieldType<K> keyType, FieldType<V> valueType)
FieldTypes.dictionary(FieldType, FieldType)
.
keyType
- type of keys this dictionary containsvalueType
- type of values this dictionary containsFieldTypes.dictionary(FieldType, FieldType)
Method Detail |
---|
public FieldType<K> getKeyType()
public FieldType<V> getValueType()
public void assertAssignable(java.lang.Object c, java.lang.String fieldName)
FieldType
assertAssignable
in class FieldType<java.util.Map<K,V>>
public java.util.Map<K,V> parse(java.lang.String value) throws ParserRuntimeException
parse
in class FieldType<java.util.Map<K,V>>
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.Map<K,V>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |