|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.Document
public class Document
A simple implementation of core.Document in memory.
Field Summary | |
---|---|
protected java.util.Vector |
assertions
|
protected java.util.Vector |
comments
|
protected java.util.Vector |
distinctSets
|
protected DocId |
docId
|
protected java.util.Vector |
imports
|
protected java.util.Hashtable |
individuals
|
protected java.lang.String |
label
|
protected java.util.Map |
nameSpaces
|
protected java.util.Vector |
sameSets
|
protected int |
size
|
protected java.lang.String |
xmlBase
|
Constructor Summary | |
---|---|
Document()
Constructor |
Method Summary | |
---|---|
void |
addAssertion(ObjectId subject,
ObjectId predicate,
ObjectId object)
Add an assertion to this document. |
void |
addDescription(java.lang.String s)
Add a description. |
void |
addDistinctIndividualsSet(java.util.Collection dis)
Add a set of distinct individuals' IDs |
void |
addImports(DocId id)
Add an imports statement. |
void |
addIndividual(Individual indi)
Add an individual. |
void |
addSameIndividualsSet(java.util.Collection dis)
Add a set of equivalent individuals' IDs |
Individual |
createIndividual()
Create a Individual object. |
void |
deleteAllIndividual()
Delete all individuals. |
void |
deleteAssertion(Assertion a)
Delete an assertion in this document. |
void |
deleteDescriprion(java.lang.String s)
Delete a description. |
void |
deleteDistinctIndividualsSet(java.util.Collection dis)
delete a set of distinct individuals' IDs |
void |
deleteImports(DocId id)
Delete an imports statement. |
void |
deleteIndividual(Individual indi)
Delete an individual. |
void |
deleteSameIndividualsSet(java.util.Collection dis)
delete a set of equivalent individuals' IDs |
boolean |
equals(java.lang.Object o)
|
void |
flush()
Flush the document. |
Assertion[] |
getAllAssertions()
Get all assertions. |
java.util.Iterator |
getAllDescriptions()
Get all the descriptions. |
Individual[] |
getAllIndividuals()
Get all the individuals. |
java.util.Iterator |
getAssertionIterator()
Get the Iterator of all the assertions. |
java.util.Stack |
getDescendants()
Get descendants. |
java.lang.String |
getDescription()
Get the first description. |
java.util.Collection[] |
getDistinctIndividualsSets()
get sets of distinct individuals' IDs |
DocId |
getID()
get the ID of this document |
DocId[] |
getImports()
Get the imports statements. |
Individual |
getIndividual(ObjectId id)
Get an individual. |
java.util.Iterator |
getIndividualIterator()
Get the Iterator of all the individuals. |
java.lang.String |
getLabel()
Get the label. |
java.util.Map |
getNameSpaces()
Get the nameSpaces of this document. |
java.util.Collection[] |
getSameIndividualsSets()
get sets of equivalent individuals' IDs |
int |
getSize()
Get the number of triples in this document. |
java.lang.String |
getXMLBase()
Get the xml:Base of this document. |
void |
setDescendants(java.util.Stack des)
Set descendants. |
void |
setID(DocId id)
set the ID of this document |
void |
setLabel(java.lang.String s)
Set the label. |
void |
setNameSpaces(java.util.Map ns)
Set the nameSpaces of this document. |
void |
setSize(int s)
Set the number of triples in this document. |
void |
setXMLBase(java.lang.String base)
Set the xml:Base of this document. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector assertions
protected java.util.Vector imports
protected java.util.Vector distinctSets
protected java.util.Vector sameSets
protected java.util.Vector comments
protected java.util.Hashtable individuals
protected DocId docId
protected java.util.Map nameSpaces
protected java.lang.String xmlBase
protected java.lang.String label
protected int size
Constructor Detail |
---|
public Document()
Method Detail |
---|
public void addAssertion(ObjectId subject, ObjectId predicate, ObjectId object)
addAssertion
in interface Document
public void deleteAssertion(Assertion a)
deleteAssertion
in interface Document
public Assertion[] getAllAssertions()
getAllAssertions
in interface Document
public java.util.Iterator getAssertionIterator()
getAssertionIterator
in interface Document
public DocId[] getImports()
getImports
in interface Document
public void addImports(DocId id)
addImports
in interface Document
public void deleteImports(DocId id)
deleteImports
in interface Document
public DocId getID()
getID
in interface Document
public void setID(DocId id)
setID
in interface Document
public void addDistinctIndividualsSet(java.util.Collection dis)
addDistinctIndividualsSet
in interface Document
public void deleteDistinctIndividualsSet(java.util.Collection dis)
deleteDistinctIndividualsSet
in interface Document
public java.util.Collection[] getDistinctIndividualsSets()
getDistinctIndividualsSets
in interface Document
public void addSameIndividualsSet(java.util.Collection dis)
addSameIndividualsSet
in interface Document
public void deleteSameIndividualsSet(java.util.Collection dis)
deleteSameIndividualsSet
in interface Document
public java.util.Collection[] getSameIndividualsSets()
getSameIndividualsSets
in interface Document
public Individual createIndividual()
createIndividual
in interface Document
public void addIndividual(Individual indi)
addIndividual
in interface Document
public void deleteIndividual(Individual indi)
deleteIndividual
in interface Document
public void deleteAllIndividual()
public Individual getIndividual(ObjectId id)
getIndividual
in interface Document
public Individual[] getAllIndividuals()
getAllIndividuals
in interface Document
public java.util.Iterator getIndividualIterator()
getIndividualIterator
in interface Document
public void setNameSpaces(java.util.Map ns)
setNameSpaces
in interface Document
public java.util.Map getNameSpaces()
getNameSpaces
in interface Document
public void setXMLBase(java.lang.String base)
setXMLBase
in interface Document
public java.lang.String getXMLBase()
getXMLBase
in interface Document
public void addDescription(java.lang.String s)
addDescription
in interface Document
public void deleteDescriprion(java.lang.String s)
deleteDescriprion
in interface Document
public java.lang.String getDescription()
getDescription
in interface Document
public java.util.Iterator getAllDescriptions()
getAllDescriptions
in interface Document
public void setLabel(java.lang.String s)
setLabel
in interface Document
public java.lang.String getLabel()
getLabel
in interface Document
public void setDescendants(java.util.Stack des)
setDescendants
in interface Document
public java.util.Stack getDescendants()
getDescendants
in interface Document
public int getSize()
getSize
in interface Document
public void setSize(int s)
setSize
in interface Document
public void flush()
flush
in interface Document
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |