ro.sync.ecss.extensions.api.schemaaware
Class SchemaAwareHandlerResultsImpl
java.lang.Object
ro.sync.ecss.extensions.api.schemaaware.SchemaAwareHandlerResultsImpl
- All Implemented Interfaces:
- SchemaAwareHandlerResult, SchemaAwareHandlerResultInsertConstants
public class SchemaAwareHandlerResultsImpl
- extends Object
- implements SchemaAwareHandlerResult
Default implementation for SchemaAwareHandlerResult
}.
*********************************
EXPERIMENTAL - Subject to change
*********************************
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
- Since:
- 11.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaAwareHandlerResultsImpl
public SchemaAwareHandlerResultsImpl(String operationID)
- Parameters:
operationID
- One of SchemaAwareHandlerResult.TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
for insert fragment operation or
SchemaAwareHandlerResult.TYPE_HANDLE_TYPING_OPERATION
for typing operation.
addResult
public void addResult(String resultKey,
Object resultValue)
- Add result.
- Parameters:
resultKey
- The result key. Constants are defined in SchemaAwareHandlerResult
}.resultValue
- The result value.
getResult
public Object getResult(String resultId)
- Description copied from interface:
SchemaAwareHandlerResult
- Get the result for the given id.
- Specified by:
getResult
in interface SchemaAwareHandlerResult
- Parameters:
resultId
- One of the constants defined in this interface.
- Returns:
- The value for the result. Can be
null
for an unknown result id. - See Also:
SchemaAwareHandlerResult.getResult(java.lang.String)
getType
public String getType()
- Description copied from interface:
SchemaAwareHandlerResult
- The type of operation that generated the result. Depending on a result type, different information is available through
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)
.
- Specified by:
getType
in interface SchemaAwareHandlerResult
- Returns:
- One of the constants from above, describing which schema aware operation generated the result.
- See Also:
SchemaAwareHandlerResult.getType()
© Copyright SyncRO Soft SRL 2002 - 2010.