Package com.saperion.connector.options
Class Options
java.lang.Object
com.saperion.connector.options.Options
A class that contains the options that are used to generate a rendition like
- target format
- timeout
- engine specific additional options
newOptions(TargetFormat).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilderChain used to create a new Options instance. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the additional options.intConvenience method to find out the number of the page to be rendered.static Options.BuilderChainnewOptions(TargetFormat target) Creates a new options instance with the specified target format.booleantoString()
-
Field Details
-
DEFAULT_TARGET
-
DEFAULT_TIMEOUT
-
-
Constructor Details
-
Options
protected Options()Instantiates a new options.
-
-
Method Details
-
renderWholeDocument
public boolean renderWholeDocument()- Returns:
- true, if whole document should be rendered
-
getPaging
- Returns:
- the page or pages to be rendered
-
getTargetFormat
- Returns:
- the format to render to
-
getRedactions
- Returns:
- the redaction-mode settings
-
getTimeOut
- Returns:
- timeout for the render-process
-
getAdditionalOptions
Gets the additional options.- Returns:
- the additional options
-
getPageToRender
public int getPageToRender()Convenience method to find out the number of the page to be rendered. If only one single page is requested, the page number is returned. For all other cases, -1 is returned.- Returns:
- number of page to render, or -1 if more than one page or the whole document will be rendered
-
toString
-
newOptions
Creates a new options instance with the specified target format.- Parameters:
target- the target format- Returns:
- the builder chain that can be used to complete the creation of the options instance
-