Interface StructuredClassifier

    • Method Detail

      • createOwnedAttribute

        Property createOwnedAttribute​(String name,
                                      Type type,
                                      org.eclipse.emf.ecore.EClass eClass)
        Creates a new Property, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.
        Parameters:
        name - The 'Name' for the new Property, or null.
        type - The 'Type' for the new Property, or null.
        eClass - The Ecore class of the Property to create.
        Returns:
        The new Property.
        See Also:
        getOwnedAttributes()
      • createOwnedAttribute

        Property createOwnedAttribute​(String name,
                                      Type type)
        Creates a new Property, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.
        Parameters:
        name - The 'Name' for the new Property, or null.
        type - The 'Type' for the new Property, or null.
        Returns:
        The new Property.
        See Also:
        getOwnedAttributes()
      • getOwnedAttribute

        Property getOwnedAttribute​(String name,
                                   Type type)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.
        Parameters:
        name - The 'Name' of the Property to retrieve, or null.
        type - The 'Type' of the Property to retrieve, or null.
        Returns:
        The first Property with the specified 'Name', and 'Type', or null.
        See Also:
        getOwnedAttributes()
      • getOwnedAttribute

        Property getOwnedAttribute​(String name,
                                   Type type,
                                   boolean ignoreCase,
                                   org.eclipse.emf.ecore.EClass eClass,
                                   boolean createOnDemand)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.
        Parameters:
        name - The 'Name' of the Property to retrieve, or null.
        type - The 'Type' of the Property to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the Property to retrieve, or null.
        createOnDemand - Whether to create a Property on demand if not found.
        Returns:
        The first Property with the specified 'Name', and 'Type', or null.
        See Also:
        getOwnedAttributes()
      • getParts

        MDWEList<Property> getParts()
        Returns the value of the 'Part' reference list. The list contents are of type Property. References the properties specifying instances that the classifier owns by composition. This association is derived, selecting those owned properties where isComposite is true.
        Returns:
        the value of the 'Part' reference list.
        See Also:
        UMLPackage.getStructuredClassifier_Part()
      • getPart

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

        Property getPart​(String name,
                         Type type,
                         boolean ignoreCase,
                         org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Part' reference list.
        Parameters:
        name - The 'Name' of the Property to retrieve, or null.
        type - The 'Type' of the Property to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the Property to retrieve, or null.
        Returns:
        The first Property with the specified 'Name', and 'Type', or null.
        See Also:
        getParts()
      • createOwnedConnector

        Connector createOwnedConnector​(String name)
        Creates a new Connector, with the specified 'Name', and appends it to the ' Owned Connector' containment reference list.
        Parameters:
        name - The 'Name' for the new Connector, or null.
        Returns:
        The new Connector.
        See Also:
        getOwnedConnectors()
      • getOwnedConnector

        Connector getOwnedConnector​(String name)
        Retrieves the first Connector with the specified 'Name' from the ' Owned Connector' containment reference list.
        Parameters:
        name - The 'Name' of the Connector to retrieve, or null.
        Returns:
        The first Connector with the specified 'Name', or null.
        See Also:
        getOwnedConnectors()
      • getOwnedConnector

        Connector getOwnedConnector​(String name,
                                    boolean ignoreCase,
                                    boolean createOnDemand)
        Retrieves the first Connector with the specified 'Name' from the ' Owned Connector' containment reference list.
        Parameters:
        name - The 'Name' of the Connector to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a Connector on demand if not found.
        Returns:
        The first Connector with the specified 'Name', or null.
        See Also:
        getOwnedConnectors()
      • validateMultiplicities

        boolean validateMultiplicities​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       Map context)
        The multiplicities on connected elements must be consistent. true
      • createOwnedAttribute

        Property createOwnedAttribute​(String name,
                                      Type type,
                                      int lower,
                                      int upper)
        Creates a property with the specified name, type, lower bound, and upper bound as an owned attribute of this structured classifier.