Class XQueryOperation
java.lang.Object
ro.sync.ecss.extensions.commons.operations.TransformOperation
ro.sync.ecss.extensions.commons.operations.XQueryOperation
- All Implemented Interfaces:
AuthorOperation
,Extension
An implementation of an operation to apply an XQuery script on a element and replacing it with
the result of the XQuery transformation, or inserting the result in the document.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.operations.TransformOperation
ACTION_AT_CARET, ACTION_INSERT_AFTER, ACTION_INSERT_AS_FIRST_CHILD, ACTION_INSERT_AS_LAST_CHILD, ACTION_INSERT_BEFORE, ACTION_REPLACE, ARGUMENT_SCRIPT, ARGUMENT_SCRIPT_PARAMETERS, CARET_POSITION_AFTER, CARET_POSITION_BEFORE, CARET_POSITION_EDITABLE, CARET_POSITION_END, CARET_POSITION_PRESERVE, CARET_POSITION_START, CURRENT_ELEMENT_LOCATION
Fields inherited from interface ro.sync.ecss.extensions.api.AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Transformer
createTransformer
(AuthorAccess authorAccess, Source xquerySrc) Create XQuery transformerMethods inherited from class ro.sync.ecss.extensions.commons.operations.TransformOperation
canTreatAsScript, createTransformer, doOperation, getArguments
-
Constructor Details
-
XQueryOperation
public XQueryOperation()
-
-
Method Details
-
createTransformer
protected Transformer createTransformer(AuthorAccess authorAccess, Source xquerySrc) throws TransformerConfigurationException Create XQuery transformer- Specified by:
createTransformer
in classTransformOperation
- Parameters:
authorAccess
- The author access.xquerySrc
- The XQuery source.- Returns:
- The transformer
- Throws:
TransformerConfigurationException
-
getDescription
- Specified by:
getDescription
in interfaceExtension
- Overrides:
getDescription
in classTransformOperation
- Returns:
- The description of the extension.
- See Also:
-