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, readAll
addListenersToProject, addListenersToReader, addProjectListener
public void setProjectID(int projectID)
projectID
- project IDpublic void setCharset(Charset charset)
setCharset
in interface HasCharset
charset
- Charset used when reading the filepublic Charset getCharset()
getCharset
in interface HasCharset
public boolean getLinkCrossProjectRelations()
public void setLinkCrossProjectRelations(boolean linkCrossProjectRelations)
linkCrossProjectRelations
- true if cross project relations should be linkedpublic ProjectFile read(InputStream is) throws MPXJException
ProjectReader
read
in interface ProjectReader
is
- InputStream instanceMPXJException
public List<ProjectFile> readAll(InputStream is) throws MPXJException
readAll
in interface ProjectReader
readAll
in class AbstractProjectStreamReader
is
- input streamMPXJException
public Map<Integer,String> listProjects(InputStream is) throws MPXJException
is
- input stream used to read XER fileMPXJException
public 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–2024 Packwood Software. All rights reserved.