Class TransformOperation

java.lang.Object
ro.sync.ecss.extensions.commons.operations.TransformOperation
All Implemented Interfaces:
AuthorOperation, Extension
Direct Known Subclasses:
XQueryOperation, XSLTOperation

@API(type=EXTENDABLE, src=PUBLIC) public abstract class TransformOperation extends Object implements AuthorOperation
An implementation of an operation to apply a script (XSLT or XQuery) on a element and replacing it with the result of the transformation or inserting the result in the document.
  • Field Details

    • CURRENT_ELEMENT_LOCATION

      public static final String CURRENT_ELEMENT_LOCATION
      The name of a parameter containing the location path of the current element inside the source element. This can be accessed in the script to perform context sensitive actions.
      See Also:
    • ACTION_REPLACE

      public static final String ACTION_REPLACE
      The name of the operation action indicating a replace of the target node with the result of the transformation.
      See Also:
    • ACTION_AT_CARET

      public static final String ACTION_AT_CARET
      The name of the operation action indicating that the transformation result should be inserted at the caret position.
      See Also:
    • ACTION_INSERT_BEFORE

      public static final String ACTION_INSERT_BEFORE
      The name of the operation action indicating that the transformation result should be inserted before the target node.
      See Also:
    • ACTION_INSERT_AFTER

      public static final String ACTION_INSERT_AFTER
      The name of the operation action indicating that the transformation result should be inserted after the target node.
      See Also:
    • ACTION_INSERT_AS_FIRST_CHILD

      public static final String ACTION_INSERT_AS_FIRST_CHILD
      The name of the operation action indicating that the transformation result should be inserted as the first child of the target node.
      See Also:
    • ACTION_INSERT_AS_LAST_CHILD

      public static final String ACTION_INSERT_AS_LAST_CHILD
      The name of the operation action indicating that the transformation result should be inserted as the last child of the target node.
      See Also:
    • CARET_POSITION_PRESERVE

      public static final String CARET_POSITION_PRESERVE
      Constant for the caret position indicating that the same caret position offset should be preserved.
      See Also:
    • CARET_POSITION_BEFORE

      public static final String CARET_POSITION_BEFORE
      Constant for the caret position indicating that the caret should be positioned just before the inserted fragment.
      See Also:
    • CARET_POSITION_START

      public static final String CARET_POSITION_START
      Constant for the caret position indicating that the caret should be positioned just at the start of the inserted fragment, inside that fragment.
      See Also:
    • CARET_POSITION_EDITABLE

      public static final String CARET_POSITION_EDITABLE
      Constant for the caret position indicating that the caret should be positioned just at the start of the inserted fragment, in the first editable position.
      See Also:
    • CARET_POSITION_END

      public static final String CARET_POSITION_END
      Constant for the caret position indicating that the caret should be positioned just at the end of the inserted fragment, inside that fragment.
      See Also:
    • CARET_POSITION_AFTER

      public static final String CARET_POSITION_AFTER
      Constant for the caret position indicating that the caret should be positioned just after the inserted fragment.
      See Also:
    • ARGUMENT_SCRIPT

      protected String ARGUMENT_SCRIPT
      The XSLT or XQuery script. The value is script.
    • ARGUMENT_SCRIPT_PARAMETERS

      public static final String ARGUMENT_SCRIPT_PARAMETERS
      External parameters argument. Pairs key=value separated by comma or new line.
      See Also:
  • Constructor Details

    • TransformOperation

      public TransformOperation()
      Constructor.
  • Method Details