|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.util.DataAcceptorAdapter
An abstract adapter class for accepting data. The data provision methods
in this class throw a UnsupportedOperationException and
defined
always returns false.
This class exists as a convenience for creating data acceptor objects.
Extend this class to access either typed or untyped data for a certain lookup domain.
Constructor Summary | |
DataAcceptorAdapter()
|
Method Summary | |
boolean |
defined(Object dataHolder)
Returns false for all data holders. |
void |
set(Object dataHolder,
Object value)
Throws UnsupportedMethodException |
void |
setBool(Object dataHolder,
boolean value)
Throws UnsupportedMethodException |
void |
setDouble(Object dataHolder,
double value)
Throws UnsupportedMethodException |
void |
setInt(Object dataHolder,
int value)
Throws UnsupportedMethodException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataAcceptorAdapter()
Method Detail |
public void set(Object dataHolder, Object value)
UnsupportedMethodException.
Subclasses may override this
method to set object values associated with a data holder.
- Specified by:
set
in interface DataAcceptor
public void setInt(Object dataHolder, int value)
UnsupportedMethodException.
Subclasses may override this
method to set integer values associated with a data holder.
- Specified by:
setInt
in interface DataAcceptor
public void setDouble(Object dataHolder, double value)
UnsupportedMethodException.
Subclasses may override this
method to set double values associated with a data holder.
- Specified by:
setDouble
in interface DataAcceptor
public void setBool(Object dataHolder, boolean value)
UnsupportedMethodException.
Subclasses may override this
method to set boolean values associated with a data holder.
- Specified by:
setBool
in interface DataAcceptor
public boolean defined(Object dataHolder)
false
for all data holders. Subclasses
should override this method to make clear for which data holders
there is a value accessible via this data provider.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |