UML Modeling Layer

com.ibm.xtools.uml.msl.internal.lang
Interface IUMLDerivedLanguageDescriptor

All Superinterfaces:
IUMLLanguageDescriptor
All Known Implementing Classes:
DerivedLanguageDescriptor, FirstLanguageDescriptor, ModelLanguageDescriptor

public interface IUMLDerivedLanguageDescriptor
extends IUMLLanguageDescriptor

Clients who wish to make their descriptor non-static, and specialized based on the element context, should implement this interface. Implementors of this interface will be registered with their ID used in the UMLLanguageDescriptor extension point. This language ID will not show up in the UI as an available language. If the language id of the descriptor should be available as a possible language in the UI, than you should not implement this interface, and you will become a static language descriptor.


Method Summary
 String getID()
           
 boolean initializeBasedOnContext(LanguageContext context)
          If this descriptor is dependent on the language context, than this method should be implemented to initialize itself based on the context change.
 
Methods inherited from interface com.ibm.xtools.uml.msl.lang.IUMLLanguageDescriptor
getDisplayName, getLanguageActivityIDs, getLanguageExtension, getLanguageID, getLanguageLibraryURIs, getPrimitiveTypes, getProfileURIs
 

Method Detail

initializeBasedOnContext

boolean initializeBasedOnContext(LanguageContext context)
If this descriptor is dependent on the language context, than this method should be implemented to initialize itself based on the context change. Static language implementations of a IUMLLanguageDescriptor will not require the handling of this method.

Parameters:
context - The new context to initialize with Note: Implementors should expect this to be possibly null
Returns:
true if this descriptor changed because of the context. false otherwise

getID

String getID()
Returns:
the unique ID that identifies this derived descriptor

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.