public interface FieldValue extends DocumentWorkerObject
| Modifier and Type | Method and Description |
|---|---|
Field |
getField()
Returns the field that this field value is associated with.
|
String |
getReference()
If this field value is a reference (i.e.
|
String |
getStringValue()
Decodes the data assuming that it is a UTF-8 encoded string and returns it.
|
byte[] |
getValue()
Returns the data if the field value is not a reference (i.e.
|
boolean |
isReference()
Returns true if the data is actually stored in the remote data store.
|
boolean |
isStringValue()
Checks if the field value data is a valid UTF-8 encoded string.
|
InputStream |
openInputStream()
Opens an InputStream for the field value.
|
getApplication@Nonnull Field getField()
@Nonnull String getStringValue()
isReference() call should be used before
calling this method because it throws a RuntimeException if this field value is a reference. A replacement character will be used
for sequences which are not valid UTF-8.RuntimeException - if this field value is a reference@Nonnull String getReference()
isReference() call should be used before calling this method because it throws a
RuntimeException if this field value is not a reference.RuntimeException - if this field value is not a reference@Nonnull byte[] getValue()
isReference() call should be used before calling this method because it throws a RuntimeException if this
field value is a reference.RuntimeException - if this field value is a referenceboolean isReference()
boolean isStringValue()
isReference() call should be used before calling this
method because it throws a RuntimeException if this field value is a reference.RuntimeException - if this field value is a reference@Nonnull InputStream openInputStream() throws IOException
At the end of the method either the stream will be successfully opened, or an exception will have been thrown.
IOException - if the field value data cannot be retrievedCopyright © 2016–2022 EntIT Software LLC, a Micro Focus company. All rights reserved.