public class AnyFieldValue
extends java.lang.Object
Example usage:
Field<AnyFieldValue> anyField = new AnyFieldType().newField("myAny");
EventType anyEventType = new EventType("E1", anyField);
Event e1 = new Event(anyEventType);
// Set to string
e1.setField("myAny", new AnyFieldValue(FieldTypes.STRING, "Foo BAR"));
Constructor and Description |
---|
AnyFieldValue()
Create a new AnyFieldValue object representing empty 'any'
|
AnyFieldValue(FieldType<?> fieldType,
java.lang.Object value)
Create a new AnyFieldValue
|
Modifier and Type | Method and Description |
---|---|
FieldType<?> |
getType() |
java.lang.Object |
getValue() |
java.lang.String |
toString()
Returns the string form of the contained value directly, or the word "empty" if there is no value.
|
public AnyFieldValue(FieldType<?> fieldType, java.lang.Object value)
fieldType
- : An Apama typevalue
- : Corresponding value for the Apama type.public AnyFieldValue()
public FieldType<?> getType()
public java.lang.Object getValue()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug or feature
Copyright (c) 2013-2019 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.