|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.weft.domutil.DocumentGeneratorImpl
uk.co.weft.event.DayView
A document generator which generates a DOM tree (effectively an XML document) representing events on a given day. This is an example of new-style Jacquard, using domutil. This class assumes there is a view in the database which returns the following fields:
---- EVENTS_VIEW -----------------------------------------------------
-- A convenience view of events, used by DayView, q.v. --
----------------------------------------------------------------------
create view events_view as
select EVENT.Actor, EVENT.Event,
CATEGORY.Description as Type,
LOCATION.Description as Location,
EVENT.EventDate,
EVENT.StartTime,
EVENT.EndTime,
EVENT.Description
from EVENT, CATEGORY, LOCATION
where EVENT.Location = LOCATION.Location
and EVENT.Category = CATEGORY.Category
order by EventDate, StartTime;
The following arguments may be passed:
| Field Summary | |
static java.lang.String |
DAYMAGICTOKEN
a magic token on which I shall look for the day to output |
protected static java.lang.String |
EVENTDATEFIELD
the field in that view which represents the date of the event |
protected uk.co.weft.event.DayView.EventElementGenerator |
eventEltGenerator
a generate to generate the event elements which will be my children |
static java.lang.String |
FROMMAGICTOKEN
a magic token on which I shall look for the day from which to start the output |
static java.lang.String |
MONTHMAGICTOKEN
a magic token on which to look for the month I should output, formatted as yyyy-mm |
static java.lang.String |
THISMAGICVALUE
A magic value which, if passed as value of any of the paramaters, will be taken to mean the current value |
static java.lang.String |
UNTILMAGICTOKEN
a magic token on which I shall look for the day until which I should output |
protected static java.lang.String |
VIEW
the name of the convenience view in the database from which I will collect all the information I need |
| Fields inherited from class uk.co.weft.domutil.DocumentGeneratorImpl |
allowXSLFromContext, debug, doctype, dtdPublicId, DTDPUBLICIDCONFIGTOKEN, dtdQualifiedName, DTDQUALIFIEDNAMECONFIGTOKEN, dtdSystemId, DTDSYSTEMIDCONFIGTOKEN, generateDTD, genxml, rootGenerator, rootName, xmlns, xslStylesheetName |
| Constructor Summary | |
DayView()
|
|
| Methods inherited from class uk.co.weft.domutil.DocumentGeneratorImpl |
accept, cleanString, destroy, generate, getNamespaceURI, getRootGenerator, getRootGenerator, getTransformURL, init, init, setRootGenerator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String THISMAGICVALUE
public static final java.lang.String DAYMAGICTOKEN
public static final java.lang.String FROMMAGICTOKEN
public static final java.lang.String UNTILMAGICTOKEN
public static final java.lang.String MONTHMAGICTOKEN
protected static final java.lang.String VIEW
protected static final java.lang.String EVENTDATEFIELD
protected uk.co.weft.event.DayView.EventElementGenerator eventEltGenerator
| Constructor Detail |
public DayView()
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||