Class PrimaveraReadOptions


  • public class PrimaveraReadOptions
    extends Object

    Allows to specify additional options when reading Primavera Xml or Primavera Xer files.

    • Constructor Detail

      • PrimaveraReadOptions

        public PrimaveraReadOptions()

        Initializes a new instance of the PrimaveraReadOptions class.

    • Method Detail

      • getPreserveUids

        public final boolean getPreserveUids()

        Gets a flag that specifies whether original unique identifiers of entities should be preserved.

        Returns:
        a flag that specifies whether original unique identifiers of entities should be preserved.
      • setPreserveUids

        public final void setPreserveUids​(boolean value)

        Sets a flag that specifies whether original unique identifiers of entities should be preserved.

        Parameters:
        value - 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:
        the UID of a project to read from file containing multiple projects.
      • setProjectUid

        public final void setProjectUid​(int value)

        Sets the UID of a project to read from file containing multiple projects.

        Parameters:
        value - 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:
        a flag that specifies whether baseline projects should be loaded.
      • setReadBaselineProjects

        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:
        value - 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:
        the behavior used to process tasks with undefined constraints read from XER format.
      • setUndefinedConstraintHandlingBehavior

        public final void setUndefinedConstraintHandlingBehavior​(int value)

        Specifies the behavior used to process tasks with undefined constraints read from XER format.

        Parameters:
        value - the behavior used to process tasks with undefined constraints read from XER format.