public interface Property extends StructuralFeature, ConnectableElement, DeploymentTarget
From package UML::Classification.
The following features are supported:
UMLPackage.getProperty()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
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.
|
isReadOnly, setIsReadOnly
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid
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
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
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, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateLowerIsInteger, validateUpperGeLower, validateUpperIsUnlimitedNatural, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
getEnds
getType, setType
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
createDeployment, getDeployedElement, getDeployedElement, getDeployedElements, getDeployment, getDeployment, getDeployments
DataType getDatatype()
Owned Attribute
'.
This feature subsets the following features:
The DataType that owns this Property, if any.From package UML::Classification.
setDatatype(DataType)
,
UMLPackage.getProperty_Datatype()
,
DataType.getOwnedAttributes()
void setDatatype(DataType value)
Datatype
' container reference.
value
- the new value of the 'Datatype' container reference.getDatatype()
Interface getInterface()
Owned Attribute
'.
This feature subsets the following features:
The Interface that owns this Property, if any.From package UML::Classification.
setInterface(Interface)
,
UMLPackage.getProperty_Interface()
,
Interface.getOwnedAttributes()
void setInterface(Interface value)
Interface
' container reference.
value
- the new value of the 'Interface' container reference.getInterface()
boolean isDerived()
"false"
.
Specifies whether the Property is derived, i.e., whether its value or values can be computed from other information.
From package UML::Classification.
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.
From package UML::Classification.
setIsDerivedUnion(boolean)
,
UMLPackage.getProperty_IsDerivedUnion()
void setIsDerivedUnion(boolean value)
Is Derived Union
' attribute.
value
- the new value of the 'Is Derived Union' attribute.isDerivedUnion()
boolean isID()
"false"
.
True indicates this property can be used to uniquely identify an instance of the containing Class.
From package UML::Classification.
setIsID(boolean)
,
UMLPackage.getProperty_IsID()
void setIsID(boolean value)
Is ID
' attribute.
value
- the new value of the 'Is ID' attribute.isID()
java.lang.String getDefault()
void setDefault(java.lang.String newDefault)
newDefault
- A string representation of the new default value.
AggregationKind getAggregation()
"none"
.
The literals are from the enumeration AggregationKind
.
Specifies the kind of aggregation that applies to the Property.
From package UML::Classification.
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.
From package UML::Classification.
setIsComposite(boolean)
,
UMLPackage.getProperty_IsComposite()
void setIsComposite(boolean value)
Is Composite
' attribute.
value
- the new value of the 'Is Composite' attribute.isComposite()
Class getClass_()
This feature subsets the following features:
The Class that owns this Property, if any.From package UML::Classification.
UMLPackage.getProperty_Class()
org.eclipse.emf.common.util.EList<Property> getRedefinedProperties()
Property
.
This feature subsets the following features:
The properties that are redefined by this property, if any.From package UML::Classification.
UMLPackage.getProperty_RedefinedProperty()
Property getRedefinedProperty(java.lang.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(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.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
'.
This feature subsets the following features:
The owning association of this property, if any.From package UML::Classification.
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
'.
The Association of which this Property is a member, if any.
From package UML::Classification.
setAssociation(Association)
,
UMLPackage.getProperty_Association()
,
Association.getMemberEnds()
void setAssociation(Association value)
Association
' reference.
value
- the new value of the 'Association' reference.getAssociation()
ValueSpecification getDefaultValue()
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.
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(java.lang.String name, Type type, org.eclipse.emf.ecore.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()
From package UML::Classification.
setOpposite(Property)
,
UMLPackage.getProperty_Opposite()
void setOpposite(Property value)
Opposite
' reference.
value
- the new value of the 'Opposite' reference.getOpposite()
org.eclipse.emf.common.util.EList<Property> getSubsettedProperties()
Property
.
The properties of which this Property is constrained to be a subset, if any.
From package UML::Classification.
UMLPackage.getProperty_SubsettedProperty()
Property getSubsettedProperty(java.lang.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(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<Property> getQualifiers()
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.
UMLPackage.getProperty_Qualifier()
,
getAssociationEnd()
Property createQualifier(java.lang.String name, Type type, org.eclipse.emf.ecore.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(java.lang.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(java.lang.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(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.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
'.
This feature subsets the following features:
Owner
'From package UML::Classification.
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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSubsettingContextConforms(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateRedefinedPropertyInherited(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSubsettingRules(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateDerivedUnionIsDerived(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateDerivedUnionIsReadOnly(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSubsettedPropertyNames(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateTypeOfOppositeEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateQualifiedIsAssociationEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateDeploymentTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateBindingToAttribute(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
void setIsNavigable(boolean isNavigable)
isNavigable
- The new navigability.
Property getOtherEnd()
void setBooleanDefaultValue(boolean value)
value
- The new default value.
void setIntegerDefaultValue(int value)
value
- The new default value.
void setStringDefaultValue(java.lang.String value)
value
- The new default value.
void setUnlimitedNaturalDefaultValue(int value)
value
- The new default value.
boolean isAttribute()
From package UML::Classification.
void setNullDefaultValue()
void setRealDefaultValue(double value)
value
- The new default value.
org.eclipse.emf.common.util.EList<Type> subsettingContext()
From package UML::Classification.
boolean isNavigable()
From package UML::Classification.