public class IlvSimpleConstraintReader extends Object implements IlvConstraintReader
Constructor and Description |
---|
IlvSimpleConstraintReader()
Creates an
IlvSimpleConstraintReader . |
Modifier and Type | Method and Description |
---|---|
protected IlvConstraint |
createConstraint(IlvActivity from,
IlvActivity to,
IlvConstraintType type)
Creates an
IlvSimpleConstraint with the specified parameters. |
static IlvConstraintType |
GetConstraintType(String type)
Gets the constraint type from a string.
|
IlvConstraint |
readConstraint(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvSimpleConstraint from a given Element . |
public IlvSimpleConstraintReader()
IlvSimpleConstraintReader
.public IlvConstraint readConstraint(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvSimpleConstraint
from a given Element
.
This method does the following:
Element
and gets the IDs of the
from and to activities.
IlvSimpleConstraint
.
This function does not add the newly created constraint to the Gantt
model.
readConstraint
in interface IlvConstraintReader
elem
- The given element to read from.readContext
- The read context.IlvGanttReaderException
createConstraint(ilog.views.gantt.IlvActivity, ilog.views.gantt.IlvActivity, ilog.views.gantt.IlvConstraintType)
public static IlvConstraintType GetConstraintType(String type)
type
- The String indicating the type of constraint. It must be one of
the following: "Start-Start", "Start-End", "End-Start" or
"End-End".protected IlvConstraint createConstraint(IlvActivity from, IlvActivity to, IlvConstraintType type)
IlvSimpleConstraint
with the specified parameters.
This method is called by the readConstraint
.
If you want to create a customized constraint reader, you can
override this method to create a customized constraint.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.