public class IlvGeneralActivityReader extends IlvSimpleActivityReader
Constructor and Description |
---|
IlvGeneralActivityReader()
Creates an
IlvGeneralActivityReader . |
Modifier and Type | Method and Description |
---|---|
protected IlvActivity |
createActivity(String id,
String name,
Date start,
Date end)
Creates an
IlvGeneralActivity with the specified parameters. |
IlvActivity |
readActivity(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvGeneralActivity from a given
Element . |
getTimeReader, readTime, setTimeReader
public IlvGeneralActivityReader()
IlvGeneralActivityReader
.public IlvActivity readActivity(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvGeneralActivity
from a given
Element
.readActivity
in interface IlvActivityReader
readActivity
in class IlvSimpleActivityReader
elem
- The given element to read from.readContext
- The read context.IlvGanttReaderException
- if an error occurs while reading the activity.createActivity(java.lang.String, java.lang.String, java.util.Date, java.util.Date)
protected IlvActivity createActivity(String id, String name, Date start, Date end)
IlvGeneralActivity
with the specified parameters. This
method is called by readActivity
. If you want to
create a customized activity reader, you can override this method to
create a customized activity.createActivity
in class IlvSimpleActivityReader
id
- The ID for the new activity.name
- The name for the new activity.start
- The start time for the new activity.end
- The end time for the new activity.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.