|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.util.DataProviderAdapter
An abstract adapter class for providing data. The data provision methods
in this class throw a UnsupportedOperationException
.
This class exists as a convenience for creating data provider objects.
Extend this class to provide either typed or untyped data for a certain lookup domain.
Constructor Summary | |
DataProviderAdapter()
|
Method Summary | |
boolean |
defined(Object dataHolder)
Returns false for all data holders. |
Object |
get(Object dataHolder)
Throws UnsupportedOperationException .
|
boolean |
getBool(Object dataHolder)
Throws UnsupportedOperationException .
|
double |
getDouble(Object dataHolder)
Throws UnsupportedOperationException .
|
int |
getInt(Object dataHolder)
Throws UnsupportedOperationException .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataProviderAdapter()
Method Detail |
public Object get(Object dataHolder)
UnsupportedOperationException
.
Subclasses may override this
method to provide access to object values.
get
in interface DataProvider
public int getInt(Object dataHolder)
UnsupportedOperationException
.
Subclasses may override this
method to provide access to integer values.
getInt
in interface DataProvider
public double getDouble(Object dataHolder)
UnsupportedOperationException
.
Subclasses may override this
method to provide access to double values.
getDouble
in interface DataProvider
public boolean getBool(Object dataHolder)
UnsupportedOperationException
.
Subclasses may override this
method to provide access to boolean values.
getBool
in interface DataProvider
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 |