public class Document extends AbstractResource
dataObj, warnings
Constructor and Description |
---|
Document() |
Document(org.json.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
void |
addFormField(FormField formField)
Adds the form field to this document.
|
List<CustomField> |
getCustomFields()
Returns the custom fields for this document.
|
File |
getFile()
Returns the File associated with this document.
|
List<FormField> |
getFormFields()
Returns the form fields for this document.
|
Integer |
getIndex() |
String |
getName() |
boolean |
hasName() |
void |
setFile(File file)
Sets the file associated with this document.
|
void |
setFormFields(List<FormField> formFields)
Overwrites the form fields for this document.
|
void |
setIndex(Integer index) |
void |
setName(String name) |
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString
public Document()
public Document(org.json.JSONObject json) throws HelloSignException
HelloSignException
public List<FormField> getFormFields()
public void setFormFields(List<FormField> formFields) throws HelloSignException
formFields
- ListHelloSignException
- thrown if there is a problem adding
the FormFields to this Document.public void addFormField(FormField formField) throws HelloSignException
formField
- FormFieldHelloSignException
- thrown if there is a problem adding
the FormFields to this Document.public List<CustomField> getCustomFields()
public File getFile()
public void setFile(File file)
file
- Filepublic String getName()
public void setName(String name)
public boolean hasName()
public Integer getIndex()
public void setIndex(Integer index)
Copyright © 2016 HelloSign. All rights reserved.