public class IlvGeneralReservationReader extends IlvSimpleReservationReader
Constructor and Description |
---|
IlvGeneralReservationReader()
Creates an
IlvGeneralReservationReader . |
Modifier and Type | Method and Description |
---|---|
protected IlvReservation |
createReservation(IlvResource resource,
IlvActivity activity)
Creates an
IlvGeneralReservation with the specified parameters. |
IlvReservation |
readReservation(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvGeneralReservation from a given Element . |
public IlvGeneralReservationReader()
IlvGeneralReservationReader
.public IlvReservation readReservation(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvGeneralReservation
from a given Element
.
This method does the following:
Element
and gets the
IDs of the activity and the resource.
IlvGeneralReservation
.
This function does not add the newly created reservation to the Gantt model.
readReservation
in interface IlvReservationReader
readReservation
in class IlvSimpleReservationReader
elem
- The given element to read from.readContext
- The read context.IlvGanttReaderException
- if an error occurs while reading the reservation.createReservation(ilog.views.gantt.IlvResource, ilog.views.gantt.IlvActivity)
protected IlvReservation createReservation(IlvResource resource, IlvActivity activity)
IlvGeneralReservation
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.createReservation
in class IlvSimpleReservationReader
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.