@API(type=EXTENDABLE, src=PUBLIC) public class SchemaAwareHandlerResultsImpl extends java.lang.Object implements SchemaAwareHandlerResult
SchemaAwareHandlerResult
}.TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION, TYPE_HANDLE_DELETE_OPERATION, TYPE_HANDLE_DELETE_SELECTION_OPERATION, TYPE_HANDLE_INSERT_FRAGMENT_OPERATION, TYPE_HANDLE_JOIN_ELEMENTS_OPERATION, TYPE_HANDLE_TYPING_OPERATION
RESULT_ID_HANDLE_INSERT_FRAGMENT_OFFSET
Constructor and Description |
---|
SchemaAwareHandlerResultsImpl(java.lang.String operationID) |
Modifier and Type | Method and Description |
---|---|
void |
addResult(java.lang.String resultKey,
java.lang.Object resultValue)
Add result.
|
java.lang.Object |
getResult(java.lang.String resultId)
Get the result for the given id.
|
java.lang.String |
getType()
The type of operation that generated the result.
|
public SchemaAwareHandlerResultsImpl(java.lang.String operationID)
operationID
- One of SchemaAwareHandlerResult.TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
for insert fragment operation or
SchemaAwareHandlerResult.TYPE_HANDLE_TYPING_OPERATION
for typing operation.public void addResult(java.lang.String resultKey, java.lang.Object resultValue)
resultKey
- The result key. Constants are defined in SchemaAwareHandlerResult
}.resultValue
- The result value.public java.lang.Object getResult(java.lang.String resultId)
SchemaAwareHandlerResult
getResult
in interface SchemaAwareHandlerResult
resultId
- One of the constants defined in this interface.null
for an unknown result id.SchemaAwareHandlerResult.getResult(java.lang.String)
public java.lang.String getType()
SchemaAwareHandlerResult
SchemaAwareHandlerResult.getResult(String)
method.
Possible values are:
SchemaAwareHandlerResult.TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION
for delete element tags operation,
see AuthorSchemaAwareEditingHandler.handleDeleteElementTags(ro.sync.ecss.extensions.api.node.AuthorNode, AuthorAccess)
;SchemaAwareHandlerResult.TYPE_HANDLE_DELETE_OPERATION
for a keyboard delete operation,
see AuthorSchemaAwareEditingHandler.handleDelete(int, int, AuthorAccess, boolean)
;SchemaAwareHandlerResult.TYPE_HANDLE_DELETE_SELECTION_OPERATION
for delete selection operation,
see AuthorSchemaAwareEditingHandler.handleDeleteSelection(int, int, int, AuthorAccess)
;SchemaAwareHandlerResult.TYPE_HANDLE_JOIN_ELEMENTS_OPERATION
for join elements operation,
see AuthorSchemaAwareEditingHandler.handleJoinElements(ro.sync.ecss.extensions.api.node.AuthorNode, java.util.List, AuthorAccess)
;SchemaAwareHandlerResult.TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
for insert fragment operation,
see AuthorSchemaAwareEditingHandler.handlePasteFragment(int, ro.sync.ecss.extensions.api.node.AuthorDocumentFragment[], int, AuthorAccess)
;SchemaAwareHandlerResult.TYPE_HANDLE_TYPING_OPERATION
for typing operation,
see AuthorSchemaAwareEditingHandler.handleTyping(int, char, AuthorAccess)
.getType
in interface SchemaAwareHandlerResult
SchemaAwareHandlerResult.getType()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.