Class OrClause
- java.lang.Object
-
- net.ontopia.topicmaps.query.parser.AbstractClause
-
- net.ontopia.topicmaps.query.parser.OrClause
-
public class OrClause extends AbstractClause
INTERNAL: Used to represent or clauses in tolog queries.
-
-
Field Summary
Fields Modifier and Type Field Description protected Listalternativesprotected booleanshortcircuit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClauseList(List alternative)CollectiongetAllLiterals()INTERNAL: Returns all the literals used by this clause as parameters.CollectiongetAllVariables()INTERNAL: Returns all the variables bound by this clause when it is satisfied.ListgetAlternatives()ListgetArguments()INTERNAL: Returns the arguments of this clause.booleangetShortCircuit()voidsetShortCircuit(boolean shortcircuit)StringtoString()
-
-
-
Field Detail
-
alternatives
protected List alternatives
-
shortcircuit
protected boolean shortcircuit
-
-
Constructor Detail
-
OrClause
public OrClause()
-
OrClause
public OrClause(List alternatives)
-
-
Method Detail
-
getShortCircuit
public boolean getShortCircuit()
-
setShortCircuit
public void setShortCircuit(boolean shortcircuit)
-
addClauseList
public void addClauseList(List alternative)
-
getAlternatives
public List getAlternatives()
-
getAllVariables
public Collection getAllVariables()
Description copied from class:AbstractClauseINTERNAL: Returns all the variables bound by this clause when it is satisfied.- Specified by:
getAllVariablesin classAbstractClause
-
getAllLiterals
public Collection getAllLiterals()
Description copied from class:AbstractClauseINTERNAL: Returns all the literals used by this clause as parameters. (Literals in the second half of pair arguments are ignored.)- Specified by:
getAllLiteralsin classAbstractClause
-
getArguments
public List getArguments()
Description copied from class:AbstractClauseINTERNAL: Returns the arguments of this clause. For OrClause this is the list of all arguments to all the subclauses in the OrClause. Likewise for NotClause.- Specified by:
getArgumentsin classAbstractClause
-
-