|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fuberlin.wiwiss.wiqa.ExplanationPart
A node in an Explanation tree. A node has a text fragment
which is a list of RDF nodes (literals or URIs which should be
rendered as links). A node also has zero or more children which
are also ExplanationParts, and are unordered.
An ExplanationPart may have a more detailed alternative
version, accessible through getDetails(). Which version
is shown should be determined based on user preferences.
| Constructor Summary | |
ExplanationPart()
Creates a new explanation part without children and with an empty text representation. |
|
ExplanationPart(List explanation)
Creates a new explanation part without children and with a text representation. |
|
| Method Summary | |
void |
addPart(ExplanationPart childPart)
Adds a child to this explanation part. |
static ExplanationPart |
create(Object[] parts)
Creates a new explanation part with a text fragment built from an array of Objects. |
boolean |
equals(Object other)
|
List |
explanationNodes()
|
ExplanationPart |
getDetails()
|
int |
hashCode()
|
Collection |
parts()
|
void |
setDetails(ExplanationPart details)
Sets the alternative detailed version of this explanation part. |
String |
toString()
|
Node |
writeAsRDF(Graph target)
Writes this explanation part and all of its children into a Jena RDF Graph. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExplanationPart()
public ExplanationPart(List explanation)
explanation - The text representation, a list of RDF Nodes| Method Detail |
public static ExplanationPart create(Object[] parts)
parts - An array of Nodes and other objects
public void addPart(ExplanationPart childPart)
addPart in interface ExplanationNodechildPart - The new childpublic Collection parts()
public List explanationNodes()
Nodes.public void setDetails(ExplanationPart details)
details - The alternative versionpublic ExplanationPart getDetails()
public Node writeAsRDF(Graph target)
Graph.
target - Statements will be added to this graph
public boolean equals(Object other)
public int hashCode()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||