|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.dao.WorkspaceXMLDAO
public class WorkspaceXMLDAO
| Constructor Summary | |
|---|---|
WorkspaceXMLDAO(java.io.OutputStream out,
WabitSessionContext context)
This will construct a XML DAO to save the entire workspace or parts of the workspace to be loaded in later. |
|
WorkspaceXMLDAO(java.io.Writer writer,
WabitSessionContext context)
Constructs an XML DAO to print the XML representation of this Workspace to the given Writer object. |
|
| Method Summary | |
|---|---|
void |
close()
Call this to flush and close the output stream if only part of the file is being saved. |
void |
printAttribute(java.lang.String name,
boolean value)
|
void |
printAttribute(java.lang.String name,
double value)
|
void |
printAttribute(java.lang.String name,
int value)
|
void |
printAttribute(java.lang.String name,
java.lang.String value)
Prints an attribute to the file. |
void |
save(java.util.List<? extends WabitObject> objectToSave)
This method is used to export parts of Wabit as well as save the entire set of workspaces. |
void |
saveActiveWorkspace()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceXMLDAO(java.io.OutputStream out,
WabitSessionContext context)
public WorkspaceXMLDAO(java.io.Writer writer,
WabitSessionContext context)
writer - The Writer object to output the Workspace tocontext - The context that contains the Workspace to be saved| Method Detail |
|---|
public void saveActiveWorkspace()
public void save(java.util.List<? extends WabitObject> objectToSave)
objectToSave - The object that is to save. If this is an object in a
workspace all of the necessary data sources and other
WabitObjects will be saved with it.
public void printAttribute(java.lang.String name,
java.lang.String value)
public void printAttribute(java.lang.String name,
double value)
public void printAttribute(java.lang.String name,
int value)
public void printAttribute(java.lang.String name,
boolean value)
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||