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) |
toStringprotected final FieldType returnType
protected boolean applyToNulls
public SingleValueOperation(String name, FieldType returnType, boolean applyToNulls)
public DataException addExceptionProperties(DataException exception)
addExceptionProperties in class BasicFieldTransformer.Operationprotected final void apply(Field field) throws Throwable
apply in class BasicFieldTransformer.OperationThrowableprotected void applyToNullArray(ArrayValue array)
protected void applyToFieldValue(Field field, SingleValue input) throws Throwable
Throwableprotected void applyToArrayValue(ArrayValue array, int index, SingleValue input) throws Throwable
Throwableprotected abstract Object applyImpl(SingleValue input) throws Throwable
Throwablepublic final void startArray(ArrayValue array) throws Throwable
startArray in interface INodeVisitorThrowablepublic final void endArray(ArrayValue array) throws Throwable
endArray in interface INodeVisitorThrowablepublic final void startFieldValue(Field field, ValueNode<?> value) throws Throwable
startFieldValue in interface INodeVisitorThrowablepublic final void endFieldValue(Field field, ValueNode<?> value) throws Throwable
endFieldValue in interface INodeVisitorThrowablepublic final void startArrayValue(ArrayValue array, int index, ValueNode<?> value) throws Throwable
startArrayValue in interface INodeVisitorThrowablepublic final void endArrayValue(ArrayValue array, int index, ValueNode<?> value) throws Throwable
endArrayValue in interface INodeVisitorThrowablepublic final void startRecord(Record record) throws Throwable
startRecord in interface INodeVisitorThrowablepublic final void endRecord(Record record) throws Throwable
endRecord in interface INodeVisitorThrowablepublic final void startField(Field field) throws Throwable
startField in interface INodeVisitorThrowablepublic final void endField(Field field) throws Throwable
endField in interface INodeVisitorThrowablepublic final void singleValue(SingleValue value) throws Throwable
singleValue in interface INodeVisitorThrowableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.