@API(type=INTERNAL, src=PUBLIC) public abstract class FormSelectedTextOperation extends java.lang.Object implements AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
FormSelectedTextOperation() |
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap arguments)
Form sentences.
|
ArgumentDescriptor[] |
getArguments() |
protected abstract boolean |
isDelimiterBeforeTextNode(AuthorAccess authorAccess,
int contentOffset)
Decides if there is a sentence delimiter before the text node.
|
protected boolean |
isWordDelimiter(char ch)
Decides if the character is a sentence delimiter or not.
|
protected abstract char[] |
processTextContent(char[] charArray,
boolean isDelimiterBefore)
Process char array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public ArgumentDescriptor[] getArguments()
getArguments
in interface AuthorOperation
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
protected abstract boolean isDelimiterBeforeTextNode(AuthorAccess authorAccess, int contentOffset) throws javax.swing.text.BadLocationException, AuthorOperationException
contentOffset
- The offset where search is started.authorAccess
- true
if the there is a sentence delimiter before the text node or
false
if a non-delimiter character was found.javax.swing.text.BadLocationException
AuthorOperationException
protected boolean isWordDelimiter(char ch)
ch
- The character that must be evaluated.true
if the character is a sentence delimiter or false
otherwise.public void doOperation(AuthorAccess authorAccess, ArgumentsMap arguments) throws AuthorOperationException
doOperation
in interface AuthorOperation
authorAccess
- The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.arguments
- 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(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)
protected abstract char[] processTextContent(char[] charArray, boolean isDelimiterBefore)
charArray
- The character array that must be processed.isDelimiterBefore
- true
if we have a delimiter before the given char array,
false
otherwise.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.