Class LoadOptions
- java.lang.Object
-
- com.aspose.tasks.LoadOptions
-
public class LoadOptions extends Object
Allows to specify additional load parameters when loading a project from file or stream.
-
-
Constructor Summary
Constructors Constructor Description LoadOptions()Initializes a new instance of theLoadOptionsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancellationTokengetCancellationToken()Gets a token which can be used to cancel a project loading operation.CharsetgetEncoding()Gets encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats.ParseErrorCallbackgetErrorHandler()Gets a callback method to handle xml parse errors.StringgetPassword()Gets a protection password.PrimaveraReadOptionsgetPrimaveraReadOptions()Gets a specified instance of thePrimaveraReadOptionsclass which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).voidsetCancellationToken(CancellationToken value)Sets a token which can be used to cancel a project loading operation.voidsetEncoding(Charset value)Sets encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats.voidsetErrorHandler(ParseErrorCallback value)Sets a callback method to handle xml parse errors.voidsetPassword(String value)Sets a protection password.voidsetPrimaveraReadOptions(PrimaveraReadOptions value)Sets a specified instance of thePrimaveraReadOptionsclass which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).
-
-
-
Constructor Detail
-
LoadOptions
public LoadOptions()
Initializes a new instance of the
LoadOptionsclass.
-
-
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.
-
getEncoding
public final Charset getEncoding()
Gets encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats. The default encoding is UTF8.
- Returns:
- encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats.
-
setEncoding
public final void setEncoding(Charset value)
Sets encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats. The default encoding is UTF8.
- Parameters:
value- encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats.
-
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
PrimaveraReadOptionsclass 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
PrimaveraReadOptionsclass 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
PrimaveraReadOptionsclass 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 thePrimaveraReadOptionsclass which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).
-
-