|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.cmf.dam.ContentDataUser<ResultType,DataType>
public abstract class ContentDataUser<ResultType,DataType>
| Field Summary | |
|---|---|
protected DataType |
mData
|
| Constructor Summary | |
|---|---|
ContentDataUser()
Creates a new instance. |
|
ContentDataUser(DataType data)
Creates a new instance with a data object. |
|
| Method Summary | |
|---|---|
ContentDataUser<ResultType,DataType> |
clone()
Simply clones the instance with the default clone method since this class contains no member variables. |
DataType |
getData()
Retrieves the data object that was provided through the constructor. |
void |
throwException(Exception exception)
Calling this method makes it possible to throw a checked exception from within this class. |
abstract ResultType |
useContentData(Object contentData)
Should be implemented by all extending classes. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataType mData
| Constructor Detail |
|---|
public ContentDataUser()
public ContentDataUser(DataType data)
| Method Detail |
|---|
public DataType getData()
public void throwException(Exception exception)
throws InnerClassException
To catch it you should surround the using method with a
try-catch block that catching
InnerClassException. The original exception is then
available through getCause() and can for example be
rethrown.
InnerClassException - when a checked exception needs to be
thrown from within this class and caught outside the caller.
public abstract ResultType useContentData(Object contentData)
throws InnerClassException
InnerClassExceptionpublic ContentDataUser<ResultType,DataType> clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||