public class TestFormInstance extends Object implements FormInstance
Modifier and Type | Field and Description |
---|---|
protected Map<String,Blob[]> |
blobs |
protected Map<String,String[]> |
params |
Constructor and Description |
---|
TestFormInstance() |
TestFormInstance(Map<String,String[]> params) |
TestFormInstance(Map<String,String[]> params,
Map<String,Blob[]> blobs) |
Modifier and Type | Method and Description |
---|---|
void |
addField(String key,
Blob... values) |
void |
addField(String key,
String... values) |
void |
fillDocument(DocumentModel doc)
TODO XXX implement it
|
Object[] |
get(String key) |
Blob |
getBlob(String key) |
Map<String,Blob[]> |
getBlobFields() |
Blob[] |
getBlobs(String key) |
Map<String,String[]> |
getFormFields() |
Collection<String> |
getKeys() |
String[] |
getList(String key) |
String |
getString(String key) |
void |
setField(String key,
Blob... values) |
void |
setField(String key,
String... values) |
public TestFormInstance()
public TestFormInstance(Map<String,String[]> params)
public Collection<String> getKeys()
getKeys
in interface FormDataProvider
public void fillDocument(DocumentModel doc)
fillDocument
in interface FormInstance
public Object[] get(String key)
get
in interface FormInstance
public Blob getBlob(String key)
getBlob
in interface FormInstance
public Blob[] getBlobs(String key)
getBlobs
in interface FormInstance
public Map<String,Blob[]> getBlobFields()
getBlobFields
in interface FormInstance
public Map<String,String[]> getFormFields()
getFormFields
in interface FormDataProvider
getFormFields
in interface FormInstance
public String[] getList(String key)
getList
in interface FormDataProvider
public String getString(String key)
getString
in interface FormDataProvider
Copyright © 2015 Nuxeo SA. All rights reserved.