jdsl.core.ref
Class GenericPosition

java.lang.Object
  |
  +--jdsl.core.ref.GenericPosition

public class GenericPosition
extends java.lang.Object
implements Position

A completely generic position.

Author:
Ryan Shaun Baker, Mike Boilen (mgb)

Constructor Summary
GenericPosition(Container c, java.lang.Object element)
          Constructs a new Generic position with a given container and element
 
Method Summary
 Container container()
          Gets the container of this position.
 java.lang.Object element()
          Gets the element of this position.
 void setContainer(Container c)
          Sets the container for this position.
 void setElement(java.lang.Object e)
          Sets the element for this position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPosition

public GenericPosition(Container c,
                       java.lang.Object element)
Constructs a new Generic position with a given container and element
Method Detail

element

public java.lang.Object element()
                         throws InvalidPositionException
Gets the element of this position. Note Never throws an InvalidPositionException
Specified by:
element in interface Position

container

public Container container()
                    throws InvalidPositionException
Gets the container of this position. Note Never throws an InvalidPositionException
Specified by:
container in interface Position

setElement

public void setElement(java.lang.Object e)
                throws InvalidPositionException
Sets the element for this position. Note Never throws an InvalidPositionException

setContainer

public void setContainer(Container c)
                  throws InvalidPositionException
Sets the container for this position. Note Never throws an InvalidPositionException