Interface ModelElement

All Superinterfaces:
BaseElement, Cloneable, Comparable, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
Abstraction, AcceptActionUsage, AcceptCallAction, AcceptEventAction, Action, ActionDefinition, ActionExecutionSpecification, ActionInputPin, ActionUsage, Activity, ActivityEdge, ActivityFinalNode, ActivityGroup, ActivityNode, ActivityParameterNode, ActivityPartition, Actor, ActorMembership, AddStructuralFeatureValueAction, AddVariableValueAction, AllocationDefinition, AllocationUsage, AnalysisCaseDefinition, AnalysisCaseUsage, AnnotatingElement, Annotation, AnyReceiveEvent, Artifact, AssertConstraintUsage, AssignmentActionUsage, Association, Association, AssociationClass, AssociationStructure, AttributeDefinition, AttributeUsage, Behavior, Behavior, BehavioralFeature, BehavioredClassifier, BehaviorExecutionSpecification, BindingConnector, BindingConnectorAsUsage, BooleanExpression, BooleanTaggedValue, BroadcastSignalAction, CalculationDefinition, CalculationUsage, CallAction, CallBehaviorAction, CallEvent, CallOperationAction, CaseDefinition, CaseUsage, CentralBufferNode, ChangeEvent, Class, Class, Classifier, Classifier, ClassifierTemplateParameter, Clause, ClearAssociationAction, ClearStructuralFeatureAction, ClearVariableAction, Collaboration, CollaborationUse, CollectExpression, CombinedFragment, Comment, Comment, CommunicationPath, Component, ComponentRealization, ConcernDefinition, ConcernUsage, ConditionalNode, ConjugatedPortDefinition, ConjugatedPortTyping, Conjugation, ConnectableElement, ConnectableElementTemplateParameter, ConnectionDefinition, ConnectionPointReference, ConnectionUsage, Connector, Connector, ConnectorAsUsage, ConnectorEnd, ConsiderIgnoreFragment, Constraint, ConstraintDefinition, ConstraintUsage, ConstructorExpression, Continuation, ControlFlow, ControlNode, ControlNode, CreateLinkAction, CreateLinkObjectAction, CreateObjectAction, CrossSubsetting, DataStoreNode, DataType, DataType, DecisionNode, DecisionNode, Definition, Dependency, Dependency, DeployedArtifact, Deployment, DeploymentSpecification, DeploymentTarget, DestroyLinkAction, DestroyObjectAction, DestructionOccurrenceSpecification, Device, Diagram, Differencing, DirectedRelationship, Disjoining, Documentation, Duration, DurationConstraint, DurationInterval, DurationObservation, Element, Element, ElementFilterMembership, ElementImport, ElementTaggedValue, ElementValue, EncapsulatedClassifier, EndFeatureMembership, Enumeration, EnumerationDefinition, EnumerationLiteral, EnumerationUsage, Event, EventOccurrenceUsage, ExceptionHandler, ExecutableNode, ExecutionEnvironment, ExecutionOccurrenceSpecification, ExecutionSpecification, ExhibitStateUsage, ExpansionNode, ExpansionRegion, Expose, Expression, Expression, Extend, Extension, ExtensionEnd, ExtensionPoint, Feature, Feature, FeatureChainExpression, FeatureChaining, FeatureInverting, FeatureMembership, FeatureReferenceExpression, FeatureTyping, FeatureValue, FinalNode, FinalState, Flow, FlowDefinition, FlowEnd, FlowFinalNode, FlowUsage, ForkNode, ForkNode, ForLoopActionUsage, FramedConcernMembership, Function, FunctionBehavior, Gate, Generalization, GeneralizationSet, GeneralOrdering, IfActionUsage, Image, Import, Include, IncludeUseCaseUsage, IndexExpression, InformationFlow, InformationItem, InitialNode, InputPin, InstanceSpecification, InstanceValue, InstantiationExpression, IntegerTaggedValue, Interaction, Interaction, InteractionConstraint, InteractionFragment, InteractionOperand, InteractionUse, Interface, InterfaceDefinition, InterfaceRealization, InterfaceUsage, InterruptibleActivityRegion, Intersecting, Interval, IntervalConstraint, Invariant, InvocationAction, InvocationExpression, ItemDefinition, ItemUsage, JoinNode, JoinNode, LibraryPackage, Lifeline, LinkAction, LinkEndCreationData, LinkEndData, LinkEndDestructionData, LiteralBoolean, LiteralBoolean, LiteralExpression, LiteralInfinity, LiteralInteger, LiteralInteger, LiteralNull, LiteralRational, LiteralReal, LiteralSpecification, LiteralString, LiteralString, LiteralUnlimitedNatural, LoopActionUsage, LoopNode, Manifestation, Membership, MembershipExpose, MembershipImport, MergeNode, MergeNode, Message, MessageEnd, MessageEvent, MessageOccurrenceSpecification, Metaclass, MetadataAccessExpression, MetadataDefinition, MetadataFeature, MetadataUsage, Model, ModelObject, Multiplicity, MultiplicityElement, MultiplicityRange, NamedElement, Namespace, Namespace, NamespaceExpose, NamespaceImport, Node, NullExpression, ObjectFlow, ObjectiveMembership, ObjectNode, Observation, OccurrenceDefinition, OccurrenceSpecification, OccurrenceUsage, OpaqueAction, OpaqueBehavior, OpaqueExpression, Operation, OperationTemplateParameter, OperatorExpression, OutputPin, OwningMembership, Package, Package, PackageableElement, PackageImport, PackageMerge, Parameter, ParameterableElement, ParameterMembership, ParameterSet, PartDecomposition, PartDefinition, PartUsage, PayloadFeature, PerformActionUsage, Pin, Port, PortConjugation, PortDefinition, PortUsage, Predicate, PrimitiveType, Profile, ProfileApplication, Property, ProtocolConformance, ProtocolStateMachine, ProtocolTransition, Pseudostate, QualifierValue, RaiseExceptionAction, ReadExtentAction, ReadIsClassifiedObjectAction, ReadLinkAction, ReadLinkObjectEndAction, ReadLinkObjectEndQualifierAction, ReadSelfAction, ReadStructuralFeatureAction, ReadVariableAction, Realization, RealTaggedValue, Reception, ReclassifyObjectAction, RedefinableElement, RedefinableTemplateSignature, Redefinition, ReduceAction, ReferenceSubsetting, ReferenceUsage, Region, Relationship, Relationship, RemoveStructuralFeatureValueAction, RemoveVariableValueAction, RenderingDefinition, RenderingUsage, ReplyAction, RequirementConstraintMembership, RequirementDefinition, RequirementUsage, RequirementVerificationMembership, ResultExpressionMembership, ReturnParameterMembership, SatisfyRequirementUsage, SelectExpression, SendActionUsage, SendObjectAction, SendSignalAction, SequenceNode, Signal, SignalEvent, Slot, Specialization, StakeholderMembership, StartClassifierBehaviorAction, StartObjectBehaviorAction, State, StateDefinition, StateInvariant, StateMachine, StateSubactionMembership, StateUsage, Step, Stereotype, StringExpression, StringTaggedValue, StructuralFeature, StructuralFeatureAction, Structure, StructuredActivityNode, StructuredClassifier, Subclassification, SubjectMembership, Subsetting, Substitution, Succession, SuccessionAsUsage, SuccessionFlow, SuccessionFlowUsage, TaggedValue, TemplateableElement, TemplateBinding, TemplateParameter, TemplateParameterSubstitution, TemplateSignature, TerminateActionUsage, TestIdentityAction, TextualRepresentation, TimeConstraint, TimeEvent, TimeExpression, TimeInterval, TimeObservation, Transition, TransitionFeatureMembership, TransitionUsage, Trigger, TriggerInvocationExpression, Type, Type, TypedElement, TypeFeaturing, Unioning, UnmarshallAction, Usage, Usage, UseCase, UseCaseDefinition, UseCaseUsage, ValuePin, ValueSpecification, ValueSpecificationAction, Variable, VariableAction, VariantMembership, VerificationCaseDefinition, VerificationCaseUsage, Vertex, ViewDefinition, ViewpointDefinition, ViewpointUsage, ViewRenderingMembership, ViewUsage, WhileLoopActionUsage, WriteLinkAction, WriteStructuralFeatureAction, WriteVariableAction

