|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.DataNode
public abstract class DataNode
Abstract class for adapting a VisAD data object to the "Visitor" design pattern. This class knows how to traverse an arbitrary VisAD data object.
Constructor Summary | |
---|---|
protected |
DataNode()
Construct. |
Method Summary | |
---|---|
abstract DataVisitor |
accept(DataVisitor visitor)
Accept a visitor and traverse the data object. |
static DataNode |
create(Data data)
Factory method for creating an instance of the appropriate type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DataNode()
Method Detail |
---|
public static DataNode create(Data data) throws UnimplementedException
data
- The VisAD data object to be traversed.
UnimplementedException
- A (soon to be implemented)
method isn't implemented yet.data
is non-null.public abstract DataVisitor accept(DataVisitor visitor) throws UnimplementedException, BadFormException, VisADException, RemoteException
visitor
- The object that will have it's visit()
method called for each subcomponent of the VisAD data
object.
visitor
for convenience.
UnimplementedException
- A (soon to be implemented)
method isn't implemented yet.
BadFormException
- The VisAD data object doesn't "fit"
the data model used by visitor
.
VisADException
- Problem in core VisAD (probably
couldn't create some VisAD object).
RemoteException
- Problem accessing the VisAD data
object.DataVisitor
visitor
is non-null.visitor
has visited the VisAD data object
data
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |