public abstract class AbstractLanguageDescriptor extends java.lang.Object implements IUMLLanguageDescriptor
IUMLLanguageDescriptor
.Modifier | Constructor and Description |
---|---|
protected |
AbstractLanguageDescriptor(java.lang.String langId,
java.lang.String name)
Constructor for a given language.
|
protected |
AbstractLanguageDescriptor(java.lang.String langId,
java.lang.String name,
java.lang.String extension)
Constructor when the language extension is known.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
The display name is unchangeable.
|
java.util.Collection<java.lang.String> |
getLanguageActivityIDs() |
java.lang.String |
getLanguageExtension() |
java.lang.String |
getLanguageID() |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getLanguageLibraryURIs() |
protected org.eclipse.uml2.uml.Package |
getLibrary(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.lang.String name)
Gets the library with the specified name.
|
protected java.util.Collection<java.lang.String> |
getPrimitiveTypeLibraryNames()
The names of the primitive type libraries (Packages) that contain the
specialized primitive types.
|
java.util.Collection<org.eclipse.uml2.uml.PrimitiveType> |
getPrimitiveTypes(org.eclipse.emf.ecore.resource.ResourceSet set)
Gets the primitive types associated with this language.
|
java.util.Collection<org.eclipse.emf.common.util.URI> |
getProfileURIs() |
protected AbstractLanguageDescriptor(java.lang.String langId, java.lang.String name)
langId
- The unique language id to be used when storing a language in the model
(Must not be null
)name
- A user readable display name if extra description is necessary
(Must not be null
)protected AbstractLanguageDescriptor(java.lang.String langId, java.lang.String name, java.lang.String extension)
langId
- The unique language id to be used when storing a language in the model
(Must not be null
)name
- A user readable display name if extra description is necessary
(Must not be null
)extension
- The file extension typically associated with this languagepublic java.lang.String getLanguageID()
getLanguageID
in interface IUMLLanguageDescriptor
public java.lang.String getLanguageExtension()
getLanguageExtension
in interface IUMLLanguageDescriptor
public final java.lang.String getDisplayName()
getDisplayName
in interface IUMLLanguageDescriptor
public java.util.Collection<java.lang.String> getLanguageActivityIDs()
getLanguageActivityIDs
in interface IUMLLanguageDescriptor
Collection
of activity ID's that enable
language specified actions / UI in the workbench.public java.util.Collection<org.eclipse.emf.common.util.URI> getLanguageLibraryURIs()
getLanguageLibraryURIs
in interface IUMLLanguageDescriptor
Collection
of URI's that point to library
models that are required for this particular language.public java.util.Collection<org.eclipse.emf.common.util.URI> getProfileURIs()
getProfileURIs
in interface IUMLLanguageDescriptor
Collection
of URI's that point to
profiles that are required for this particular language.public java.util.Collection<org.eclipse.uml2.uml.PrimitiveType> getPrimitiveTypes(org.eclipse.emf.ecore.resource.ResourceSet set)
getPrimitiveTypes
in interface IUMLLanguageDescriptor
set
- the resource set to use as contextprotected java.util.Collection<java.lang.String> getPrimitiveTypeLibraryNames()
getPrimitiveTypes(ResourceSet)
protected org.eclipse.uml2.uml.Package getLibrary(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String name)
Package
that is the root of the
model library. or null
if not found.