org.eclipse.uml2.uml
Interface Property

All Superinterfaces:
ConnectableElement, DeploymentTarget, Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, Feature, MultiplicityElement, NamedElement, org.eclipse.emf.common.notify.Notifier, ParameterableElement, RedefinableElement, StructuralFeature, TypedElement
All Known Subinterfaces:
ExtensionEnd, Port

public interface Property
extends StructuralFeature, ConnectableElement, DeploymentTarget

A representation of the model object 'Property'. A Property is a StructuralFeature. A Property related by ownedAttribute to a Classifier (other than an association) represents an attribute and might also represent an association end. It relates an instance of the Classifier to a value or set of values of the type of the attribute. A Property related by memberEnd to an Association represents an end of the Association. The type of the Property is the type of the end of the Association. A Property has the capability of being a DeploymentTarget in a Deployment relationship. This enables modeling the deployment to hierarchical nodes that have Properties functioning as internal parts. Property specializes ParameterableElement to specify that a Property can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template.

From package UML::Classification.

The following features are supported:

See Also:
UMLPackage.getProperty()

Field Summary
 
Fields inherited from interface org.eclipse.uml2.uml.NamedElement
SEPARATOR
 
Method Summary
 ValueSpecification createDefaultValue(java.lang.String name, Type type, org.eclipse.emf.ecore.EClass eClass)
          Creates a new ValueSpecification, with the specified 'Name', and 'Type', and sets the 'Default Value' containment reference
 Property createQualifier(java.lang.String name, Type type)
          Creates a new Property, with the specified 'Name', and 'Type', and appends it to the 'Qualifier' containment reference list
 Property createQualifier(java.lang.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
 AggregationKind getAggregation()
          Returns the value of the 'Aggregation' attribute.
 Association getAssociation()
          Returns the value of the 'Association' reference.
 Property getAssociationEnd()
          Returns the value of the 'Association End' container reference.
 Class getClass_()
          Returns the value of the 'Class' reference.
 DataType getDatatype()
          Returns the value of the 'Datatype' container reference.
 java.lang.String getDefault()
          Retrieves a string representation of the default value for this property
 ValueSpecification getDefaultValue()
          Returns the value of the 'Default Value' containment reference.
 Interface getInterface()
          Returns the value of the 'Interface' container reference.
 Property getOpposite()
          Returns the value of the 'Opposite' reference
 Property getOtherEnd()
          Retrieves the other end of the (binary) association in which this property is a member end
 Association getOwningAssociation()
          Returns the value of the 'Owning Association' container reference.
 Property getQualifier(java.lang.String name, Type type)
          Retrieves the first Property with the specified 'Name', and 'Type' from the 'Qualifier' containment reference list
 Property getQualifier(java.lang.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
 org.eclipse.emf.common.util.EList<Property> getQualifiers()
          Returns the value of the 'Qualifier' containment reference list.
 org.eclipse.emf.common.util.EList<Property> getRedefinedProperties()
          Returns the value of the 'Redefined Property' reference list.
 Property getRedefinedProperty(java.lang.String name, Type type)
          Retrieves the first Property with the specified 'Name', and 'Type' from the 'Redefined Property' reference list
 Property getRedefinedProperty(java.lang.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
 org.eclipse.emf.common.util.EList<Property> getSubsettedProperties()
          Returns the value of the 'Subsetted Property' reference list.
 Property getSubsettedProperty(java.lang.String name, Type type)
          Retrieves the first Property with the specified 'Name', and 'Type' from the 'Subsetted Property' reference list
 Property getSubsettedProperty(java.lang.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
 boolean isAttribute()
          The query isAttribute() is true if the Property is defined as an attribute of some Classifier.
 boolean isComposite()
          Returns the value of the 'Is Composite' attribute.
 boolean isDerived()
          Returns the value of the 'Is Derived' attribute.
 boolean isDerivedUnion()
          Returns the value of the 'Is Derived Union' attribute.
 boolean isID()
          Returns the value of the 'Is ID' attribute.
 boolean isNavigable()
          The query isNavigable() indicates whether it is possible to navigate across the property.
 void setAggregation(AggregationKind value)
          Sets the value of the 'Aggregation' attribute
 void setAssociation(Association value)
          Sets the value of the 'Association' reference
 void setAssociationEnd(Property value)
          Sets the value of the 'Association End' container reference
 void setBooleanDefaultValue(boolean value)
          Sets the default value for this property to the specified Boolean value.
 void setDatatype(DataType value)
          Sets the value of the 'Datatype' container reference
 void setDefault(java.lang.String newDefault)
          Sets the default value for this property based on the specified string representation.
 void setDefaultValue(ValueSpecification value)
          Sets the value of the 'Default Value' containment reference
 void setIntegerDefaultValue(int value)
          Sets the default value for this property to the specified integer value.
 void setInterface(Interface value)
          Sets the value of the 'Interface' container reference
 void setIsComposite(boolean value)
          Sets the value of the 'Is Composite' attribute
 void setIsDerived(boolean value)
          Sets the value of the 'Is Derived' attribute
 void setIsDerivedUnion(boolean value)
          Sets the value of the 'Is Derived Union' attribute
 void setIsID(boolean value)
          Sets the value of the 'Is ID' attribute
 void setIsNavigable(boolean isNavigable)
          Sets the navigability of this property as indicated.
 void setNullDefaultValue()
          Sets the default value for this property to the null value
 void setOpposite(Property value)
          Sets the value of the 'Opposite' reference
 void setOwningAssociation(Association value)
          Sets the value of the 'Owning Association' container reference
 void setRealDefaultValue(double value)
          Sets the default value for this property to the specified real value.
 void setStringDefaultValue(java.lang.String value)
          Sets the default value for this property to the specified string value.
 void setUnlimitedNaturalDefaultValue(int value)
          Sets the default value for this property to the specified unlimited natural value.
 org.eclipse.emf.common.util.EList<Type> subsettingContext()
          The query subsettingContext() gives the context for subsetting a Property.
 boolean validateBindingToAttribute(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A binding of a PropertyTemplateParameter representing an attribute must be to an attribute.
 boolean validateDeploymentTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> 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.
 boolean validateDerivedUnionIsDerived(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A derived union is derived.
 boolean validateDerivedUnionIsReadOnly(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A derived union is read only.
 boolean validateMultiplicityOfComposite(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A multiplicity on the composing end of a composite aggregation must not have an upper bound greater than 1.
 boolean validateQualifiedIsAssociationEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          All qualified Properties must be Association ends qualifier->notEmpty() implies association->notEmpty()
 boolean validateRedefinedPropertyInherited(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A redefined Property must be inherited from a more general Classifier.
 boolean validateSubsettedPropertyNames(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A Property may not subset a Property with the same name.
 boolean validateSubsettingContextConforms(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property.
 boolean validateSubsettingRules(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          A subsetting Property may strengthen the type of the subsetted Property, and its upper bound may be less.
 boolean validateTypeOfOppositeEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          If a Property is a classifier-owned end of a binary Association, its owner must be the type of the opposite end.
 
Methods inherited from interface org.eclipse.uml2.uml.StructuralFeature
isReadOnly, setIsReadOnly
 
Methods inherited from interface org.eclipse.uml2.uml.Feature
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
 
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid
 
Methods inherited from interface org.eclipse.uml2.uml.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.uml.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.uml2.uml.MultiplicityElement
compatibleWith, createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateLowerIsInteger, validateUpperGeLower, validateUpperIsUnlimitedNatural, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
 
Methods inherited from interface org.eclipse.uml2.uml.ConnectableElement
getEnds
 
Methods inherited from interface org.eclipse.uml2.uml.TypedElement
getType, setType
 
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
 
Methods inherited from interface org.eclipse.uml2.uml.DeploymentTarget
createDeployment, getDeployedElement, getDeployedElement, getDeployedElements, getDeployment, getDeployment, getDeployments
 

Method Detail

getDatatype

DataType getDatatype()
Returns the value of the 'Datatype' container reference. It is bidirectional and its opposite is 'Owned Attribute'.

This feature subsets the following features:

The DataType that owns this Property, if any.

From package UML::Classification.

Returns:
the value of the 'Datatype' container reference.
See Also:
setDatatype(DataType), UMLPackage.getProperty_Datatype(), DataType.getOwnedAttributes()

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()

getInterface

Interface getInterface()
Returns the value of the 'Interface' container reference. It is bidirectional and its opposite is 'Owned Attribute'.

This feature subsets the following features:

The Interface that owns this Property, if any.

From package UML::Classification.

Returns:
the value of the 'Interface' container reference.
See Also:
setInterface(Interface), UMLPackage.getProperty_Interface(), Interface.getOwnedAttributes()

setInterface

void setInterface(Interface value)
Sets the value of the 'Interface' container reference.

Parameters:
value - the new value of the 'Interface' container reference.
See Also:
getInterface()

isDerived

boolean isDerived()
Returns the value of the 'Is Derived' attribute. The default value is "false". Specifies whether the Property is derived, i.e., whether its value or values can be computed from other information.

From package UML::Classification.

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.

From package UML::Classification.

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()

isID

boolean isID()
Returns the value of the 'Is ID' attribute. The default value is "false". True indicates this property can be used to uniquely identify an instance of the containing Class.

From package UML::Classification.

Returns:
the value of the 'Is ID' attribute.
See Also:
setIsID(boolean), UMLPackage.getProperty_IsID()

setIsID

void setIsID(boolean value)
Sets the value of the 'Is ID' attribute.

Parameters:
value - the new value of the 'Is ID' attribute.
See Also:
isID()

getDefault

java.lang.String getDefault()
Retrieves a string representation of the default value for this property.


setDefault

void setDefault(java.lang.String newDefault)
Sets the default value for this property based on the specified string representation.

Parameters:
newDefault - A string representation of the new default value.

getAggregation

AggregationKind getAggregation()
Returns the value of the 'Aggregation' attribute. The default value is "none". The literals are from the enumeration AggregationKind. Specifies the kind of aggregation that applies to the Property.

From package UML::Classification.

Returns:
the value of the 'Aggregation' attribute.
See Also:
AggregationKind, setAggregation(AggregationKind), UMLPackage.getProperty_Aggregation()

setAggregation

void setAggregation(AggregationKind value)
Sets the value of the 'Aggregation' attribute.

Parameters:
value - the new value of the 'Aggregation' attribute.
See Also:
AggregationKind, getAggregation()

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.

From package UML::Classification.

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.

This feature subsets the following features:

The Class that owns this Property, if any.

From package UML::Classification.

Returns:
the value of the 'Class' reference.
See Also:
UMLPackage.getProperty_Class()

getRedefinedProperties

org.eclipse.emf.common.util.EList<Property> getRedefinedProperties()
Returns the value of the 'Redefined Property' reference list. The list contents are of type Property.

This feature subsets the following features:

The properties that are redefined by this property, if any.

From package UML::Classification.

Returns:
the value of the 'Redefined Property' reference list.
See Also:
UMLPackage.getProperty_RedefinedProperty()

getRedefinedProperty

Property getRedefinedProperty(java.lang.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(java.lang.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()

getOwningAssociation

Association getOwningAssociation()
Returns the value of the 'Owning Association' container reference. It is bidirectional and its opposite is 'Owned End'.

This feature subsets the following features:

The owning association of this property, if any.

From package UML::Classification.

Returns:
the value of the 'Owning Association' container reference.
See Also:
setOwningAssociation(Association), UMLPackage.getProperty_OwningAssociation(), Association.getOwnedEnds()

setOwningAssociation

void setOwningAssociation(Association value)
Sets the value of the 'Owning Association' container reference.

Parameters:
value - the new value of the 'Owning Association' container reference.
See Also:
getOwningAssociation()

getAssociation

Association getAssociation()
Returns the value of the 'Association' reference. It is bidirectional and its opposite is 'Member End'. The Association of which this Property is a member, if any.

From package UML::Classification.

Returns:
the value of the 'Association' reference.
See Also:
setAssociation(Association), UMLPackage.getProperty_Association(), Association.getMemberEnds()

setAssociation

void setAssociation(Association value)
Sets the value of the 'Association' reference.

Parameters:
value - the new value of the 'Association' reference.
See Also:
getAssociation()

getDefaultValue

ValueSpecification getDefaultValue()
Returns the value of the 'Default Value' containment reference.

This feature subsets the following features:

A ValueSpecification that is evaluated to give a default value for the Property when an instance of the owning Classifier is instantiated.

From package UML::Classification.

Returns:
the value of the 'Default Value' containment reference.
See Also:
setDefaultValue(ValueSpecification), UMLPackage.getProperty_DefaultValue()

setDefaultValue

void setDefaultValue(ValueSpecification value)
Sets the value of the 'Default Value' containment reference.

Parameters:
value - the new value of the 'Default Value' containment reference.
See Also:
getDefaultValue()

createDefaultValue

ValueSpecification createDefaultValue(java.lang.String name,
                                      Type type,
                                      org.eclipse.emf.ecore.EClass eClass)
Creates a new ValueSpecification, with the specified 'Name', and 'Type', and sets the 'Default Value' containment reference.

Parameters:
name - The 'Name' for the new ValueSpecification, or null.
type - The 'Type' for the new ValueSpecification, or null.
eClass - The Ecore class of the ValueSpecification to create.
Returns:
The new ValueSpecification.
See Also:
getDefaultValue()

getOpposite

Property getOpposite()
Returns the value of the 'Opposite' reference. In the case where the Property is one end of a binary association this gives the other end.

From package UML::Classification.

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

org.eclipse.emf.common.util.EList<Property> getSubsettedProperties()
Returns the value of the 'Subsetted Property' reference list. The list contents are of type Property. The properties of which this Property is constrained to be a subset, if any.

From package UML::Classification.

Returns:
the value of the 'Subsetted Property' reference list.
See Also:
UMLPackage.getProperty_SubsettedProperty()

getSubsettedProperty

Property getSubsettedProperty(java.lang.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(java.lang.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

org.eclipse.emf.common.util.EList<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'.

This feature subsets the following features:

An optional list of ordered qualifier attributes for the end.

From package UML::Classification.

Returns:
the value of the 'Qualifier' containment reference list.
See Also:
UMLPackage.getProperty_Qualifier(), getAssociationEnd()

createQualifier

Property createQualifier(java.lang.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(java.lang.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(java.lang.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(java.lang.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()

getAssociationEnd

Property getAssociationEnd()
Returns the value of the 'Association End' container reference. It is bidirectional and its opposite is 'Qualifier'.

This feature subsets the following features:

Designates the optional association end that owns a qualifier attribute.

From package UML::Classification.

Returns:
the value of the 'Association End' container reference.
See Also:
setAssociationEnd(Property), UMLPackage.getProperty_AssociationEnd(), 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,
                                        java.util.Map<java.lang.Object,java.lang.Object> context)
A multiplicity on the composing end of a composite aggregation must not have an upper bound greater than 1. isComposite and association <> null implies opposite.upperBound() <= 1

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateSubsettingContextConforms

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

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateRedefinedPropertyInherited

boolean validateRedefinedPropertyInherited(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)
A redefined Property must be inherited from a more general Classifier. (redefinedProperty->notEmpty()) implies (redefinitionContext->notEmpty() and redefinedProperty->forAll(rp| ((redefinitionContext->collect(fc| fc.allParents()))->asSet())->collect(c| c.allFeatures())->asSet()->includes(rp)))

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateSubsettingRules

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

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateDerivedUnionIsDerived

boolean validateDerivedUnionIsDerived(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,java.lang.Object> context)
A derived union is derived. isDerivedUnion implies isDerived

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateDerivedUnionIsReadOnly

boolean validateDerivedUnionIsReadOnly(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,java.lang.Object> context)
A derived union is read only. isDerivedUnion implies isReadOnly

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateSubsettedPropertyNames

boolean validateSubsettedPropertyNames(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,java.lang.Object> context)
A Property may not subset a Property with the same name. subsettedProperty->forAll(sp | sp.name <> name)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateTypeOfOppositeEnd

boolean validateTypeOfOppositeEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                  java.util.Map<java.lang.Object,java.lang.Object> context)
If a Property is a classifier-owned end of a binary Association, its owner must be the type of the opposite end. (opposite->notEmpty() and owningAssociation->isEmpty()) implies classifier = opposite.type

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateQualifiedIsAssociationEnd

boolean validateQualifiedIsAssociationEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,java.lang.Object> context)
All qualified Properties must be Association ends qualifier->notEmpty() implies association->notEmpty()

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateDeploymentTarget

boolean validateDeploymentTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 java.util.Map<java.lang.Object,java.lang.Object> 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. deployment->notEmpty() implies owner.oclIsKindOf(Node) and Node.allInstances()->exists(n | n.part->exists(p | p = self))

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateBindingToAttribute

boolean validateBindingToAttribute(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   java.util.Map<java.lang.Object,java.lang.Object> context)
A binding of a PropertyTemplateParameter representing an attribute must be to an attribute. (self.isAttribute() and (templateParameterSubstitution->notEmpty()) implies (templateParameterSubstitution->forAll(ts | ts.formal.oclIsKindOf(Property) and ts.formal.oclAsType(Property).isAttribute())))

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

setIsNavigable

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

Parameters:
isNavigable - The new navigability.

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.

Parameters:
value - The new default value.

setIntegerDefaultValue

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

Parameters:
value - The new default value.

setStringDefaultValue

void setStringDefaultValue(java.lang.String value)
Sets the default value for this property to the specified string value.

Parameters:
value - The new default value.

setUnlimitedNaturalDefaultValue

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

Parameters:
value - The new default value.

isAttribute

boolean isAttribute()
The query isAttribute() is true if the Property is defined as an attribute of some Classifier. result = (not classifier->isEmpty())

From package UML::Classification.


setNullDefaultValue

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


setRealDefaultValue

void setRealDefaultValue(double value)
Sets the default value for this property to the specified real value.

Parameters:
value - The new default value.

subsettingContext

org.eclipse.emf.common.util.EList<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 <> null then association.memberEnd->excluding(self)->collect(type)->asSet() else if classifier<>null then classifier->asSet() else Set{} endif endif)

From package UML::Classification.


isNavigable

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

From package UML::Classification.


Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.