Class PromoteTopicrefOperation
java.lang.Object
ro.sync.ecss.extensions.dita.map.topicref.PromoteTopicrefOperation
- All Implemented Interfaces:
AuthorOperation,Extension
@API(type=INTERNAL,
src=PUBLIC)
public class PromoteTopicrefOperation
extends Object
implements AuthorOperation
Implements a promote operation. The operation may change the type of element
e.g. topicref becomes chapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe insert position argument.static final StringAn XPath expression that identifies the content to be demoted.Fields inherited from interface ro.sync.ecss.extensions.api.AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new promote operation with a defined set of argument descriptors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoOperation(AuthorAccess authorAccess, ArgumentsMap args) Executes the operationReturns the arguments of this operatonsReturns the description of this operation
-
Field Details
-
ARGUMENT_SOURCE_LOCATION
An XPath expression that identifies the content to be demoted.- See Also:
-
ARGUMENT_RELATIVE_LOCATION
The insert position argument.- See Also:
-
-
Constructor Details
-
PromoteTopicrefOperation
public PromoteTopicrefOperation()Constructs a new promote operation with a defined set of argument descriptors
-
-
Method Details
-
getDescription
Returns the description of this operation- Specified by:
getDescriptionin interfaceExtension- Returns:
- The description of the extension.
- See Also:
-
getArguments
Returns the arguments of this operatons- Specified by:
getArgumentsin interfaceAuthorOperation- Returns:
- An array of
ArgumentDescriptorrepresenting the arguments this operation uses. - See Also:
-
doOperation
public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException Executes the operation- Specified by:
doOperationin interfaceAuthorOperation- Parameters:
authorAccess- The author access. Provides access to specific informations and actions for editor, document, workspace, tables, change tracking, utility a.s.o.args- The map of arguments. All the arguments defined by methodAuthorOperation.getArguments()must be present in the map of arguments.- Throws:
AuthorOperationException- Thrown when the operation fails.- See Also:
-