Class EmptyModel

  • All Implemented Interfaces:
    java.lang.AutoCloseable, IModel

    public class EmptyModel
    extends Model
    • Constructor Detail

      • EmptyModel

        public EmptyModel()
    • Method Detail

      • getMetaModel

        public java.lang.String getMetaModel()
      • getEnumerationValue

        public java.lang.Object getEnumerationValue​(java.lang.String enumeration,
                                                    java.lang.String label)
      • getAllClasses

        public java.util.Collection<?> getAllClasses​(boolean onlyConcrete)
      • getTypeOf

        public java.lang.Object getTypeOf​(java.lang.Object instance)
        Specified by:
        getTypeOf in interface IModel
        Overrides:
        getTypeOf in class Model
      • getTypeNameOf

        public java.lang.String getTypeNameOf​(java.lang.Object instance)
        Description copied from interface: IModel
        Returns a string representing the type of the instance object. The value returned by this function can be passed to createInstance to instantiate another object of the same type as instance.
        Parameters:
        instance - The model object whose type is to be determined.
        Returns:
        the name of the type of the model object, instance.
      • getPropertiesOf

        public java.util.Collection<java.lang.String> getPropertiesOf​(java.lang.String type)
      • getElementById

        public java.lang.Object getElementById​(java.lang.String id)
      • getElementId

        public java.lang.String getElementId​(java.lang.Object instance)
      • setElementId

        public void setElementId​(java.lang.Object instance,
                                 java.lang.String newId)
      • deleteElement

        public void deleteElement​(java.lang.Object instance)
      • getClassOf

        public java.lang.String getClassOf​(java.lang.Object instance)
      • owns

        public boolean owns​(java.lang.Object instance)
        Description copied from interface: IModel
        Used to test whether an object is contained in this model.
        Parameters:
        instance - the Java object to test.
        Returns:
        true if and only if instance is contained by this model.
      • store

        public boolean store​(java.lang.String fileName)
      • store

        public boolean store()
      • allContents

        public java.util.Collection<?> allContents()
        Description copied from interface: IModel
        Returns a collection containing all of the objects contained in this model.
        Returns:
        all of the objects contained in this model.
      • isInstantiable

        public boolean isInstantiable​(java.lang.String metaClass)
      • hasType

        public boolean hasType​(java.lang.String metaClass)
      • isModelElement

        public boolean isModelElement​(java.lang.Object instance)
        Description copied from interface: IModel
        Used to test whether a Java object can be contained by this model. For example, EMF models can contain instances of EObject, but not instances of just Object.
        Specified by:
        isModelElement in interface IModel
        Overrides:
        isModelElement in class Model
        Parameters:
        instance - the Java object to test.
        Returns:
        true if and only if instance can be contained by this model.
      • isLoaded

        public boolean isLoaded()
        Since:
        1.6