Class BlockTransformScript
- java.lang.Object
-
- com.microstrategy.web.blocks.xforms.BlockTransformScript
-
public class BlockTransformScript extends java.lang.Object
A Block Transform Script is a textual script that specifies how to transform a given Block tree. Each "step" of this script is performed sequentially by the way of a given Block Transform (see
BlockTransform
). The result is either a transformed Block tree (which has the same root) or a new Block tree which may be a subset of the original Block tree or a completely newly generated result.The process of executing a script involves two separate steps:
- First, the textual script is parsed (see
setScript(String)
) and converted into an "executable" form - Then, it is executed on a given "root Block" (see
execute(Block)
).
- If the script is malformed, an
BlockTransformScriptInvalid
exception is raised. - If the script fails in the process of execution, a
BlockTransformExecutionFailure
exception is raised.
- First, the textual script is parsed (see
-
-
Constructor Summary
Constructors Constructor Description BlockTransformScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Block
execute(Block rootBlock)
java.lang.String
getScript()
void
setScript(java.lang.String script)
-
-
-
Method Detail
-
setScript
public void setScript(java.lang.String script) throws BlockTransformScriptInvalid
- Throws:
BlockTransformScriptInvalid
-
getScript
public java.lang.String getScript()
-
execute
public Block execute(Block rootBlock) throws BlockTransformExecutionFailure
- Throws:
BlockTransformExecutionFailure
-
-