public class IlvGeneralResourceReader extends IlvSimpleResourceReader
IlvGeneralResourceReader reads an
IlvGeneralResource from a given Element.| Constructor and Description |
|---|
IlvGeneralResourceReader()
Creates an
IlvGeneralResourceReader. |
| Modifier and Type | Method and Description |
|---|---|
protected IlvResource |
createResource(String id,
String name,
float quantity)
Creates an
IlvGeneralResource with the specified parameters. |
IlvResource |
readResource(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvGeneralResource from a given Element. |
public IlvGeneralResourceReader()
IlvGeneralResourceReader.public IlvResource readResource(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvGeneralResource from a given Element.readResource in interface IlvResourceReaderreadResource in class IlvSimpleResourceReaderelem - The given element to read from.readContext - The read context.IlvGanttReaderException - if an error occurs while reading the resource.createResource(java.lang.String, java.lang.String, float)protected IlvResource createResource(String id, String name, float quantity)
IlvGeneralResource with the specified parameters. This
method is called by readResource. If you want to
create a customized resource reader, you can override this method to
create a customized resource.createResource in class IlvSimpleResourceReaderid - The ID for the new resource.name - The name for the new resource.quantity - The quantity for the new resource.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.