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. |
GetConstraintTypepublic 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 IlvConstraintReaderreadConstraint in class IlvSimpleConstraintReaderelem - 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 IlvSimpleConstraintReaderfrom - The from activity for the constraint.to - The to activity for the constraint.type - The type of constraint.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.