com.ibm.xtools.uml.msl.internal.lang
Class FirstLanguageDescriptor
java.lang.Object
com.ibm.xtools.uml.msl.lang.AbstractLanguageDescriptor
com.ibm.xtools.uml.msl.internal.lang.DerivedLanguageDescriptor
com.ibm.xtools.uml.msl.internal.lang.FirstLanguageDescriptor
- All Implemented Interfaces:
- IUMLDerivedLanguageDescriptor, IUMLLanguageDescriptor
public class FirstLanguageDescriptor
- extends DerivedLanguageDescriptor
Specialized descriptor representing the 'find first language'.
FIRST_DESCRIPTOR_ID
public static final String FIRST_DESCRIPTOR_ID
- This field is here to aid the persisting of active language descriptors. Clients are
not expected to use this.
- See Also:
- Constant Field Values
FirstLanguageDescriptor
protected FirstLanguageDescriptor()
- Singleton
getInstance
public static FirstLanguageDescriptor getInstance()
extractLanguageID
protected String extractLanguageID(LanguageContext context)
- Description copied from class:
DerivedLanguageDescriptor
- This type of descriptor is specialized to determine its language from a context element.
This API is used to allow the descriptor to extract the language from the context.
- Specified by:
extractLanguageID in class DerivedLanguageDescriptor
- Parameters:
context - The language context element.
Note: Implementors should expect this to be possibly null
- Returns:
- The
String language ID to use for the given context with respect to this descriptor.
Or null if no language could be found.
getID
public String getID()
- Returns:
- the unique ID that identifies this derived descriptor
© Copyright IBM Corp. 2009. All rights reserved.