@OpenApiAll public interface ModelElement extends org.eclipse.emf.ecore.EObject, BaseElement
  • Method Details

    • getLocalID

      String getLocalID()
    • setLocalID

      void setLocalID(String newID)
    • sGetLocalID

      String sGetLocalID()
    • dispose

      @OpenApi void dispose()
      Call this method to remove ModelElement and related other ModelElements from the repository.
      Specified by:
      dispose in interface BaseElement
    • selfDispose

      default void selfDispose()
      This is an optional simplified flavor of dispose() operation. As a minimum, it should dispose only the element itself, but also can dispose some related elements. By default, implementation calls dispose() #see dispose()
    • getObjectParent

      @CheckForNull ModelElement getObjectParent()
      Description copied from interface: BaseElement
      Returns the element parent. This implementation returns null. Should be overridden in subclasses.
      Specified by:
      getObjectParent in interface BaseElement
      Returns:
      the parent of the element.
    • getElementOwner

      @CheckForNull default ModelElement getElementOwner()
      Logical owner of the element. Might not be the same as getObjectParent()
      Returns:
      logical owner of the element
    • canChangeElementOwner

      boolean canChangeElementOwner(ModelElement owner, boolean checkPermissions)
      Checks if an element can be moved into the given owner. This method can check additional rules than BaseElement.canAdd(BaseElement, boolean)
      Parameters:
      owner - new owner
      checkPermissions - check permissions
      Returns:
      true of an owner can be changed for an element
    • eDynamicGet

      @CheckForNull default Object eDynamicGet(org.eclipse.emf.ecore.EStructuralFeature feature)