Interface Definition
- All Superinterfaces:
BaseElement,Classifier,Cloneable,Comparable,Element,org.eclipse.emf.ecore.EObject,ModelElement,com.dassault_systemes.modeler.modelextension.model.modelextension.ModelExtensionObject,Namespace,org.eclipse.emf.common.notify.Notifier,Type
- All Known Subinterfaces:
ActionDefinition,AllocationDefinition,AnalysisCaseDefinition,AttributeDefinition,CalculationDefinition,CaseDefinition,ConcernDefinition,ConjugatedPortDefinition,ConnectionDefinition,ConstraintDefinition,EnumerationDefinition,FlowDefinition,InterfaceDefinition,ItemDefinition,MetadataDefinition,OccurrenceDefinition,PartDefinition,PortDefinition,RenderingDefinition,RequirementDefinition,StateDefinition,UseCaseDefinition,VerificationCaseDefinition,ViewDefinition,ViewpointDefinition
A Definition is a Classifier of Usages. The actual kinds of Definition that may appear in a model are given by the subclasses of Definition (possibly as extended with user-defined SemanticMetadata).
Normally, a Definition has owned Usages that model features of the thing being defined. A Definition may also have other Definitions nested in it, but this has no semantic significance, other than the nested scoping resulting from the Definition being considered as a Namespace for any nested Definitions.
However, if a Definition has isVariation = true, then it represents a variation point Definition. In this case, all of its members must be variant Usages, related to the Definition by VariantMembership Relationships. Rather than being features of the Definition, variant Usages model different concrete alternatives that can be chosen to fill in for an abstract Usage of the variation point Definition.
-
Method Summary
Modifier and TypeMethodDescriptionTheusagesof thisDefinitionthat aredirectedFeatures.TheActionUsagesthat areownedUsagesof thisDefinition.TheAllocationUsagesthat areownedUsagesof thisDefinition.TheAnalysisCaseUsagesthat areownedUsagesof thisDefinition.TheAttributeUsagesthat areownedUsagesof thisDefinition.TheCalculationUsagesthat areownedUsagesof thisDefinition.The code>CaseUsages that areownedUsagesof thisDefinition.TheConcernUsagesthat areownedUsagesof thisDefinition.TheConnectorAsUsagesthat areownedUsagesof thisDefinition.TheConstraintUsagesthat areownedUsagesof thisDefinition.TheEnumerationUsagesthat areownedUsagesof thisDefinition.TheFlowUsagesthat areownedUsagesof thisDefinition.TheInterfaceUsagesthat areownedUsagesof thisDefinition.TheItemUsagesthat areownedUsagesof thisDefinition.TheMetadataUsagesthat areownedUsagesof thisDefinition.TheOccurrenceUsagesthat areownedUsagesof thisDefinition.ThePartUsagesthat areownedUsagesof thisDefinition.ThePortUsagesthat areownedUsagesof thisDefinition.TheReferenceUsagesthat areownedUsagesof thisDefinition.TheRenderingUsagesthat areownedUsagesof thisDefinition.TheRequirementUsagesthat areownedUsagesof thisDefinition.TheStateUsagesthat areownedUsagesof thisDefinition.TheTransitionUsagesthat areownedUsagesof thisDefinition.TheUsagesthat areownedFeaturesof thisDefinition.TheUseCaseUsagesthat areownedUsagesof thisDefinition.TheVerificationCaseUsagesthat areownedUsagesof thisDefinition.TheViewUsagesthat areownedUsagesof thisDefinition.TheViewpointUsagesthat areownedUsagesof thisDefinition.getUsage()TheUsagesthat arefeaturesof thisDefinition(not necessarily owned).TheUsageswhich represent the variants of thisDefinitionas a variation pointDefinition, ifisVariation= true.TheownedMembershipsof thisDefinitionthat areVariantMemberships.booleanWhether thisDefinitionis for a variation point or not.voidsetIsVariation(boolean value) Whether thisDefinitionis for a variation point or not.Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getID, isEditable, isSelfChangeable, removePropertyChangeListener, setID, sGetIDMethods inherited from interface com.dassault_systemes.modeler.kerml.model.kerml.Classifier
getOwnedSubclassificationMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.dassault_systemes.modeler.kerml.model.kerml.Element
effectiveName, effectiveShortName, escapedName, getAliasIds, getDeclaredName, getDeclaredShortName, getDocumentation, getElementId, getName, getOwnedAnnotation, getOwnedElement, getOwnedRelationship, getOwner, getOwningMembership, getOwningNamespace, getOwningRelationship, getQualifiedName, getShortName, getTextualRepresentation, isImpliedIncluded, isLibraryElement, libraryNamespace, path, setDeclaredName, setDeclaredShortName, setElementId, setIsImpliedIncluded, setOwner, setOwningMembership, setOwningRelationshipMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, dispose, eDynamicGet, getElementOwner, getLocalID, getObjectParent, selfDispose, setLocalID, sGetLocalIDMethods inherited from interface com.dassault_systemes.modeler.modelextension.model.modelextension.ModelExtensionObject
getModelExtension, getModelExtensionMethods inherited from interface com.dassault_systemes.modeler.kerml.model.kerml.Namespace
getImportedMembership, getMember, getMembership, getOwnedImport, getOwnedMember, getOwnedMembership, importedMemberships, membershipsOfVisibility, namesOf, qualificationOf, resolve, resolveGlobal, resolveLocal, resolveVisible, unqualifiedNameOf, visibilityOfMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface com.dassault_systemes.modeler.kerml.model.kerml.Type
allRedefinedFeaturesOf, allSupertypes, directionOf, directionOfExcluding, getDifferencingType, getDirectedFeature, getEndFeature, getFeature, getFeatureMembership, getInheritedFeature, getInheritedMembership, getInput, getIntersectingType, getMultiplicity, getOutput, getOwnedConjugator, getOwnedDifferencing, getOwnedDisjoining, getOwnedEndFeature, getOwnedFeature, getOwnedFeatureMembership, getOwnedIntersecting, getOwnedSpecialization, getOwnedUnioning, getUnioningType, inheritableMemberships, inheritedMemberships, isAbstract, isCompatibleWith, isConjugated, isSufficient, multiplicities, nonPrivateMemberships, removeRedefinedFeatures, setIsAbstract, setIsSufficient, specializes, specializesFromLibrary, supertypes, visibleMemberships
-
Method Details
-
isVariation
boolean isVariation()Whether this
Definitionis for a variation point or not. If true, then all themembershipsof theDefinitionmust beVariantMemberships.- Returns:
- the isVariation value
- Model:
- derived="false" transient="false"
-
setIsVariation
void setIsVariation(boolean value) Whether this
Definitionis for a variation point or not. If true, then all themembershipsof theDefinitionmust beVariantMemberships.- Parameters:
value- the isVariation value- Model:
- derived="false" transient="false"
-
getVariant
The
Usageswhich represent the variants of thisDefinitionas a variation pointDefinition, ifisVariation= true. IfisVariation = false, the there must be novariants.- Returns:
- the variant value
- Model:
- derived="true" transient="true" oppositeRoleName="owningVariationDefinition"
-
getVariantMembership
List<VariantMembership> getVariantMembership()The
ownedMembershipsof thisDefinitionthat areVariantMemberships. IfisVariation= true, then this must be allownedMembershipsof theDefinition. IfisVariation= false, thenvariantMembershipmust be empty.- Returns:
- the variantMembership value
- Model:
- derived="true" transient="true" oppositeRoleName="owningVariationDefinition"
-
getUsage
The
Usagesthat arefeaturesof thisDefinition(not necessarily owned).- Returns:
- the usage value
- Model:
- derived="true" transient="true" oppositeRoleName="featuringDefinition"
-
getDirectedUsage
The
usagesof thisDefinitionthat aredirectedFeatures.- Returns:
- the directedUsage value
- Model:
- derived="true"
transient="true"
oppositeRoleName="definitionWithDirectedUsage"
subsets=
getUsage()
-
getOwnedUsage
The
Usagesthat areownedFeaturesof thisDefinition.- Returns:
- the ownedUsage value
- Model:
- derived="true"
transient="true"
opposite=
Usage.getOwningDefinition()subsets=getUsage()
-
getOwnedReference
List<ReferenceUsage> getOwnedReference()The
ReferenceUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedReference value
- Model:
- derived="true"
transient="true"
oppositeRoleName="referenceOwningDefinition"
subsets=
getOwnedUsage()
-
getOwnedAttribute
List<AttributeUsage> getOwnedAttribute()The
AttributeUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedAttribute value
- Model:
- derived="true"
transient="true"
oppositeRoleName="attributeOwningDefinition"
subsets=
getOwnedUsage()
-
getOwnedEnumeration
List<EnumerationUsage> getOwnedEnumeration()The
EnumerationUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedEnumeration value
- Model:
- derived="true"
transient="true"
oppositeRoleName="enumerationOwningDefinition"
subsets=
getOwnedAttribute()
-
getOwnedOccurrence
List<OccurrenceUsage> getOwnedOccurrence()The
OccurrenceUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedOccurrence value
- Model:
- derived="true"
transient="true"
oppositeRoleName="occurrenceOwningDefinition"
subsets=
getOwnedUsage()
-
getOwnedItem
The
ItemUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedItem value
- Model:
- derived="true"
transient="true"
oppositeRoleName="itemOwningDefinition"
subsets=
getOwnedOccurrence()
-
getOwnedPart
The
PartUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedPart value
- Model:
- derived="true"
transient="true"
oppositeRoleName="partOwningDefinition"
subsets=
getOwnedItem()
-
getOwnedPort
The
PortUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedPort value
- Model:
- derived="true"
transient="true"
oppositeRoleName="portOwningDefinition"
subsets=
getOwnedUsage()
-
getOwnedConnection
List<ConnectorAsUsage> getOwnedConnection()The
ConnectorAsUsagesthat areownedUsagesof thisDefinition. Note that this list includesBindingConnectorAsUsages,SuccessionAsUsages, andFlowUsagesbecause these areConnectorAsUsageseven though they are notConnectionUsages.- Returns:
- the ownedConnection value
- Model:
- derived="true"
transient="true"
oppositeRoleName="connectionOwningDefinition"
subsets=
getOwnedUsage()
-
getOwnedFlow
The
FlowUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedFlow value
- Model:
- derived="true"
transient="true"
oppositeRoleName="flowOwningDefinition"
subsets=
getOwnedConnection()
-
getOwnedInterface
List<InterfaceUsage> getOwnedInterface()The
InterfaceUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedInterface value
- Model:
- derived="true"
transient="true"
oppositeRoleName="interfaceOwningDefinition"
subsets=
getOwnedConnection()
-
getOwnedAllocation
List<AllocationUsage> getOwnedAllocation()The
AllocationUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedAllocation value
- Model:
- derived="true"
transient="true"
oppositeRoleName="allocationOwningDefinition"
subsets=
getOwnedConnection()
-
getOwnedAction
List<ActionUsage> getOwnedAction()The
ActionUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedAction value
- Model:
- derived="true"
transient="true"
oppositeRoleName="actionOwningDefinition"
subsets=
getOwnedOccurrence()
-
getOwnedState
List<StateUsage> getOwnedState()The
StateUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedState value
- Model:
- derived="true"
transient="true"
oppositeRoleName="stateOwningDefinition"
subsets=
getOwnedAction()
-
getOwnedTransition
List<TransitionUsage> getOwnedTransition()The
TransitionUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedTransition value
- Model:
- derived="true"
transient="true"
oppositeRoleName="transitionOwningDefinition"
subsets=
getOwnedUsage()
-
getOwnedCalculation
List<CalculationUsage> getOwnedCalculation()The
CalculationUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedCalculation value
- Model:
- derived="true"
transient="true"
oppositeRoleName="calculationOwningDefinition"
subsets=
getOwnedAction()
-
getOwnedConstraint
List<ConstraintUsage> getOwnedConstraint()The
ConstraintUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedConstraint value
- Model:
- derived="true"
transient="true"
oppositeRoleName="constraintOwningDefinition"
subsets=
getOwnedOccurrence()
-
getOwnedRequirement
List<RequirementUsage> getOwnedRequirement()The
RequirementUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedRequirement value
- Model:
- derived="true"
transient="true"
oppositeRoleName="requirementOwningDefinition"
subsets=
getOwnedConstraint()
-
getOwnedConcern
List<ConcernUsage> getOwnedConcern()The
ConcernUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedConcern value
- Model:
- derived="true"
transient="true"
oppositeRoleName="concernOwningDefinition"
subsets=
getOwnedRequirement()
-
getOwnedCase
The code>CaseUsages that are
ownedUsagesof thisDefinition.- Returns:
- the ownedCase value
- Model:
- derived="true"
transient="true"
oppositeRoleName="caseOwningDefinition"
subsets=
getOwnedCalculation()
-
getOwnedAnalysisCase
List<AnalysisCaseUsage> getOwnedAnalysisCase()The
AnalysisCaseUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedAnalysisCase value
- Model:
- derived="true"
transient="true"
oppositeRoleName="analysisCaseOwningDefinition"
subsets=
getOwnedCase()
-
getOwnedVerificationCase
List<VerificationCaseUsage> getOwnedVerificationCase()The
VerificationCaseUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedVerificationCase value
- Model:
- derived="true"
transient="true"
oppositeRoleName="verificationCaseOwningDefinition"
subsets=
getOwnedCase()
-
getOwnedUseCase
List<UseCaseUsage> getOwnedUseCase()The
UseCaseUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedUseCase value
- Model:
- derived="true"
transient="true"
oppositeRoleName="useCaseOwningDefinition"
subsets=
getOwnedCase()
-
getOwnedView
The
ViewUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedView value
- Model:
- derived="true"
transient="true"
oppositeRoleName="viewOwningDefinition"
subsets=
getOwnedPart()
-
getOwnedViewpoint
List<ViewpointUsage> getOwnedViewpoint()The
ViewpointUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedViewpoint value
- Model:
- derived="true"
transient="true"
oppositeRoleName="viewpointOwningDefinition"
subsets=
getOwnedRequirement()
-
getOwnedRendering
List<RenderingUsage> getOwnedRendering()The
RenderingUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedRendering value
- Model:
- derived="true"
transient="true"
oppositeRoleName="redenderingOwningDefinition"
subsets=
getOwnedPart()
-
getOwnedMetadata
List<MetadataUsage> getOwnedMetadata()The
MetadataUsagesthat areownedUsagesof thisDefinition.- Returns:
- the ownedMetadata value
- Model:
- derived="true"
transient="true"
oppositeRoleName="metadataOwningDefinition"
subsets=
getOwnedItem()
-