public interface Document extends DocumentWorkerObject
The document has fields associated with it which may be manipulated when it is processed. Additionally it may also have custom data associated with it. This custom data can be used to affect how the document is processed without actually becoming metadata of the document.
If there is a failure processing the document then the failure information may also be stored with the document.
| Modifier and Type | Method and Description |
|---|---|
void |
addFailure(String failureId,
String failureMessage)
Records the specified failure on the document.
|
String |
getCustomData(String dataKey)
Used to retrieve any custom data that was sent with the document, but which is not technically part of it.
|
Field |
getField(String fieldName)
Gets a field object for the specified field.
|
Fields |
getFields()
Gets the list of fields currently associated with the document.
|
getApplication@Nonnull Fields getFields()
@Nonnull Field getField(String fieldName)
fieldName - the name of the field to accessString getCustomData(String dataKey)
dataKey - the key of the data to be retrieved (note that the key lookup is case-sensitive)Copyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.