public final class PrimaveraXERFileReader extends AbstractProjectStreamReader implements HasCharset
| Constructor and Description |
|---|
PrimaveraXERFileReader() |
| Modifier and Type | Method and Description |
|---|---|
Map<FieldType,String> |
getActivityFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
Map<FieldType,String> |
getAssignmentFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
Charset |
getCharset()
Retrieve the Charset used to read the file.
|
Map<String,DataType> |
getFieldTypeMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
boolean |
getIgnoreErrors()
Retrieve the flag which determines if datatype parse errors can be ignored.
|
boolean |
getLinkCrossProjectRelations()
Retrieve a flag indicating if, when using `realAll` to retrieve all
projects from a file, cross project relations should be linked together.
|
boolean |
getMatchPrimaveraWBS()
If set to true, the WBS for each task read from Primavera will exactly match the WBS value shown in Primavera.
|
Map<FieldType,String> |
getResourceFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
Map<FieldType,String> |
getRoleFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
Map<FieldType,String> |
getWbsFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
boolean |
getWbsIsFullPath()
Returns true if the WBS attribute of a summary task
contains a dot separated list representing the WBS hierarchy.
|
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 an
XER file to be read in a single pass.
|
void |
setCharset(Charset charset)
Set the Charset used to read the file.
|
void |
setIgnoreErrors(boolean ignoreErrors)
Set a flag to determine if datatype parse errors can be ignored.
|
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 |
setMatchPrimaveraWBS(boolean matchPrimaveraWBS)
If set to true, the WBS for each task read from Primavera will exactly match the WBS value shown in Primavera.
|
void |
setProjectID(int projectID)
Set the ID of the project to be read.
|
void |
setWbsIsFullPath(boolean wbsIsFullPath)
Sets a flag indicating if the WBS attribute of a summary task
contains a dot separated list representing the WBS hierarchy.
|
read, read, readAll, readAlladdListenersToProject, addListenersToReader, addProjectListenerpublic void setProjectID(int projectID)
projectID - project IDpublic void setCharset(Charset charset)
setCharset in interface HasCharsetcharset - Charset used when reading the filepublic Charset getCharset()
getCharset in interface HasCharsetpublic boolean getLinkCrossProjectRelations()
public void setLinkCrossProjectRelations(boolean linkCrossProjectRelations)
linkCrossProjectRelations - true if cross project relations should be linkedpublic ProjectFile read(InputStream is) throws MPXJException
ProjectReaderread in interface ProjectReaderis - InputStream instanceMPXJExceptionpublic List<ProjectFile> readAll(InputStream is) throws MPXJException
readAll in interface ProjectReaderreadAll in class AbstractProjectStreamReaderis - input streamMPXJExceptionpublic Map<Integer,String> listProjects(InputStream is) throws MPXJException
is - input stream used to read XER fileMPXJExceptionpublic Map<String,DataType> getFieldTypeMap()
public Map<FieldType,String> getResourceFieldMap()
public Map<FieldType,String> getRoleFieldMap()
public Map<FieldType,String> getWbsFieldMap()
public Map<FieldType,String> getActivityFieldMap()
public Map<FieldType,String> getAssignmentFieldMap()
public boolean getMatchPrimaveraWBS()
public void setMatchPrimaveraWBS(boolean matchPrimaveraWBS)
matchPrimaveraWBS - flag valuepublic boolean getWbsIsFullPath()
public void setWbsIsFullPath(boolean wbsIsFullPath)
wbsIsFullPath - true if WBS attribute is a hierarchypublic void setIgnoreErrors(boolean ignoreErrors)
ignoreErrors - pass true to ignore errorspublic boolean getIgnoreErrors()
Copyright © 2000–2025 MPXJ. All rights reserved.