public abstract static class BasicFieldTransformer.SingleValueOperation extends BasicFieldTransformer.Operation implements INodeVisitor
Modifier and Type | Field and Description |
---|---|
protected boolean |
applyToNulls |
protected FieldType |
returnType |
Constructor and Description |
---|
SingleValueOperation(String name,
FieldType returnType) |
SingleValueOperation(String name,
FieldType returnType,
boolean applyToNulls) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception) |
protected void |
apply(Field field) |
protected abstract Object |
applyImpl(SingleValue input) |
protected void |
applyToArrayValue(ArrayValue array,
int index,
SingleValue input) |
protected void |
applyToFieldValue(Field field,
SingleValue input) |
protected void |
applyToNullArray(ArrayValue array) |
void |
endArray(ArrayValue array) |
void |
endArrayValue(ArrayValue array,
int index,
ValueNode<?> value) |
void |
endField(Field field) |
void |
endFieldValue(Field field,
ValueNode<?> value) |
void |
endRecord(Record record) |
void |
singleValue(SingleValue value) |
void |
startArray(ArrayValue array) |
void |
startArrayValue(ArrayValue array,
int index,
ValueNode<?> value) |
void |
startField(Field field) |
void |
startFieldValue(Field field,
ValueNode<?> value) |
void |
startRecord(Record record) |
toString
protected final FieldType returnType
protected boolean applyToNulls
public SingleValueOperation(String name, FieldType returnType, boolean applyToNulls)
public DataException addExceptionProperties(DataException exception)
addExceptionProperties
in class BasicFieldTransformer.Operation
protected final void apply(Field field) throws Throwable
apply
in class BasicFieldTransformer.Operation
Throwable
protected void applyToNullArray(ArrayValue array)
protected void applyToFieldValue(Field field, SingleValue input) throws Throwable
Throwable
protected void applyToArrayValue(ArrayValue array, int index, SingleValue input) throws Throwable
Throwable
protected abstract Object applyImpl(SingleValue input) throws Throwable
Throwable
public final void startArray(ArrayValue array) throws Throwable
startArray
in interface INodeVisitor
Throwable
public final void endArray(ArrayValue array) throws Throwable
endArray
in interface INodeVisitor
Throwable
public final void startFieldValue(Field field, ValueNode<?> value) throws Throwable
startFieldValue
in interface INodeVisitor
Throwable
public final void endFieldValue(Field field, ValueNode<?> value) throws Throwable
endFieldValue
in interface INodeVisitor
Throwable
public final void startArrayValue(ArrayValue array, int index, ValueNode<?> value) throws Throwable
startArrayValue
in interface INodeVisitor
Throwable
public final void endArrayValue(ArrayValue array, int index, ValueNode<?> value) throws Throwable
endArrayValue
in interface INodeVisitor
Throwable
public final void startRecord(Record record) throws Throwable
startRecord
in interface INodeVisitor
Throwable
public final void endRecord(Record record) throws Throwable
endRecord
in interface INodeVisitor
Throwable
public final void startField(Field field) throws Throwable
startField
in interface INodeVisitor
Throwable
public final void endField(Field field) throws Throwable
endField
in interface INodeVisitor
Throwable
public final void singleValue(SingleValue value) throws Throwable
singleValue
in interface INodeVisitor
Throwable
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.