@API(type=INTERNAL,
src=PUBLIC)
public abstract class PseudoClassOperation
extends java.lang.Object
implements AuthorOperation
A base class for the operations that changes a pseudo-class from an element.
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR| Constructor and Description |
|---|
PseudoClassOperation()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
protected abstract void |
execute(AuthorAccess authorAccess,
java.lang.String pseudoClassName,
AuthorElement targetElement)
Executes a pseudo-class change to an element.
|
ArgumentDescriptor[] |
getArguments() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionpublic void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException
AuthorOperationWorkspace.getPlatform().
To get to the Workspace you may use: AuthorAccess.getWorkspaceAccess().doOperation in interface AuthorOperationauthorAccess - 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)protected abstract void execute(AuthorAccess authorAccess, java.lang.String pseudoClassName, AuthorElement targetElement)
authorAccess - The access.pseudoClassName - The name of the pseudo class.targetElement - The element that is changed.public ArgumentDescriptor[] getArguments()
getArguments in interface AuthorOperationArgumentDescriptor representing
the arguments this operation uses.AuthorOperation.getArguments()© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.