public final class PrimaveraPMFileReader extends AbstractProjectStreamReader
| Constructor and Description |
|---|
PrimaveraPMFileReader() |
| Modifier and Type | Method and Description |
|---|---|
BaselineStrategy |
getBaselineStrategy()
Retrieve the strategy to use when populating baseline fields.
|
boolean |
getLinkCrossProjectRelations()
Retrieve a flag indicating if, when using `realAll` to retrieve all
projects from a file, cross project relations should be linked together.
|
Map<Integer,String> |
listProjects(InputStream is)
Populates a Map instance representing the IDs and names of
projects available in the current file.
|
ProjectFile |
read(InputStream is)
Read a single schedule from a file where the contents of the project file
are supplied via an input stream.
|
List<ProjectFile> |
readAll(InputStream is)
This is a convenience method which allows all projects in a
PMXML file to be read in a single pass.
|
void |
setBaselineStrategy(BaselineStrategy strategy)
Set the strategy to use when populating baseline fields.
|
void |
setLinkCrossProjectRelations(boolean linkCrossProjectRelations)
Sets a flag indicating if, when using `realAll` to retrieve all
projects from a file, cross project relations should be linked together.
|
void |
setProjectID(int projectID)
Set the ID of the project to be read.
|
read, read, readAll, readAlladdListenersToProject, addListenersToReader, addProjectListenerpublic void setProjectID(int projectID)
projectID - project IDpublic boolean getLinkCrossProjectRelations()
public void setLinkCrossProjectRelations(boolean linkCrossProjectRelations)
linkCrossProjectRelations - true if cross project relations should be linkedpublic void setBaselineStrategy(BaselineStrategy strategy)
strategy - baseline strategypublic BaselineStrategy getBaselineStrategy()
public Map<Integer,String> listProjects(InputStream is) throws MPXJException
is - input stream used to read XER fileMPXJExceptionpublic ProjectFile read(InputStream is) throws MPXJException
ProjectReaderis - InputStream instanceMPXJExceptionpublic List<ProjectFile> readAll(InputStream is) throws MPXJException
readAll in interface ProjectReaderreadAll in class AbstractProjectStreamReaderis - input streamMPXJExceptionCopyright © 2000–2025 MPXJ. All rights reserved.