public class IlvSimpleReservationReader extends Object implements IlvReservationReader
Constructor and Description |
---|
IlvSimpleReservationReader()
Creates an
IlvSimpleReservationReader . |
Modifier and Type | Method and Description |
---|---|
protected IlvReservation |
createReservation(IlvResource resource,
IlvActivity activity)
Creates an
IlvSimpleReservation with the specified parameters. |
IlvReservation |
readReservation(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvSimpleReservation from a given Element . |
public IlvSimpleReservationReader()
IlvSimpleReservationReader
.public IlvReservation readReservation(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvSimpleReservation
from a given Element
.
This method does the following:
Element
and gets the IDs of the
activity and the resource.
IlvSimpleReservation
.
This function does not add the newly created reservation to the Gantt
model.
readReservation
in interface IlvReservationReader
elem
- The given element to read from.readContext
- The read context.IlvGanttReaderException
createReservation(ilog.views.gantt.IlvResource, ilog.views.gantt.IlvActivity)
protected IlvReservation createReservation(IlvResource resource, IlvActivity activity)
IlvSimpleReservation
with the specified parameters.
This method is called by readReservation
.
If you want to create a customized reservation reader, you can
override this method to create a customized reservation.resource
- The resource for the new reservation.activity
- The activity for the new reservation.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.