eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.eRQL.model
Class Junction

java.lang.Object
  extended byeworks.eRQL.model.ModelComponent
      extended byeworks.eRQL.model.Value
          extended byeworks.eRQL.model.Junction
Direct Known Subclasses:
Conjunction, Disjunction

public abstract class Junction
extends Value

Abstract base class for combining operators like a conjunction or a disjunction.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

Field Summary
protected  Value[] values
          The operands that are associated with this junction.
 
Constructor Summary
Junction()
          Creates a new and empty junction.
Junction(Value value)
          Creates a new junction and initializes it with a single value.
Junction(Value[] values)
          Creates a new junction and initializes it with some values.
Junction(Value value1, Value value2)
          Creates a new junction and initializes it with two single values.
 
Method Summary
 void add(Value value)
          Adds a new value to this junction.
 Value compact()
          Compacts this junction and returns the result.
 String toString()
          Returns a string representation of this junction.
 
Methods inherited from class eworks.eRQL.model.Value
query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

protected Value[] values
The operands that are associated with this junction.

Constructor Detail

Junction

public Junction()
Creates a new and empty junction.


Junction

public Junction(Value[] values)
Creates a new junction and initializes it with some values.

Parameters:
values - The values for the initialization of the junction.

Junction

public Junction(Value value)
Creates a new junction and initializes it with a single value.

Parameters:
value - The value for the initialization of the junction.

Junction

public Junction(Value value1,
                Value value2)
Creates a new junction and initializes it with two single values.

Parameters:
value1 - The first value for the initialization of the junction.
value2 - The first value for the initialization of the junction.
Method Detail

add

public void add(Value value)
Adds a new value to this junction.

Parameters:
value - The first value for the initialization of the junction.

compact

public Value compact()
Compacts this junction and returns the result.

Overrides:
compact in class Value
Returns:
the compacted junction.

toString

public String toString()
Returns a string representation of this junction.

Overrides:
toString in class ModelComponent
Returns:
a string representation of this junction.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/