@API(type=INTERNAL, src=PUBLIC) public class InsertOrReplaceFragmentOperation extends InsertFragmentOperation
InsertFragmentOperation
with the difference that the selection will be removed.ARGUMENT_DESCRIPTOR_FRAGMENT, ARGUMENT_DESCRIPTOR_GO_TO_NEXT_EDITABLE_POSITION, ARGUMENT_DESCRIPTOR_XPATH_LOCATION, ARGUMENT_FRAGMENT, ARGUMENT_GO_TO_NEXT_EDITABLE_POSITION, ARGUMENT_RELATIVE_LOCATION, ARGUMENT_XPATH_LOCATION
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
InsertOrReplaceFragmentOperation() |
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
ArgumentDescriptor[] |
getArguments() |
java.lang.String |
getDescription() |
doOperationInternal
public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException
AuthorOperation
Workspace.getPlatform()
.
To get to the Workspace
you may use: AuthorAccess.getWorkspaceAccess()
.doOperation
in interface AuthorOperation
doOperation
in class InsertFragmentOperation
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 method
AuthorOperation.getArguments()
must be present in the map of arguments.AuthorOperationException
- Thrown when the operation fails.AuthorOperation.doOperation(AuthorAccess, ArgumentsMap)
public java.lang.String getDescription()
getDescription
in interface Extension
getDescription
in class InsertFragmentOperation
Extension.getDescription()
public ArgumentDescriptor[] getArguments()
getArguments
in interface AuthorOperation
getArguments
in class InsertFragmentOperation
ArgumentDescriptor
representing
the arguments this operation uses.InsertFragmentOperation.getArguments()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.