Class ReflectiveModelReference

    • Constructor Detail

      • ReflectiveModelReference

        public ReflectiveModelReference​(IReflectiveModel target)
    • Method Detail

      • preventLoadingOfExternalModelElements

        public boolean preventLoadingOfExternalModelElements()
        Description copied from interface: IReflectiveModel
        Prevents the loading of model elements that are referenced by this model but are not contained in this model. This is useful for clients, such as Epsilon Flock, which create a clone or conservative copy of this model.
        Specified by:
        preventLoadingOfExternalModelElements in interface IReflectiveModel
        true iff this method had an effect (i.e. when this model supports external references, was configured to load external references and is no longer configured to load external references).
      • hasPackage

        public boolean hasPackage​(java.lang.String packageName)
        Description copied from interface: IReflectiveModel
        Returns true iff this model contains a package with the given name. In general, a "package" is a group of types (and potentially other packages) and a namespace for the grouped elements. The precise semantics of "package" is specific to the implementation. For example, an Ecore implementation might use EPackage. An XML implementation might use XML namespaces. A CSV implementation might not support any notion of packages (and hence always return false).
        Specified by:
        hasPackage in interface IReflectiveModel
      • isEnumerationValue

        public boolean isEnumerationValue​(java.lang.Object object)
        Description copied from interface: IReflectiveModel
        Returns true iff object is an enumeration value.
        Specified by:
        isEnumerationValue in interface IReflectiveModel
      • getContainerOf

        public java.lang.Object getContainerOf​(java.lang.Object object)
        Description copied from interface: IReflectiveModel
        Returns the model element that contains the given model element, or null if the given model element is top-level.
        Specified by:
        getContainerOf in interface IReflectiveModel
        object - The model element whose container is to be found.
        the model element that contains object, or null if object is not contained in any other model element.