| de.schlund.pfixcore.generator.IWrapper
All known Subclasses: de.schlund.pfixcore.generator.IWrapperImpl,
IWrapper | public interface IWrapper extends Comparable<IWrapper>(Code) | | IWrappers are objects which aggregate part of the submitted data
of a HTTP post or get event in a typesafe way and present getter
and setter methods to manipulate that data.
Classes which implement the IWrapper interface are not written by
hand, but are autogenerated from a describtion written in a
special xml format.
From the application programmers point of view IWrappers
are never instanciated directly. Following snipplet
shows the use of an IWrapper in the handleSubmittedData method
of an
IHandler .
public void handleSubmittedData(Context context, IWrapper wrapper) throws Exception {
AdultInfo info = (AdultInfo) wrapper;
}
For more information see the 'IWrapper_XML_Description_Language.txt' in the docs
directory of the Pfixcore package.
|
defineOrder | void defineOrder(int order)(Code) | | |
errorHappened | boolean errorHappened()(Code) | | |
loadFromStringValues | void loadFromStringValues() throws Exception(Code) | | Load the IWrapper's typed data from the String representations set via the
setStringValXXX methods, i.e. the string values are processed (checked and casted)
just like values provided by a RequestData object.
This method requires that the IWrapper is already initialized (that the init
method has been called). Amongst others it can be used to manually instantiate
and populate IWrapper objects within unit tests.
throws: Exception - |
|
|