public class EmfMetamodelDesc extends Object implements IMetamodelDesc
Constructor and Description |
---|
EmfMetamodelDesc(EPackage.Descriptor packageDescriptor,
String nsURI) |
EmfMetamodelDesc(EPackage pack,
String nsURI) |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
Diagnostic |
getLoadStatus()
Indicates the loading status of model represented by this descriptor.
|
EPackage |
getModel()
Returns metamodel package represented by this descriptor.
|
boolean |
isLoaded()
Indicates whether the metamodel for this descriptor has already been loaded.
|
String |
toString() |
public EmfMetamodelDesc(EPackage.Descriptor packageDescriptor, String nsURI)
public String getId()
getId
in interface IMetamodelDesc
public EPackage getModel()
IMetamodelDesc
If the metamodel fails to load, metamodel package object will
be added according to the NULL object pattern
, having
only matching nsURI
but empty content. Corresponding error
condition will be indicated by the descriptor IMetamodelDesc.getLoadStatus()
.
getModel
in interface IMetamodelDesc
IMetamodelDesc.getLoadStatus()
public Diagnostic getLoadStatus()
IMetamodelDesc
Note: If metamodel is not loaded already, a call to this method forces it to be loaded.
getLoadStatus
in interface IMetamodelDesc
OK
if metamodel package has been loaded successfully.IMetamodelDesc.getModel()
public boolean isLoaded()
IMetamodelDesc
isLoaded
in interface IMetamodelDesc
IMetamodelDesc.getModel()
}, false
otherwise.Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.