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 theLoadOptions
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CancellationToken
getCancellationToken()
Gets a token which can be used to cancel a project loading operation.ParseErrorCallback
getErrorHandler()
Gets a callback method to handle xml parse errors.String
getPassword()
Gets a protection password.PrimaveraXmlReadingOptions
getPrimaveraOptions()
Deprecated.This member is obsolete and will be removed after the release 22.10.PrimaveraReadOptions
getPrimaveraReadOptions()
Gets a specified instance of thePrimaveraReadOptions
class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).void
setCancellationToken(CancellationToken value)
Sets a token which can be used to cancel a project loading operation.void
setErrorHandler(ParseErrorCallback value)
Sets a callback method to handle xml parse errors.void
setPassword(String value)
Sets a protection password.void
setPrimaveraOptions(PrimaveraXmlReadingOptions value)
Deprecated.This member is obsolete and will be removed after the release 22.10.void
setPrimaveraReadOptions(PrimaveraReadOptions value)
Sets a specified instance of thePrimaveraReadOptions
class 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
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.
-
getPrimaveraOptions
@Deprecated public final PrimaveraXmlReadingOptions getPrimaveraOptions()
Deprecated.This member is obsolete and will be removed after the release 22.10. Please use PrimaveraReadOptions instead.Gets a specified instance of the
PrimaveraXmlReadingOptions
class.- Returns:
- a specified instance of the
PrimaveraXmlReadingOptions
class.
-
setPrimaveraOptions
@Deprecated public final void setPrimaveraOptions(PrimaveraXmlReadingOptions value)
Deprecated.This member is obsolete and will be removed after the release 22.10. Please use PrimaveraReadOptions instead.Sets a specified instance of the
PrimaveraXmlReadingOptions
class.- Parameters:
value
- a specified instance of thePrimaveraXmlReadingOptions
class.
-
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 thePrimaveraReadOptions
class which can be used to customize the behavior of loading Primavera formats (Primavera P6 XER or Primavera P6 Xml).
-
-