Class ReshapeNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.documentplatform.ReshapeNode
-
public class ReshapeNode extends Node
A node used to apply document format conversions and other processing using the jadice document platform.Its worker respects
PageCountLimit
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReshapeNode.AnnotationMimeTypes
As it is not possible to determine an annotation type automatically, its MIME type must be provided in the annotation'sStreamDescriptor
.static class
ReshapeNode.OutputMode
Enum controlling when and how output data streams are generated.-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description ReshapeNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReshapeNode.OutputMode
getOutputMode()
Returns current output mode.ReshapeControls
getReshapeControls()
String
getTargetMimeType()
String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.void
setOutputMode(ReshapeNode.OutputMode outputMode)
Set output modeReshapeNode.OutputMode
for stream generation.void
setReshapeControls(ReshapeControls controls)
void
setTargetMimeType(String targetMimeType)
Set the desired target MIME-type.-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
-
-
-
-
Method Detail
-
getWorkerClassName
public String getWorkerClassName()
Description copied from class:Node
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name. By default, the worker class name is- The same as the node name with the trailing "Node" replaced by "Worker" if the node name ends in "Node"
- The node class name with an appended "Worker" otherwise.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassName
in classNode
- Returns:
- the full qualified class name of the worker of this node.
-
getTargetMimeType
public String getTargetMimeType()
- Returns:
- the desired target MIME-type
-
setTargetMimeType
public void setTargetMimeType(String targetMimeType)
Set the desired target MIME-type. The types currently supported areapplication/pdf
andimage/tiff
.- Parameters:
targetMimeType
- the desired target MIME-type
-
getOutputMode
public ReshapeNode.OutputMode getOutputMode()
Returns current output mode.- Returns:
- Current output mode
-
setOutputMode
public void setOutputMode(ReshapeNode.OutputMode outputMode)
Set output modeReshapeNode.OutputMode
for stream generation.- Parameters:
outputMode
- Output mode
-
setReshapeControls
public void setReshapeControls(ReshapeControls controls)
-
getReshapeControls
public ReshapeControls getReshapeControls()
-
-