Class XQueryOperation
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.operations.TransformOperation
-
- ro.sync.ecss.extensions.commons.operations.XQueryOperation
-
- All Implemented Interfaces:
AuthorOperation
,Extension
@API(type=INTERNAL, src=PUBLIC) public class XQueryOperation extends TransformOperation
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 Constructor Description XQueryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.xml.transform.Transformer
createTransformer(AuthorAccess authorAccess, javax.xml.transform.Source xquerySrc)
Create XQuery transformerjava.lang.String
getDescription()
-
Methods inherited from class ro.sync.ecss.extensions.commons.operations.TransformOperation
canTreatAsScript, createTransformer, doOperation, getArguments
-
-
-
-
Method Detail
-
createTransformer
protected javax.xml.transform.Transformer createTransformer(AuthorAccess authorAccess, javax.xml.transform.Source xquerySrc) throws javax.xml.transform.TransformerConfigurationException
Create XQuery transformer- Specified by:
createTransformer
in classTransformOperation
- Parameters:
authorAccess
- The author access.xquerySrc
- The XQuery source.- Returns:
- The transformer
- Throws:
javax.xml.transform.TransformerConfigurationException
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceExtension
- Overrides:
getDescription
in classTransformOperation
- Returns:
- The description of the extension.
- See Also:
Extension.getDescription()
-
-