All Superinterfaces:
BaseElement, BehavioredClassifier, Classifier, Cloneable, Comparable, Element, EncapsulatedClassifier, org.eclipse.emf.ecore.EObject, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, PackageableElement, ParameterableElement, RedefinableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, StructuredClassifier, TemplateableElement, Type
All Known Subinterfaces:
Activity, AssociationClass, Behavior, Component, Device, ExecutionEnvironment, FunctionBehavior, Interaction, Node, OpaqueBehavior, ProtocolStateMachine, StateMachine, Stereotype

public interface Class extends EncapsulatedClassifier, BehavioredClassifier
A representation of the model object 'Class'.

A Class classifies a set of objects and specifies the features that characterize the structure and behavior of those objects. A Class may have an internal structure and Ports.

The following features are supported:

See Also:
Model:
annotation="MOF package='classes.mdkernel'"
Generated:
  • Method Details

    • getExtension

      Collection<Extension> getExtension()
      Returns the value of the 'Extension' reference list. The list contents are of type Extension. It is bidirectional and its opposite is 'Metaclass'. This property is used when the Class is acting as a metaclass. It references the Extensions that specify additional properties of the metaclass. The property is derived from the Extensions whose memberEnds are typed by the Class.
      Returns:
      the value of the 'Extension' reference list.
      See Also:
      Model:
      opposite="metaclass" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • isActive

      boolean isActive()
      Returns the value of the 'Active' attribute. The default value is "false". Determines whether an object specified by this Class is active or not. If true, then the owning Class is referred to as an active Class. If false, then such a Class is referred to as a passive Class.
      Returns:
      the value of the 'Active' attribute.
      See Also:
      Model:
      default="false" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
      Generated:
    • setActive

      void setActive(boolean value)
      Sets the value of the 'Active' attribute.
      Parameters:
      value - the new value of the 'Active' attribute.
      See Also:
      Generated:
    • getNestedClassifier

      List<Classifier> getNestedClassifier()
      Returns the value of the 'Nested Classifier' containment reference list. The list contents are of type Classifier. It is bidirectional and its opposite is 'UML Class'. The Classifiers owned by the Class that are not ownedBehaviors.
      Returns:
      the value of the 'Nested Classifier' containment reference list.
      See Also:
      Model:
      opposite="UMLClass" containment="true" resolveProxies="true"
      Generated:
    • getOwnedOperation

      List<Operation> getOwnedOperation()
      Returns the value of the 'Owned Operation' containment reference list. The list contents are of type Operation. It is bidirectional and its opposite is 'UML Class'. The Operations owned by the Class.
      Returns:
      the value of the 'Owned Operation' containment reference list.
      See Also:
      Model:
      opposite="UMLClass" containment="true" resolveProxies="true"
      Generated:
    • getSuperClass

      Collection<Class> getSuperClass()
      Returns the value of the 'Super Class' reference list. The list contents are of type Class. It is bidirectional and its opposite is 'class Of Super Class'. The superclasses of a Class, derived from its Generalizations.
      Returns:
      the value of the 'Super Class' reference list.
      See Also:
      Model:
      opposite="_classOfSuperClass" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getOwnedReception

      Collection<Reception> getOwnedReception()
      Returns the value of the 'Owned Reception' containment reference list. The list contents are of type Reception. It is bidirectional and its opposite is 'class Of Owned Reception'. The Receptions owned by the Class.
      Returns:
      the value of the 'Owned Reception' containment reference list.
      See Also:
      Model:
      opposite="_classOfOwnedReception" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • getOwnedAttribute

      List<Property> getOwnedAttribute()
      Returns the value of the 'Owned Attribute' containment reference list. The list contents are of type Property. It is bidirectional and its opposite is 'UML Class'. The attributes (i.e., the Properties) owned by the Class.
      Specified by:
      getOwnedAttribute in interface StructuredClassifier
      Returns:
      the value of the 'Owned Attribute' containment reference list.
      See Also:
      Model:
      opposite="UMLClass" containment="true" resolveProxies="true"
      Generated:
    • isAbstract

      boolean isAbstract()
      Returns the value of the 'Abstract' attribute. The default value is "false". If true, the Class does not provide a complete declaration and cannot be instantiated. An abstract Class is typically used as a target of Associations or Generalizations.
      Specified by:
      isAbstract in interface Classifier
      Returns:
      the value of the 'Abstract' attribute.
      See Also:
      Model:
      default="false" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
      Generated:
    • setAbstract

      void setAbstract(boolean value)
      Sets the value of the 'Abstract' attribute.
      Specified by:
      setAbstract in interface Classifier
      Parameters:
      value - the new value of the 'Abstract' attribute.
      See Also:
      Generated:
    • hasExtension

      boolean hasExtension() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasNestedClassifier

      boolean hasNestedClassifier() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasOwnedOperation

      boolean hasOwnedOperation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasSuperClass

      boolean hasSuperClass() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasOwnedReception

      boolean hasOwnedReception() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated: