|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.byu.deg.framework.document.DOMDocument
Field Summary | |
(package private) static org.w3c.tidy.Tidy |
tidy
|
Constructor Summary | |
DOMDocument(Node node,
Document parent)
|
|
DOMDocument(String filename)
Creates a new instance of DOMDocument |
|
DOMDocument(URI u)
|
Method Summary | |
void |
addSubDocument(Node node)
|
void |
addSubDocuments(ArrayList l)
|
double |
getConfidence()
|
InputStream |
getContentStream()
Returns the contents of the document as a stream in order to avoid size issues. |
String |
getContentString()
Returns the contents of the Document as a String . |
edu.byu.deg.ontos.DOMString |
getDOMString()
|
Document |
getParentDocument()
|
Node |
getRoot()
|
DOMDocument |
getSubDocument(int index)
|
int |
getSubDocumentCount()
|
Iterator |
getSubDocuments()
Returns an Iterator of Document s that are aggregated
by this Document . |
URI |
getURI()
Returns an identifier for the document; may be relative (particularly if this is a subdocument of another document) or absolute. |
void |
setConfidence(double conf)
|
void |
setSubDocument(int i,
Node node)
|
void |
setURI(String s)
|
void |
setURI(URI u)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static org.w3c.tidy.Tidy tidy
Constructor Detail |
public DOMDocument(String filename)
public DOMDocument(URI u)
public DOMDocument(Node node, Document parent)
Method Detail |
public Node getRoot()
public edu.byu.deg.ontos.DOMString getDOMString()
public Iterator getSubDocuments()
Document
Iterator
of Document
s that are aggregated
by this Document
.
getSubDocuments
in interface Document
Iterator
. Implementing classes will determine whether the iterator
accesses the sub-documents in depth-first order, breadth-first order, or some
other sequence.public DOMDocument getSubDocument(int index)
public void addSubDocuments(ArrayList l)
public void addSubDocument(Node node)
public void setSubDocument(int i, Node node)
public URI getURI()
Document
getURI
in interface Document
public void setURI(URI u)
public void setURI(String s)
public Document getParentDocument()
public int getSubDocumentCount()
public String toString()
public InputStream getContentStream() throws IOException
Document
getContentStream
in interface Document
IOException
- Thrown if there is any problem with creating the stream.public String getContentString() throws IOException
TextDocument
Document
as a String
.
getContentString
in interface TextDocument
Document
.
IOException
public void setConfidence(double conf)
public double getConfidence()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |