com.aspose.tasks

Interfaces

Classes

Exceptions

Class LoadOptions


  • public class LoadOptions
    extends Object

    Allows to specify additional load parameters when loading a project from file or stream.

    • Constructor Detail

      • LoadOptions

        public LoadOptions()

        Initializes a new instance of the LoadOptions class.

    • Method Detail

      • getCancellationToken

        public final CancellationToken getCancellationToken()

        Gets a token which can be used to cancel a project loading operation.

        Returns:
        a token which can be used to cancel a project loading operation.
      • setCancellationToken

        public final void setCancellationToken​(CancellationToken value)

        Sets a token which can be used to cancel a project loading operation.

        Parameters:
        value - a token which can be used to cancel a project loading operation.
      • getErrorHandler

        public final ParseErrorCallback getErrorHandler()

        Gets a callback method to handle xml parse errors.

        Returns:
        a callback method to handle xml parse errors.
      • setErrorHandler

        public final void setErrorHandler​(ParseErrorCallback value)

        Sets a callback method to handle xml parse errors.

        Parameters:
        value - a callback method to handle xml parse errors.
      • getPassword

        public final String getPassword()

        Gets a protection password.

        Returns:
        a protection password.
      • setPassword

        public final void setPassword​(String value)

        Sets a protection password.

        Parameters:
        value - a protection password.
      • getPrimaveraReadOptions

        public final PrimaveraReadOptions getPrimaveraReadOptions()

        Gets a specified instance of the PrimaveraReadOptions class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).

        Returns:
        a specified instance of the PrimaveraReadOptions class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).
      • setPrimaveraReadOptions

        public final void setPrimaveraReadOptions​(PrimaveraReadOptions value)

        Sets a specified instance of the PrimaveraReadOptions class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).

        Parameters:
        value - a specified instance of the PrimaveraReadOptions class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).