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> extends FieldType<java.util.Map<K,V>>
dictionary<key,item>
type,
for which values are specified as Map
objects.Constructor and Description |
---|
DictionaryFieldType(FieldType<K> keyType,
FieldType<V> valueType)
Construct a new field type representing a dictionary whose keys are values are of specified field types.
|
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.Map<K,V> |
defaultValue()
Get the default value for Dictionary field type.
|
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.
|
format, getName, getTypeClass, newField
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)
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
Submit a bug or feature
Copyright (c) 2013-2016 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.