T
- The Java type used for field values of this type.public abstract class FieldType<T>
extends java.lang.Object
EventType
,
and also for type parameters in complex types such as DictionaryFieldType
.
Get field type objects using FieldTypes
.Modifier and Type | Method and Description |
---|---|
abstract 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.
|
abstract T |
defaultValue()
Get the default value for this field type.
|
java.lang.String |
format(java.lang.Object value)
Format the given value in MonitorScript representation.
|
java.lang.String |
getName()
Return the name of this type.
|
java.lang.Class<? super T> |
getTypeClass()
Return the Java type used for parsed values of this field type.
|
Field<T> |
newField(java.lang.String name)
Creates a new Field object with the specified name, using this field type.
|
T |
parse(java.lang.String value)
Parse an Apama string representation of this field type into
an object representing its value.
|
java.lang.String |
toString()
Returns a String representation of the field type.
|
public Field<T> newField(java.lang.String name)
name
- The field namepublic java.lang.String getName()
public java.lang.Class<? super T> getTypeClass()
public java.lang.String format(java.lang.Object value)
value
- the value to formatpublic T parse(java.lang.String value) throws ParserRuntimeException
value
- the value to parseParserRuntimeException
- if some problem occurspublic abstract void assertAssignable(java.lang.Object c, java.lang.String fieldName)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract T defaultValue()
Submit a bug or feature
Copyright (c) 2013-2020 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.