public interface TransformationOptions extends Serializable, org.gytheio.util.Mergable<TransformationOptions>
| Modifier and Type | Method and Description |
|---|---|
void |
addSourceOptions(TransformationSourceOptions sourceOptions)
Adds the given sourceOptions to the sourceOptionsMap.
|
Map<String,Serializable> |
getAdditionalOptions()
Gets the additional transformation options not explicitly modeled in an
implementation.
|
Boolean |
getIncludeEmbedded()
If the source content includes embedded resources,
should the transformer attempt to transform these
as well?
Not many transformers do support embedded resources,
so this option will only affect those that can.
|
int |
getPageLimit()
Get the page limit before returning EOF.
|
<T extends TransformationSourceOptions> |
getSourceOptions(Class<T> clazz)
Gets the appropriate source options for the given mimetype if available.
|
Map<Class<? extends TransformationSourceOptions>,TransformationSourceOptions> |
getSourceOptionsMap()
Gets the map of
TransformationSourceOptions class to an object of that class holding
the source options values. |
long |
getTimeoutMs()
Gets the timeout (ms) on the InputStream after which an IOExecption is thrown
to terminate very slow transformations or a subprocess is terminated (killed).
|
void |
setAdditionalOptions(Map<String,Serializable> additionalOptions)
Sets the additional transformation options not explicitly modeled in an
implementation.
|
void |
setIncludeEmbedded(Boolean includeEmbedded)
If the source content includes embedded resources,
should the transformer attempt to transform these
as well?
Not many transformers do support embedded resources,
so this option will only affect those that can.
|
void |
setPageLimit(int pageLimit)
Set the number of pages read from the source before returning EOF.
|
void |
setSourceOptionsList(Collection<TransformationSourceOptions> sourceOptionsList)
Sets the list of source options further describing how the source should
be transformed based on its mimetype.
|
void |
setSourceOptionsMap(Map<Class<? extends TransformationSourceOptions>,TransformationSourceOptions> sourceOptionsMap)
Sets the map of
TransformationSourceOptions class to an object of that class holding
the source options values. |
void |
setTimeoutMs(long timeoutMs)
Sets a timeout (ms) on the InputStream after which an IOExecption is thrown
to terminate very slow transformations or to terminate (kill) a subprocess.
|
Map<Class<? extends TransformationSourceOptions>,TransformationSourceOptions> getSourceOptionsMap()
TransformationSourceOptions class to an object of that class holding
the source options values.void setSourceOptionsMap(Map<Class<? extends TransformationSourceOptions>,TransformationSourceOptions> sourceOptionsMap)
TransformationSourceOptions class to an object of that class holding
the source options values.sourceOptionsMap - void setSourceOptionsList(Collection<TransformationSourceOptions> sourceOptionsList)
sourceOptionsList - the source options list<T extends TransformationSourceOptions> T getSourceOptions(Class<T> clazz)
sourceMimetype - void addSourceOptions(TransformationSourceOptions sourceOptions)
Note that if source options of the same class already exists a new merged source options object is added.
sourceOptions - long getTimeoutMs()
void setTimeoutMs(long timeoutMs)
timeoutMs - in milliseconds. If less than or equal to zero (the default)
there is no timeout.
If greater than zero the readLimitTimeMs must not be set.int getPageLimit()
void setPageLimit(int pageLimit)
pageLimit - the number of pages to be read from the source. If less
than or equal to zero (the default) no limit is applied.void setIncludeEmbedded(Boolean includeEmbedded)
includeEmbedded - the include embedded flag.Boolean getIncludeEmbedded()
Map<String,Serializable> getAdditionalOptions()
void setAdditionalOptions(Map<String,Serializable> additionalOptions)
additionalOptions - the additional options mapCopyright © 2015 Alfresco Software. All rights reserved.