|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.SerializableClass
edu.lehigh.swat.hawk.storage.simplememory.Document
public class Document
A simple implementation of core.Document in memory.
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 |
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 |
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.HashMap |
getNameSpaces()
Get the nameSpaces of this document. |
java.util.Collection[] |
getSameIndividualsSets()
get sets of equivalent individuals' IDs |
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.HashMap ns)
Set the nameSpaces of this document. |
void |
setXMLBase(java.lang.String base)
Set the xml:Base of this document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 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.HashMap ns)
setNameSpaces
in interface Document
public java.util.HashMap 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 void flush()
flush
in interface Document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |