public interface Field extends DocumentWorkerObject
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] data)
Adds the specified binary blob value to this field.
|
void |
add(String data)
Adds the specified value to this field.
|
void |
addReference(String dataRef)
Associates data stored in the remote data store with this field.
|
void |
clear()
Removes all values from this field.
|
Document |
getDocument()
Returns the document that this field is associated with.
|
String |
getName()
Retrieves the name of the field.
|
List<String> |
getStringValues()
Returns all the non-reference field values that contain valid UTF-8 encoded strings.
|
FieldValues |
getValues()
Returns a collection of all of the values that are currently associated with this field.
|
boolean |
hasChanges()
Returns true if the field has been modified from its original state.
|
boolean |
hasValues()
Returns true if this field has some values associated with it.
|
void |
reset()
Resets the field back to its original state, undoing any changes made to it using the add() or clear() methods.
|
void |
set(byte[] data)
Sets the binary blob value in this field.
|
void |
set(String data)
Sets the value in this field.
|
void |
setReference(String dataRef)
Sets the reference in this field to the data stored in the remote data store.
|
getApplicationvoid add(String data)
To replace existing values by a new one use set(java.lang.String). The value will be stored using the UTF-8 encoding.
data - the value to be storedvoid add(byte[] data)
set(byte[]).data - the data to be storedvoid addReference(String dataRef)
To replace existing values by a new one use setReference(java.lang.String). The Worker Framework has the concept of a
remote data store and fields can hold data in the data store as an alternative to passing it around using the standard messaging
system. This is recommended if the data is large.
dataRef - the reference to the data in the remote data storevoid clear()
@Nonnull Document getDocument()
@Nonnull List<String> getStringValues()
@Nonnull FieldValues getValues()
boolean hasChanges()
boolean hasValues()
void set(String data)
Removes existing values by clear() and adds new one by add(java.lang.String).
data - the value to be storedvoid set(byte[] data)
Removes existing values by clear() and adds new one by add(byte[]).
data - the data to be storedvoid setReference(String dataRef)
Removes existing values by clear() and adds new one by addReference(java.lang.String). The Worker Framework has
the concept of a remote data store and fields can hold data in the data store as an alternative to passing it around using the
standard messaging system. This is recommended if the data is large.
dataRef - the reference to the data in the remote data storevoid reset()
Copyright © 2016–2022 EntIT Software LLC, a Micro Focus company. All rights reserved.