|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
ca.sqlpower.wabit.dao.WorkspaceSAXHandler
public class WorkspaceSAXHandler
This will be used with a parser to load a saved workspace from a file.
| Constructor Summary | |
|---|---|
WorkspaceSAXHandler(WabitSessionContext context)
Creates a new SAX handler which is capable of reading in a series of workspace descriptions from an XML stream. |
|
WorkspaceSAXHandler(WabitSessionContext context,
WabitServerInfo serverInfo)
Creates a new SAX handler which is capable of reading in a series of workspace descriptions from an XML stream. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
|
org.olap4j.metadata.Member |
findMember(org.xml.sax.Attributes attributes,
org.olap4j.metadata.Cube cube)
This method finds a member from a cube based on given attributes. |
java.lang.String |
getMessage()
|
WabitSession |
getSession()
|
boolean |
isCancelled()
|
void |
setCancelled(boolean cancelled)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attr)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceSAXHandler(WabitSessionContext context)
This constructor must be called from the foreground thread
context - The context that will create sessions for loading and
creates user prompters if input is required.
public WorkspaceSAXHandler(WabitSessionContext context,
WabitServerInfo serverInfo)
This constructor must be called from the foreground thread
context - The context that will create sessions for loading and creates
user prompters if input is required.serverInfo - Describes a connection to a server. If this is not null, a
server session will be created that is connected to a server.| Method Detail |
|---|
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public org.olap4j.metadata.Member findMember(org.xml.sax.Attributes attributes,
org.olap4j.metadata.Cube cube)
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic WabitSession getSession()
public java.lang.String getMessage()
public boolean isCancelled()
public void setCancelled(boolean cancelled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||