public class DocumentAttributesBuilder extends Object
DocumentAttributesBuilder is a convenient class used to create and customize a document's attributes.
| Constructor and Description |
|---|
DocumentAttributesBuilder(Map<String,Object> data)
The constructor of the document attributes builder and set attribute map.
|
| Modifier and Type | Method and Description |
|---|---|
DocumentAttributesBuilder |
addAttribute(String name,
Object value)
Adds an attribute to the document's attribute map.
|
Map<String,Object> |
build()
Builds an actual document attributes.
|
static DocumentAttributesBuilder |
newDocumentAttributes()
Creates a new document attributes builder.
|
public static DocumentAttributesBuilder newDocumentAttributes()
public DocumentAttributesBuilder addAttribute(String name, Object value)
name - the name of the attributevalue - the value of the attributeCopyright 2022 OneSpan All rights reserved.