public class FetchData extends Object
Modifier and Type | Field and Description |
---|---|
Object |
context |
String |
dataAnchor |
static int |
FETCH_DATA |
static int |
FETCH_DATA_FOR_SAVE |
static int |
FETCH_DEFAULT |
static int |
FETCH_FOR_PRINT |
static int |
FETCH_TEXT_FOR_DISPLAY |
static int |
FETCH_TEXT_FOR_EXPORT |
static int |
FETCH_TEXT_FOR_SEARCH |
int |
fetchType |
FontChange |
fontChange |
Object |
format |
Constructor and Description |
---|
FetchData() |
Modifier and Type | Method and Description |
---|---|
Wrapper |
changeToData()
If the data was added as text it converts it to a String or an array of Strings and adds it to the Wrapper
and then changes the FetchData to make it seem that data was added instead of text.
|
FetchData |
clear(int fetchType) |
boolean |
dataWasAdded()
Returns if data was added using getTargetWrapper();
|
void |
fromWrapperAfterGet(Wrapper got) |
Wrapper |
getAsData()
If the data was added as text it converts it to a String or an array of Strings and adds it to the Wrapper.
|
void |
getAsData(Wrapper dest)
If the data was added as text it converts it to a String or an array of Strings and adds it to the Wrapper.
|
StringList |
getAsStringList()
If the data was added as text it returns the internal StringList, otherwise
it adds the data from the Wrapper to the StringList (if possible) and then returns the StringList.
|
String |
getAsText() |
String |
getAsText(String stringSeparator) |
void |
getAsText(StringList dest) |
void |
getData(FetchData dest) |
Parameters |
getParameters(int indexForThisFetchData) |
StringList |
getTargetStringList() |
Wrapper |
getTargetWrapper() |
void |
prepareForSet(Wrapper w)
If the provided Wrapper is NOT this FetchData's wrapper, then this FetchData's wrapper is set to be its contents.
|
boolean |
textWasAdded()
Returns if data was added using getTargetStringList();
|
void |
toWrapperAfterGet(Wrapper dest) |
FetchData |
zero()
Zero the data buffers but do not change other fields like the fetch type.
|
public static final int FETCH_DEFAULT
public static final int FETCH_TEXT_FOR_DISPLAY
public static final int FETCH_TEXT_FOR_EXPORT
public static final int FETCH_DATA_FOR_SAVE
public static final int FETCH_DATA
public static final int FETCH_TEXT_FOR_SEARCH
public static final int FETCH_FOR_PRINT
public int fetchType
public String dataAnchor
public FontChange fontChange
public Object format
public Object context
public Parameters getParameters(int indexForThisFetchData)
public FetchData clear(int fetchType)
public FetchData zero()
public StringList getTargetStringList()
public Wrapper getTargetWrapper()
public String getAsText()
public void getAsText(StringList dest)
public StringList getAsStringList()
public Wrapper changeToData()
public Wrapper getAsData()
public void getAsData(Wrapper dest)
dest
- a non-null destination Wrapper to hold the data.public final boolean textWasAdded()
public final boolean dataWasAdded()
public final void getData(FetchData dest)
public void prepareForSet(Wrapper w)
public void toWrapperAfterGet(Wrapper dest)
public void fromWrapperAfterGet(Wrapper got)