Interface Port

    • Method Detail

      • isBehavior

        boolean isBehavior()
        Returns the value of the 'Is Behavior' attribute. The default value is "false". Specifies whether requests arriving at this port are sent to the classifier behavior of this classifier. Such ports are referred to as behavior port. Any invocation of a behavioral feature targeted at a behavior port will be handled by the instance of the owning classifier itself, rather than by any instances that this classifier may contain.
        Returns:
        the value of the 'Is Behavior' attribute.
        See Also:
        setIsBehavior(boolean), UMLPackage.getPort_IsBehavior()
      • setIsBehavior

        void setIsBehavior​(boolean value)
        Sets the value of the 'Is Behavior' attribute.
        Parameters:
        value - the new value of the 'Is Behavior' attribute.
        See Also:
        isBehavior()
      • isService

        boolean isService()
        Returns the value of the 'Is Service' attribute. The default value is "true". If true indicates that this port is used to provide the published functionality of a classifier; if false, this port is used to implement the classifier but is not part of the essential externally-visible functionality of the classifier and can, therefore, be altered or deleted along with the internal implementation of the classifier and other properties that are considered part of its implementation.
        Returns:
        the value of the 'Is Service' attribute.
        See Also:
        setIsService(boolean), UMLPackage.getPort_IsService()
      • setIsService

        void setIsService​(boolean value)
        Sets the value of the 'Is Service' attribute.
        Parameters:
        value - the new value of the 'Is Service' attribute.
        See Also:
        isService()
      • getRequireds

        MDWEList<Interface> getRequireds()
        Returns the value of the 'Required' reference list. The list contents are of type Interface. References the interfaces specifying the set of operations and receptions which the classifier expects its environment to handle. This association is derived as the set of interfaces required by the type of the port or its supertypes.
        Returns:
        the value of the 'Required' reference list.
        See Also:
        UMLPackage.getPort_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()
      • getRedefinedPorts

        MDWEList<Port> getRedefinedPorts()
        Returns the value of the 'Redefined Port' reference list. The list contents are of type Port. A port may be redefined when its containing classifier is specialized. The redefining port may have additional interfaces to those that are associated with the redefined port or it may replace an interface by one of its subtypes.
        Returns:
        the value of the 'Redefined Port' reference list.
        See Also:
        UMLPackage.getPort_RedefinedPort()
      • getRedefinedPort

        Port getRedefinedPort​(String name,
                              Type type)
        Retrieves the first Port with the specified 'Name', and 'Type' from the 'Redefined Port' reference list.
        Parameters:
        name - The 'Name' of the Port to retrieve, or null.
        type - The 'Type' of the Port to retrieve, or null.
        Returns:
        The first Port with the specified 'Name', and 'Type', or null.
        See Also:
        getRedefinedPorts()
      • getRedefinedPort

        Port getRedefinedPort​(String name,
                              Type type,
                              boolean ignoreCase)
        Retrieves the first Port with the specified 'Name', and 'Type' from the 'Redefined Port' reference list.
        Parameters:
        name - The 'Name' of the Port to retrieve, or null.
        type - The 'Type' of the Port to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        Returns:
        The first Port with the specified 'Name', and 'Type', or null.
        See Also:
        getRedefinedPorts()
      • getProvideds

        MDWEList<Interface> getProvideds()
        Returns the value of the 'Provided' reference list. The list contents are of type Interface. References the interfaces specifying the set of operations and receptions which the classifier offers to its environment, and which it will handle either directly or by forwarding it to a part of its internal structure. This association is derived from the interfaces realized by the type of the port or by the type of the port, if the port was typed by an interface.
        Returns:
        the value of the 'Provided' reference list.
        See Also:
        UMLPackage.getPort_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()
      • validateRequiredInterfaces

        boolean validateRequiredInterfaces​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           Map context)
        The required interfaces of a port must be provided by elements to which the port is connected. true
      • validatePortAggregation

        boolean validatePortAggregation​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        Map context)
        Port.aggregation must be composite. true
      • validatePortDestroyed

        boolean validatePortDestroyed​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      Map context)
        When a port is destroyed, all connectors attached to this port will be destroyed also. true
      • validateDefaultValue

        boolean validateDefaultValue​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     Map context)
        A defaultValue for port cannot be specified when the type of the Port is an Interface true
      • isConjugated

        boolean isConjugated()
        Returns the 'isConjugated' value for the current Port.
        for UML 2.3 or higher
        Returns:
        boolean
        Since:
        3.9.0
      • setIsConjugated

        void setIsConjugated​(boolean isConjugated)
        Set the 'isConjugated' value for the current Port.
        for UML 2.3 or higher
        Parameters:
        isConjugated - boolean value
        Since:
        3.9.0