public class CalculatedField extends FoundationObject
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
CalculatedField() |
CalculatedField(String variable,
String expression) |
CalculatedField(String variable,
String expression,
boolean includeInOutcome) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this object's current state to a
DataException . |
CalculatedField |
assertValid() |
void |
evaluate(DefaultExpressionContext expressionContext) |
CalculatedField |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
CalculatedField |
fromXmlElement(Element element) |
Expression |
getExpression() |
String |
getExpressionSource() |
String |
getVariable() |
boolean |
isIncludeInOutcome() |
CalculatedField |
setExpression(Expression expression) |
CalculatedField |
setIncludeInOutcome(boolean includeInOutcome) |
CalculatedField |
setVariable(String variable) |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
public String getVariable()
public CalculatedField setVariable(String variable)
public Expression getExpression()
public String getExpressionSource()
public CalculatedField setExpression(Expression expression)
public boolean isIncludeInOutcome()
public CalculatedField setIncludeInOutcome(boolean includeInOutcome)
public CalculatedField assertValid()
assertValid
in class FoundationObject
public void evaluate(DefaultExpressionContext expressionContext)
public DataException addExceptionProperties(DataException exception)
FoundationObject
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class FoundationObject
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public CalculatedField fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
public CalculatedField fromXmlElement(Element element)
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.