public interface Property extends StructuralFeature, ConnectableElement, DeploymentTarget, TemplateableElement
The following features are supported:
UMLPackage.getProperty()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createDefaultValue(String name,
Type type,
EClass eClass)
Creates a new
ValueSpecification , with the specified 'Name', and 'Type',
and sets the 'Default Value' containment reference. |
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. |
Property |
createQualifier(String name,
Type type,
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.
|
String |
getDefault()
Returns the value of the 'Default' attribute.
|
ValueSpecification |
getDefaultValue()
Returns the value of the 'Default Value' containment 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(String name,
Type type)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Qualifier' containment reference list. |
Property |
getQualifier(String name,
Type type,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Qualifier' containment reference list. |
MDWEList<Property> |
getQualifiers()
Returns the value of the 'Qualifier' containment reference list.
|
MDWEList<Property> |
getRedefinedProperties()
Returns the value of the 'Redefined Property' reference list.
|
Property |
getRedefinedProperty(String name,
Type type)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Redefined Property' reference list. |
Property |
getRedefinedProperty(String name,
Type type,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Redefined Property' reference list. |
MDWEList<Property> |
getSubsettedProperties()
Returns the value of the 'Subsetted Property' reference list.
|
Property |
getSubsettedProperty(String name,
Type type)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Subsetted Property' reference list. |
Property |
getSubsettedProperty(String name,
Type type,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Subsetted Property' reference list. |
boolean |
isAttribute(Property p)
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 'isID' value for the current Property.
for UML 2.4 or higher |
boolean |
isNavigable()
The query isNavigable() indicates whether it is possible to navigate across the property.
|
boolean |
isSetDefault()
Returns whether the value of the '
Default ' attribute is set. |
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(String value)
Sets the value of the '
Default ' attribute. |
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 |
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 isID)
Set the 'isID' value for the current Property.
for UML 2.4 or higher |
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 |
setStringDefaultValue(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.
|
MDWEList<Type> |
subsettingContext()
The query subsettingContext() gives the context for subsetting a property.
|
void |
unsetDefault()
Unsets the value of the '
Default ' attribute. |
boolean |
validateBindingToAttribute(DiagnosticChain diagnostics,
Map context)
A binding of a property template parameter representing an attribute must be to an attribute.
|
boolean |
validateDeploymentTarget(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.
|
boolean |
validateDerivedUnionIsDerived(DiagnosticChain diagnostics,
Map context)
A derived union is derived.
|
boolean |
validateDerivedUnionIsReadOnly(DiagnosticChain diagnostics,
Map context)
A derived union is read only.
|
boolean |
validateMultiplicityOfComposite(DiagnosticChain diagnostics,
Map context)
A multiplicity of a composite aggregation must not have an upper bound greater than 1.
|
boolean |
validateNavigableReadonly(DiagnosticChain diagnostics,
Map context)
Only a navigable property can be marked as readOnly.
|
boolean |
validateRedefinedPropertyInherited(DiagnosticChain diagnostics,
Map context)
A redefined property must be inherited from a more general classifier containing the redefining property.
|
boolean |
validateSubsettedPropertyNames(DiagnosticChain diagnostics,
Map context)
A property may not subset a property with the same name.
|
boolean |
validateSubsettingContextConforms(DiagnosticChain diagnostics,
Map context)
Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property.
|
boolean |
validateSubsettingRules(DiagnosticChain diagnostics,
Map context)
A subsetting property may strengthen the type of the subsetted property, and its upper bound may be less.
|
isReadOnly, setIsReadOnly
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
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
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
compatibleWith, createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesCardinality, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateUpperGeLower, validateUpperGt0, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
getEnds
getType, setType
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
createDeployment, getDeployedElement, getDeployedElement, getDeployedElements, getDeployment, getDeployment, getDeployments
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
DataType getDatatype()
Owned Attribute
'.
The DataType that owns this Property.
setDatatype(DataType)
,
UMLPackage.getProperty_Datatype()
,
DataType.getOwnedAttributes()
void setDatatype(DataType value)
Datatype
' container reference.
value
- the new value of the 'Datatype' container reference.getDatatype()
boolean isDerived()
"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.
setIsDerived(boolean)
,
UMLPackage.getProperty_IsDerived()
void setIsDerived(boolean value)
Is Derived
' attribute.
value
- the new value of the 'Is Derived' attribute.isDerived()
boolean isDerivedUnion()
"false"
.
Specifies whether the property is derived as the union of all of the properties that are constrained to subset it.
setIsDerivedUnion(boolean)
,
UMLPackage.getProperty_IsDerivedUnion()
void setIsDerivedUnion(boolean value)
Is Derived Union
' attribute.
value
- the new value of the 'Is Derived Union' attribute.isDerivedUnion()
String getDefault()
isSetDefault()
,
unsetDefault()
,
setDefault(String)
,
UMLPackage.getProperty_Default()
void setDefault(String value)
Default
' attribute.
value
- the new value of the 'Default' attribute.isSetDefault()
,
unsetDefault()
,
getDefault()
void unsetDefault()
Default
' attribute.
isSetDefault()
,
getDefault()
,
setDefault(String)
boolean isSetDefault()
Default
' attribute is set.
unsetDefault()
,
getDefault()
,
setDefault(String)
AggregationKind getAggregation()
"none"
.
The literals are from the enumeration AggregationKind
.
Specifies the kind of aggregation that applies to the Property.
AggregationKind
,
setAggregation(AggregationKind)
,
UMLPackage.getProperty_Aggregation()
void setAggregation(AggregationKind value)
Aggregation
' attribute.
value
- the new value of the 'Aggregation' attribute.AggregationKind
,
getAggregation()
boolean isComposite()
"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.
setIsComposite(boolean)
,
UMLPackage.getProperty_IsComposite()
void setIsComposite(boolean value)
Is Composite
' attribute.
value
- the new value of the 'Is Composite' attribute.isComposite()
Class getClass_()
UMLPackage.getProperty_Class()
MDWEList<Property> getRedefinedProperties()
Property
.
References the properties that are redefined by this property.
UMLPackage.getProperty_RedefinedProperty()
Property getRedefinedProperty(String name, Type type)
Property
with the specified 'Name', and 'Type' from
the 'Redefined Property' reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getRedefinedProperties()
Property getRedefinedProperty(String name, Type type, boolean ignoreCase, EClass eClass)
Property
with the specified 'Name', and 'Type' from
the 'Redefined Property' reference list.
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
.Property
with the specified 'Name', and 'Type', or
null
.getRedefinedProperties()
Association getOwningAssociation()
Owned End
'.
References the owning association of this property, if any.
setOwningAssociation(Association)
,
UMLPackage.getProperty_OwningAssociation()
,
Association.getOwnedEnds()
void setOwningAssociation(Association value)
Owning Association
' container reference.
value
- the new value of the 'Owning Association' container reference.getOwningAssociation()
Association getAssociation()
Member End
'.
References the association of which this property is a member, if any.
setAssociation(Association)
,
UMLPackage.getProperty_Association()
,
Association.getMemberEnds()
void setAssociation(Association value)
Association
' reference.
value
- the new value of the 'Association' reference.getAssociation()
ValueSpecification getDefaultValue()
setDefaultValue(ValueSpecification)
,
UMLPackage.getProperty_DefaultValue()
void setDefaultValue(ValueSpecification value)
Default Value
' containment reference.
value
- the new value of the 'Default Value' containment reference.getDefaultValue()
ValueSpecification createDefaultValue(String name, Type type, EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type',
and sets the 'Default Value' containment reference.
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.ValueSpecification
.getDefaultValue()
Property getOpposite()
setOpposite(Property)
,
UMLPackage.getProperty_Opposite()
void setOpposite(Property value)
Opposite
' reference.
value
- the new value of the 'Opposite' reference.getOpposite()
MDWEList<Property> getSubsettedProperties()
Property
.
References the properties of which this property is constrained to be a subset.
UMLPackage.getProperty_SubsettedProperty()
Property getSubsettedProperty(String name, Type type)
Property
with the specified 'Name', and 'Type' from
the 'Subsetted Property' reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getSubsettedProperties()
Property getSubsettedProperty(String name, Type type, boolean ignoreCase, EClass eClass)
Property
with the specified 'Name', and 'Type' from
the 'Subsetted Property' reference list.
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
.Property
with the specified 'Name', and 'Type', or
null
.getSubsettedProperties()
MDWEList<Property> getQualifiers()
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.
UMLPackage.getProperty_Qualifier()
,
getAssociationEnd()
Property createQualifier(String name, Type type, EClass eClass)
Property
, with the specified 'Name', and 'Type', and
appends it to the 'Qualifier' containment reference list.
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.Property
.getQualifiers()
Property createQualifier(String name, Type type)
Property
, with the specified 'Name', and 'Type', and
appends it to the 'Qualifier' containment reference list.
name
- The 'Name' for the new Property
, or null
.type
- The 'Type' for the new Property
, or null
.Property
.getQualifiers()
Property getQualifier(String name, Type type)
Property
with the specified 'Name', and 'Type' from
the 'Qualifier' containment reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getQualifiers()
Property getQualifier(String name, Type type, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Property
with the specified 'Name', and 'Type' from
the 'Qualifier' containment reference list.
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.Property
with the specified 'Name', and 'Type', or
null
.getQualifiers()
Property getAssociationEnd()
Qualifier
'.
Designates the optional association end that owns a qualifier attribute.
setAssociationEnd(Property)
,
UMLPackage.getProperty_AssociationEnd()
,
getQualifiers()
void setAssociationEnd(Property value)
Association End
' container reference.
value
- the new value of the 'Association End' container reference.getAssociationEnd()
boolean validateMultiplicityOfComposite(DiagnosticChain diagnostics, Map context)
boolean validateSubsettingContextConforms(DiagnosticChain diagnostics, Map context)
boolean validateRedefinedPropertyInherited(DiagnosticChain diagnostics, Map context)
boolean validateSubsettingRules(DiagnosticChain diagnostics, Map context)
boolean validateNavigableReadonly(DiagnosticChain diagnostics, Map context)
boolean validateDerivedUnionIsDerived(DiagnosticChain diagnostics, Map context)
boolean validateDerivedUnionIsReadOnly(DiagnosticChain diagnostics, Map context)
boolean validateSubsettedPropertyNames(DiagnosticChain diagnostics, Map context)
boolean validateDeploymentTarget(DiagnosticChain diagnostics, Map context)
boolean validateBindingToAttribute(DiagnosticChain diagnostics, Map context)
void setIsNavigable(boolean isNavigable)
Property getOtherEnd()
void setBooleanDefaultValue(boolean value)
void setIntegerDefaultValue(int value)
void setStringDefaultValue(String value)
void setUnlimitedNaturalDefaultValue(int value)
void setNullDefaultValue()
boolean isAttribute(Property p)
MDWEList<Type> subsettingContext()
boolean isNavigable()
boolean isID()
void setIsID(boolean isID)
isID
- boolean value