|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Accessor
All JDSL core containers provide a way to access their internal structure;
Accessor
is the interface that embodies this concept. Containers
guarantee not to change the binding between an Accessor and its
element, unless the user explicitly requests a change
(PositionalContainer.swap(.) and various *Container.replace*(.)
are the only methods that change the binding).
An Accessor provides only the minimal guarantee of being able to retrieve an element. All container interfaces are actually written in terms of the two subinterfaces of Accessor: Position and Locator. PositionalContainers use Positions, and they add topological information (i.e., adjacency information) to the element-binding provided by Accessor. KeyBasedContainers use Locators, and they add a key to Accessor's element.
Position
,
Locator
Method Summary | |
---|---|
java.lang.Object |
element()
Gets the element currently associated with this accessor. |
Method Detail |
---|
java.lang.Object element()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |