Oxygen XML Editor 12.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 java.lang.Object
implements SchemaAwareHandlerResult

Default implementation for SchemaAwareHandlerResult}.

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(java.lang.String operationID)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaAwareHandlerResultsImpl

public SchemaAwareHandlerResultsImpl(java.lang.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(java.lang.String resultKey,
                      java.lang.Object resultValue)
Add result.

Parameters:
resultKey - The result key. Constants are defined in SchemaAwareHandlerResult}.
resultValue - The result value.

getResult

public java.lang.Object getResult(java.lang.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 java.lang.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 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.