public class IlvSimpleResourceReader extends Object implements IlvResourceReader
IlvSimpleResourceReader
reads an
IlvSimpleResource
from a given Element
.Constructor and Description |
---|
IlvSimpleResourceReader()
Creates an
IlvSimpleResourceReader . |
Modifier and Type | Method and Description |
---|---|
protected IlvResource |
createResource(String id,
String name,
float quantity)
Creates an
IlvSimpleResource with the specified parameters. |
IlvResource |
readResource(Element elem,
IlvGanttDocumentReader.Context readContext)
Reads an
IlvSimpleResource from a given Element . |
public IlvSimpleResourceReader()
IlvSimpleResourceReader
.public IlvResource readResource(Element elem, IlvGanttDocumentReader.Context readContext) throws IlvGanttReaderException
IlvSimpleResource
from a given Element
.readResource
in interface IlvResourceReader
elem
- The given element to read from.readContext
- The read context.IlvGanttReaderException
createResource(java.lang.String, java.lang.String, float)
protected IlvResource createResource(String id, String name, float quantity)
IlvSimpleResource
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.id
- The id for the new resource.name
- The name for the new resource.quantity
- The quantity for the new resource.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.