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 |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GenericPosition
public GenericPosition(Container c,
java.lang.Object element)
- Constructs a new Generic position with a given container and element
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