Interface Property

    • Method Detail

      • setDatatype

        void setDatatype​(DataType value)
        Sets the value of the 'Datatype' container reference.
        Parameters:
        value - the new value of the 'Datatype' container reference.
        See Also:
        getDatatype()
      • isDerived

        boolean isDerived()
        Returns the value of the 'Is Derived' attribute. The default value is "false". If isDerived is true, the value of the attribute is derived from information elsewhere. Specifies whether the Property is derived, i.e., whether its value or values can be computed from other information.
        Returns:
        the value of the 'Is Derived' attribute.
        See Also:
        setIsDerived(boolean), UMLPackage.getProperty_IsDerived()
      • setIsDerived

        void setIsDerived​(boolean value)
        Sets the value of the 'Is Derived' attribute.
        Parameters:
        value - the new value of the 'Is Derived' attribute.
        See Also:
        isDerived()
      • isDerivedUnion

        boolean isDerivedUnion()
        Returns the value of the 'Is Derived Union' attribute. The default value is "false". Specifies whether the property is derived as the union of all of the properties that are constrained to subset it.
        Returns:
        the value of the 'Is Derived Union' attribute.
        See Also:
        setIsDerivedUnion(boolean), UMLPackage.getProperty_IsDerivedUnion()
      • setIsDerivedUnion

        void setIsDerivedUnion​(boolean value)
        Sets the value of the 'Is Derived Union' attribute.
        Parameters:
        value - the new value of the 'Is Derived Union' attribute.
        See Also:
        isDerivedUnion()
      • getDefault

        String getDefault()
        Returns the value of the 'Default' attribute. Specifies a String that represents a value to be used when no argument is supplied for the Property. A String that is evaluated to give a default value for the Property when an object of the owning Classifier is instantiated.
        Returns:
        the value of the 'Default' attribute.
        See Also:
        isSetDefault(), unsetDefault(), setDefault(String), UMLPackage.getProperty_Default()
      • isComposite

        boolean isComposite()
        Returns the value of the 'Is Composite' attribute. The default value is "false". If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute. This is a derived value, indicating whether the aggregation of the Property is composite or not.
        Returns:
        the value of the 'Is Composite' attribute.
        See Also:
        setIsComposite(boolean), UMLPackage.getProperty_IsComposite()
      • setIsComposite

        void setIsComposite​(boolean value)
        Sets the value of the 'Is Composite' attribute.
        Parameters:
        value - the new value of the 'Is Composite' attribute.
        See Also:
        isComposite()
      • getClass_

        Class getClass_()
        Returns the value of the 'Class' reference. References the Class that owns the Property.
        Returns:
        the value of the 'Class' reference.
        See Also:
        UMLPackage.getProperty_Class()
      • getRedefinedProperties

        MDWEList<Property> getRedefinedProperties()
        Returns the value of the 'Redefined Property' reference list. The list contents are of type Property. References the properties that are redefined by this property.
        Returns:
        the value of the 'Redefined Property' reference list.
        See Also:
        UMLPackage.getProperty_RedefinedProperty()
      • getRedefinedProperty

        Property getRedefinedProperty​(String name,
                                      Type type)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Redefined Property' 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:
        getRedefinedProperties()
      • getRedefinedProperty

        Property getRedefinedProperty​(String name,
                                      Type type,
                                      boolean ignoreCase,
                                      org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Redefined Property' 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:
        getRedefinedProperties()
      • setAssociation

        void setAssociation​(Association value)
        Sets the value of the 'Association' reference.
        Parameters:
        value - the new value of the 'Association' reference.
        See Also:
        getAssociation()
      • getOpposite

        Property getOpposite()
        Returns the value of the 'Opposite' reference. In the case where the property is one navigable end of a binary association with both ends navigable, this gives the other end.
        Returns:
        the value of the 'Opposite' reference.
        See Also:
        setOpposite(Property), UMLPackage.getProperty_Opposite()
      • setOpposite

        void setOpposite​(Property value)
        Sets the value of the 'Opposite' reference.
        Parameters:
        value - the new value of the 'Opposite' reference.
        See Also:
        getOpposite()
      • getSubsettedProperties

        MDWEList<Property> getSubsettedProperties()
        Returns the value of the 'Subsetted Property' reference list. The list contents are of type Property. References the properties of which this property is constrained to be a subset.
        Returns:
        the value of the 'Subsetted Property' reference list.
        See Also:
        UMLPackage.getProperty_SubsettedProperty()
      • getSubsettedProperty

        Property getSubsettedProperty​(String name,
                                      Type type)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Subsetted Property' 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:
        getSubsettedProperties()
      • getSubsettedProperty

        Property getSubsettedProperty​(String name,
                                      Type type,
                                      boolean ignoreCase,
                                      org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Subsetted Property' 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:
        getSubsettedProperties()
      • getQualifiers

        MDWEList<Property> getQualifiers()
        Returns the value of the 'Qualifier' containment reference list. The list contents are of type Property. It is bidirectional and its opposite is 'Association End'. An optional list of ordered qualifier attributes for the end. If the list is empty, then the Association is not qualified.
        Returns:
        the value of the 'Qualifier' containment reference list.
        See Also:
        UMLPackage.getProperty_Qualifier(), getAssociationEnd()
      • createQualifier

        Property createQualifier​(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 'Qualifier' 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:
        getQualifiers()
      • createQualifier

        Property createQualifier​(String name,
                                 Type type)
        Creates a new Property, with the specified 'Name', and 'Type', and appends it to the 'Qualifier' 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:
        getQualifiers()
      • getQualifier

        Property getQualifier​(String name,
                              Type type)
        Retrieves the first Property with the specified 'Name', and 'Type' from the 'Qualifier' 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:
        getQualifiers()
      • getQualifier

        Property getQualifier​(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 'Qualifier' 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:
        getQualifiers()
      • setAssociationEnd

        void setAssociationEnd​(Property value)
        Sets the value of the 'Association End' container reference.
        Parameters:
        value - the new value of the 'Association End' container reference.
        See Also:
        getAssociationEnd()
      • validateMultiplicityOfComposite

        boolean validateMultiplicityOfComposite​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                Map context)
        A multiplicity of a composite aggregation must not have an upper bound greater than 1. A multiplicity on an aggregate end of a composite aggregation must not have an upper bound greater than 1. isComposite implies (upperBound()->isEmpty() or upperBound() <= 1)
      • validateSubsettingContextConforms

        boolean validateSubsettingContextConforms​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                  Map context)
        Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property. self.subsettedProperty->notEmpty() implies (self.subsettingContext()->notEmpty() and self.subsettingContext()->forAll (sc | self.subsettedProperty->forAll(sp | sp.subsettingContext()->exists(c | sc.conformsTo(c)))))
      • validateRedefinedPropertyInherited

        boolean validateRedefinedPropertyInherited​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                   Map context)
        A redefined property must be inherited from a more general classifier containing the redefining property. if (redefinedProperty->notEmpty()) then (redefinitionContext->notEmpty() and redefinedProperty->forAll(rp| ((redefinitionContext->collect(fc| fc.allParents()))->asSet())->collect(c| c.allFeatures())->asSet()->includes(rp))
      • validateSubsettingRules

        boolean validateSubsettingRules​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        Map context)
        A subsetting property may strengthen the type of the subsetted property, and its upper bound may be less. self.subsettedProperty->forAll(sp | self.type.conformsTo(sp.type) and ((self.upperBound()->notEmpty() and sp.upperBound()->notEmpty()) implies self.upperBound()<=sp.upperBound() ))
      • validateNavigableReadonly

        boolean validateNavigableReadonly​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          Map context)
        Only a navigable property can be marked as readOnly. isReadOnly implies isNavigable()
      • validateDerivedUnionIsDerived

        boolean validateDerivedUnionIsDerived​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              Map context)
        A derived union is derived. isDerivedUnion implies isDerived
      • validateDerivedUnionIsReadOnly

        boolean validateDerivedUnionIsReadOnly​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               Map context)
        A derived union is read only. isDerivedUnion implies isReadOnly
      • validateSubsettedPropertyNames

        boolean validateSubsettedPropertyNames​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               Map context)
        A property may not subset a property with the same name. true
      • validateDeploymentTarget

        boolean validateDeploymentTarget​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         Map context)
        A Property can be a DeploymentTarget if it is a kind of Node and functions as a part in the internal structure of an encompassing Node. true
      • validateBindingToAttribute

        boolean validateBindingToAttribute​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           Map context)
        A binding of a property template parameter representing an attribute must be to an attribute. (isAttribute(self) and (templateParameterSubstitution->notEmpty()) implies (templateParameterSubstitution->forAll(ts | isAttribute(ts.formal)))
      • setIsNavigable

        void setIsNavigable​(boolean isNavigable)
        Sets the navigability of this property as indicated.
      • getOtherEnd

        Property getOtherEnd()
        Retrieves the other end of the (binary) association in which this property is a member end.
      • setBooleanDefaultValue

        void setBooleanDefaultValue​(boolean value)
        Sets the default value for this property to the specified Boolean value.
      • setIntegerDefaultValue

        void setIntegerDefaultValue​(int value)
        Sets the default value for this property to the specified integer value.
      • setStringDefaultValue

        void setStringDefaultValue​(String value)
        Sets the default value for this property to the specified string value.
      • setUnlimitedNaturalDefaultValue

        void setUnlimitedNaturalDefaultValue​(int value)
        Sets the default value for this property to the specified unlimited natural value.
      • setNullDefaultValue

        void setNullDefaultValue()
        Sets the default value for this property to the null value.
      • isAttribute

        boolean isAttribute​(Property p)
        The query isAttribute() is true if the Property is defined as an attribute of some classifier. result = Classifier.allInstances->exists(c | c.attribute->includes(p))
      • subsettingContext

        MDWEList<Type> subsettingContext()
        The query subsettingContext() gives the context for subsetting a property. It consists, in the case of an attribute, of the corresponding classifier, and in the case of an association end, all of the classifiers at the other ends. result = if association->notEmpty() then association.endType-type else if classifier->notEmpty() then Set{classifier} else Set{} endif endif
      • isNavigable

        boolean isNavigable()
        The query isNavigable() indicates whether it is possible to navigate across the property. result = not classifier->isEmpty() or association.owningAssociation.navigableOwnedEnd->includes(self)
      • isID

        boolean isID()
        Returns the 'isID' value for the current Property.
        for UML 2.4 or higher
        Returns:
        boolean
        Since:
        3.11.0
      • setIsID

        void setIsID​(boolean isID)
        Set the 'isID' value for the current Property.
        for UML 2.4 or higher
        Parameters:
        isID - boolean value
        Since:
        3.11.0