public class IlvGeneralConstraintReader extends IlvSimpleConstraintReader
Constructor and Description |
---|
IlvGeneralConstraintReader()
Creates an
IlvGeneralConstraintReader . |
Modifier and Type | Method and Description |
---|---|
protected IlvConstraint |
createConstraint(IlvActivity from,
IlvActivity to,
IlvConstraintType type)
Creates an
IlvGeneralConstraint with the specified parameters. |
IlvConstraint |
readConstraint(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvGeneralConstraint from a given Element . |
GetConstraintType
public IlvGeneralConstraintReader()
IlvGeneralConstraintReader
.public IlvConstraint readConstraint(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvGeneralConstraint
from a given Element
.
This method does the following:
Element
and gets the
IDs of the from and to activities.
IlvGeneralConstraint
.
This function does not add the newly created constraint to the Gantt model.
readConstraint
in interface IlvConstraintReader
readConstraint
in class IlvSimpleConstraintReader
elem
- The given element to read from.readContext
- The read context.IlvGanttReaderException
- if an error occurs while reading the constraint.createConstraint(ilog.views.gantt.IlvActivity, ilog.views.gantt.IlvActivity, ilog.views.gantt.IlvConstraintType)
protected IlvConstraint createConstraint(IlvActivity from, IlvActivity to, IlvConstraintType type)
IlvGeneralConstraint
with the specified parameters. This
method is called by readConstraint
. If you want
to create a customized constraint reader, you can override this method to
create a customized constraint.createConstraint
in class IlvSimpleConstraintReader
from
- The from activity for the constraint.to
- The to activity for the constraint.type
- The type of constraint.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.