|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.mff.ksi.jinfer.functionalDependencies.PathAnswer
public class PathAnswer
Class representing answer of the path, i.e. it contains list of nodes that satisfies this path.
| Constructor Summary | |
|---|---|
PathAnswer(List<Node> nodeList,
boolean isValue)
Constructor creating the PathAnswer. |
|
PathAnswer(NodeList nodeList,
boolean isValue)
Constructor creating the PathAnswer. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
List<Node> |
getNodeAnswers()
Get list of all nodes that satisfies the path. |
Node |
getTupleNodeAnswer()
Get node this answer contains. |
String |
getTupleValueAnswer()
Get value of tje node this answer contains. |
List<String> |
getValueAnswers()
Get list of string values of all nodes that satisfies the path. |
int |
hashCode()
|
boolean |
hasMaxOneElement()
Check if answer contains one or zero nodes. |
boolean |
hasOneElement()
Check if answer contains exactly one node. |
boolean |
isEmpty()
Check if the answer is empty, i.e. |
boolean |
isNodeAnswer()
Check if this answer is node answer, i.e. |
boolean |
isValueAnswer()
Check if this answer is a value answer. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathAnswer(NodeList nodeList,
boolean isValue)
NodeList
containing nodes satisfying path and flag describing if the nodes are value
nodes (text values of elements or attributes).
nodeList - NodeList of nodes that satisfies path.isValue - flag representing if the answer point to value nodes.
public PathAnswer(List<Node> nodeList,
boolean isValue)
List
containing nodes satisfying path and flag describing if the nodes are value
nodes (text values of elements or attributes).
nodeList - List of nodes that satisfies path.isValue - flag representing if the answer point to value nodes.| Method Detail |
|---|
public boolean isEmpty()
public boolean hasMaxOneElement()
public boolean hasOneElement()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic List<Node> getNodeAnswers()
public List<String> getValueAnswers()
UnsupportedOperationException
public boolean isNodeAnswer()
public boolean isValueAnswer()
public Node getTupleNodeAnswer()
UnsupportedOperationException.
If this answer is empty return null.
public String getTupleValueAnswer()
UnsupportedOperationException.
If this answer is empty return null.
|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||