Interface Component

    • Method Detail

      • isIndirectlyInstantiated

        boolean isIndirectlyInstantiated()
        Returns the value of the 'Is Indirectly Instantiated' attribute. The default value is "true". The kind of instantiation that applies to a Component. If false, the component is instantiated as an addressable object. If true, the Component is defined at design-time, but at runtime (or execution-time) an object specified by the Component does not exist, that is, the component is instantiated indirectly, through the instantiation of its realizing classifiers or parts. Several standard stereotypes use this meta attribute, e.g. <>, <>, <>.
        Returns:
        the value of the 'Is Indirectly Instantiated' attribute.
        See Also:
        setIsIndirectlyInstantiated(boolean), UMLPackage.getComponent_IsIndirectlyInstantiated()
      • setIsIndirectlyInstantiated

        void setIsIndirectlyInstantiated​(boolean value)
        Sets the value of the 'Is Indirectly Instantiated' attribute.
        Parameters:
        value - the new value of the 'Is Indirectly Instantiated' attribute.
        See Also:
        isIndirectlyInstantiated()
      • getRequireds

        MDWEList<Interface> getRequireds()
        Returns the value of the 'Required' reference list. The list contents are of type Interface. The interfaces that the component requires from other components in its environment in order to be able to offer its full set of provided functionality. These interfaces may be Used by the Component or any of its realizingClassifiers, or they may be the Interfaces that are required by its public Ports.
        Returns:
        the value of the 'Required' reference list.
        See Also:
        UMLPackage.getComponent_Required()
      • getRequired

        Interface getRequired​(String name)
        Retrieves the first Interface with the specified 'Name' from the ' Required' reference list.
        Parameters:
        name - The 'Name' of the Interface to retrieve, or null.
        Returns:
        The first Interface with the specified 'Name', or null.
        See Also:
        getRequireds()
      • getRequired

        Interface getRequired​(String name,
                              boolean ignoreCase)
        Retrieves the first Interface with the specified 'Name' from the ' Required' reference list.
        Parameters:
        name - The 'Name' of the Interface to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        Returns:
        The first Interface with the specified 'Name', or null.
        See Also:
        getRequireds()
      • getProvideds

        MDWEList<Interface> getProvideds()
        Returns the value of the 'Provided' reference list. The list contents are of type Interface. The interfaces that the component exposes to its environment. These interfaces may be Realized by the Component or any of its realizingClassifiers, or they may be the Interfaces that are provided by its public Ports.
        Returns:
        the value of the 'Provided' reference list.
        See Also:
        UMLPackage.getComponent_Provided()
      • getProvided

        Interface getProvided​(String name)
        Retrieves the first Interface with the specified 'Name' from the ' Provided' reference list.
        Parameters:
        name - The 'Name' of the Interface to retrieve, or null.
        Returns:
        The first Interface with the specified 'Name', or null.
        See Also:
        getProvideds()
      • getProvided

        Interface getProvided​(String name,
                              boolean ignoreCase)
        Retrieves the first Interface with the specified 'Name' from the ' Provided' reference list.
        Parameters:
        name - The 'Name' of the Interface to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        Returns:
        The first Interface with the specified 'Name', or null.
        See Also:
        getProvideds()
      • getPackagedElements

        MDWEList<PackageableElement> getPackagedElements()
        Returns the value of the 'Packaged Element' containment reference list. The list contents are of type PackageableElement. The set of PackageableElements that a Component owns. In the namespace of a component, all model elements that are involved in or related to its definition may be owned or imported explicitly. These may include e.g. Classes, Interfaces, Components, Packages, Use cases, Dependencies (e.g. mappings), and Artifacts.
        Returns:
        the value of the 'Packaged Element' containment reference list.
        See Also:
        UMLPackage.getComponent_PackagedElement()
      • createOwnedClass

        Class createOwnedClass​(String name,
                               boolean isAbstract)
        Creates a(n) (abstract) class with the specified name as a packaged element of this component.
      • createOwnedEnumeration

        Enumeration createOwnedEnumeration​(String name)
        Creates a enumeration with the specified name as a packaged element of this component.
      • createOwnedPrimitiveType

        PrimitiveType createOwnedPrimitiveType​(String name)
        Creates a primitive type with the specified name as a packaged element of this component.
      • createOwnedInterface

        Interface createOwnedInterface​(String name)
        Creates an interface with the specified name as a packaged element of this component.
      • realizedInterfaces

        MDWEList<Interface> realizedInterfaces​(Classifier classifier)
        Utility returning the set of realized interfaces of a component: result = (classifier.clientDependency-> select(dependency|dependency.oclIsKindOf(Realization) and dependency.supplier.oclIsKindOf(Interface)))-> collect(dependency|dependency.client)
      • usedInterfaces

        MDWEList<Interface> usedInterfaces​(Classifier classifier)
        Utility returning the set of used interfaces of a component: result = (classifier.supplierDependency-> select(dependency|dependency.oclIsKindOf(Usage) and dependency.supplier.oclIsKindOf(interface)))-> collect(dependency|dependency.supplier)