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.
|
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 referenceCopyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.