Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api.schemaaware
Class SchemaAwareHandlerResultsImpl

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface ro.sync.ecss.extensions.api.schemaaware.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
 
Fields inherited from interface ro.sync.ecss.extensions.api.schemaaware.SchemaAwareHandlerResultInsertConstants
RESULT_ID_HANDLE_INSERT_FRAGMENT_OFFSET
 
Constructor Summary
SchemaAwareHandlerResultsImpl(String operationID)
           
 
Method Summary
 void addResult(String resultKey, Object resultValue)
          Add result.
 Object getResult(String resultId)
          Get the result for the given id.
 String getType()
          The type of operation that generated the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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:

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()

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.