PrimaveraReadOptions
Inheritance: java.lang.Object
public class PrimaveraReadOptions
Allows to specify additional options when reading Primavera Xml or Primavera Xer files.
Constructors
Constructor | Description |
---|---|
PrimaveraReadOptions() | Initializes a new instance of the PrimaveraReadOptions class. |
Methods
Method | Description |
---|---|
getPreserveUids() | Gets a flag that specifies whether original unique identifiers of entities should be preserved. |
getProjectUid() | Gets the UID of a project to read from file containing multiple projects. |
getReadBaselineProjects() | Gets a flag that specifies whether baseline projects should be loaded. |
getUndefinedConstraintHandlingBehavior() | Specifies the behavior used to process tasks with undefined constraints read from XER format. |
setPreserveUids(boolean value) | Sets a flag that specifies whether original unique identifiers of entities should be preserved. |
setProjectUid(int value) | Sets the UID of a project to read from file containing multiple projects. |
setReadBaselineProjects(boolean value) | Sets a flag that specifies whether baseline projects should be loaded. |
setUndefinedConstraintHandlingBehavior(int value) | Specifies the behavior used to process tasks with undefined constraints read from XER format. |
PrimaveraReadOptions()
public PrimaveraReadOptions()
Initializes a new instance of the PrimaveraReadOptions class.
getPreserveUids()
public final boolean getPreserveUids()
Gets a flag that specifies whether original unique identifiers of entities should be preserved.
Returns: boolean - a flag that specifies whether original unique identifiers of entities should be preserved.
getProjectUid()
public final int getProjectUid()
Gets the UID of a project to read from file containing multiple projects.
Returns: int - the UID of a project to read from file containing multiple projects.
getReadBaselineProjects()
public final boolean getReadBaselineProjects()
Gets a flag that specifies whether baseline projects should be loaded. The default value is true.
The flag is applicable to Primavera XML files containing baseline projects (baselines are not supported by XER format). The option can be set to false to speed up loading of a large project with baselines when baseline data is not needed.
Returns: boolean - a flag that specifies whether baseline projects should be loaded.
getUndefinedConstraintHandlingBehavior()
public final int getUndefinedConstraintHandlingBehavior()
Specifies the behavior used to process tasks with undefined constraints read from XER format.
Returns: int - the behavior used to process tasks with undefined constraints read from XER format.
setPreserveUids(boolean value)
public final void setPreserveUids(boolean value)
Sets a flag that specifies whether original unique identifiers of entities should be preserved.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a flag that specifies whether original unique identifiers of entities should be preserved. |
setProjectUid(int value)
public final void setProjectUid(int value)
Sets the UID of a project to read from file containing multiple projects.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the UID of a project to read from file containing multiple projects. |
setReadBaselineProjects(boolean value)
public final void setReadBaselineProjects(boolean value)
Sets a flag that specifies whether baseline projects should be loaded. The default value is true.
The flag is applicable to Primavera XML files containing baseline projects (baselines are not supported by XER format). The option can be set to false to speed up loading of a large project with baselines when baseline data is not needed.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a flag that specifies whether baseline projects should be loaded. |
setUndefinedConstraintHandlingBehavior(int value)
public final void setUndefinedConstraintHandlingBehavior(int value)
Specifies the behavior used to process tasks with undefined constraints read from XER format.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the behavior used to process tasks with undefined constraints read from XER format. |