de.rwth.domains.templates
Class TupleElement

java.lang.Object
  |
  +--de.rwth.domains.templates.TupleElement

public class TupleElement
extends java.lang.Object

Class for representing the elements of TupleSet.

Version:
$Id: TupleElement.java,v 1.2 2002/09/17 06:53:53 mohnen Exp $
Author:
Markus Mohnen

Field Summary
protected  java.lang.Object[] elements
          All the component elements which are contained in this tuple.
 
Constructor Summary
TupleElement(java.lang.Object[] elements)
          Creates a new TupleElement instance from an array of components.
TupleElement(java.lang.Object e1, java.lang.Object e2)
          Creates a new TupleElement instance from two components.
 
Method Summary
 java.lang.Object[] getElements()
          Returns an array of all elements of this tuple.
 java.lang.String toString()
          The method toString creates a String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elements

protected java.lang.Object[] elements
All the component elements which are contained in this tuple.
Constructor Detail

TupleElement

public TupleElement(java.lang.Object[] elements)
Creates a new TupleElement instance from an array of components.
Parameters:
elements - an Object[] value

TupleElement

public TupleElement(java.lang.Object e1,
                    java.lang.Object e2)
Creates a new TupleElement instance from two components.
Parameters:
e1 - an Object value
e2 - an Object value
Method Detail

getElements

public java.lang.Object[] getElements()
Returns an array of all elements of this tuple.
Returns:
an Object[] value

toString

public java.lang.String toString()
The method toString creates a String representation. It calls the toString methods of the components, concatenates them with ", " and surrounds this with "("...")".
Overrides:
toString in class java.lang.Object
Returns:
the String representing this tuple.