org.basex.build.xml
Class DOMWrapper
java.lang.Object
org.basex.core.Progress
org.basex.build.Parser
org.basex.build.xml.DOMWrapper
public final class DOMWrapper
- extends Parser
This class converts an DOM document instance to a database representation.
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
| Fields inherited from class org.basex.build.Parser |
src |
|
Constructor Summary |
DOMWrapper(org.w3c.dom.Document doc,
java.lang.String fn,
Prop pr)
Constructor. |
|
Method Summary |
java.lang.String |
det()
Returns short information on this process. |
void |
parse(Builder builder)
Parses all nodes and sends events to the specified builder. |
double |
prog()
Returns a progress value (0 - 1). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMWrapper
public DOMWrapper(org.w3c.dom.Document doc,
java.lang.String fn,
Prop pr)
- Constructor.
- Parameters:
doc - document instancefn - filenamepr - database properties
parse
public void parse(Builder builder)
throws java.io.IOException
- Description copied from class:
Parser
- Parses all nodes and sends events to the specified builder.
- Specified by:
parse in class Parser
- Parameters:
builder - database builder
- Throws:
java.io.IOException - I/O exception
det
public java.lang.String det()
- Description copied from class:
Progress
- Returns short information on this process.
- Returns:
- header information
prog
public double prog()
- Description copied from class:
Progress
- Returns a progress value (0 - 1).
Can be overwritten to give more detailed information.
- Returns:
- header information