Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.commands
Class SemanticElementToViewRegistry

java.lang.Object
  extended by com.ibm.etools.systems.application.visual.editor.commands.SemanticElementToViewRegistry
All Implemented Interfaces:
ISemanticElementToViewRegistry

public class SemanticElementToViewRegistry
extends Object
implements ISemanticElementToViewRegistry

This class maintains 'semantic element to view' map so that required views can be retrieved.


Field Summary
static String copyright
           
 
Constructor Summary
SemanticElementToViewRegistry()
          Constructor.
 
Method Summary
 void dispose()
          Dispose the storage.
 EObject findViewForSemanticElement(EObject semanticElement)
          Find the view for given semanticElement.
 Iterator iterator()
          Return iterator for mapping storage.
 void registerSemanticElementToViewMapping(EObject semanticElement, EObject view)
          Register a semantic element to view mapping.
 void removeAllRegisterSemanticElementToViewMapping()
          Reomve all semantic element to view mapping entries.
 void unRegisterSemanticElementToViewMapping(EObject semanticElement)
          Remove view mapping for specified semantic element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

SemanticElementToViewRegistry

public SemanticElementToViewRegistry()
Constructor.

Method Detail

dispose

public void dispose()
Description copied from interface: ISemanticElementToViewRegistry
Dispose the storage.

Specified by:
dispose in interface ISemanticElementToViewRegistry

iterator

public Iterator iterator()
Description copied from interface: ISemanticElementToViewRegistry
Return iterator for mapping storage.

Specified by:
iterator in interface ISemanticElementToViewRegistry

findViewForSemanticElement

public EObject findViewForSemanticElement(EObject semanticElement)
Description copied from interface: ISemanticElementToViewRegistry
Find the view for given semanticElement.

Specified by:
findViewForSemanticElement in interface ISemanticElementToViewRegistry
Parameters:
semanticElement - the semantic element whose view to be found
Returns:
view for given semantic element if found, null otherwise.

registerSemanticElementToViewMapping

public void registerSemanticElementToViewMapping(EObject semanticElement,
                                                 EObject view)
Description copied from interface: ISemanticElementToViewRegistry
Register a semantic element to view mapping.

Specified by:
registerSemanticElementToViewMapping in interface ISemanticElementToViewRegistry
Parameters:
semanticElement - semantic element.
view - view object corresponding to the semantic element.

removeAllRegisterSemanticElementToViewMapping

public void removeAllRegisterSemanticElementToViewMapping()
Description copied from interface: ISemanticElementToViewRegistry
Reomve all semantic element to view mapping entries.

Specified by:
removeAllRegisterSemanticElementToViewMapping in interface ISemanticElementToViewRegistry

unRegisterSemanticElementToViewMapping

public void unRegisterSemanticElementToViewMapping(EObject semanticElement)
Description copied from interface: ISemanticElementToViewRegistry
Remove view mapping for specified semantic element.

Specified by:
unRegisterSemanticElementToViewMapping in interface ISemanticElementToViewRegistry

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.