Interface Class
-
- All Superinterfaces:
BaseElement
,BehavioredClassifier
,Classifier
,java.lang.Cloneable
,java.lang.Comparable
,Element
,EncapsulatedClassifier
,org.eclipse.emf.ecore.EObject
,MDObject
,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:
UMLPackage.getClass_()
- Model:
- annotation="MOF package='classes.mdkernel'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<Extension>
getExtension()
Returns the value of the 'Extension' reference list.java.util.List<Classifier>
getNestedClassifier()
Returns the value of the 'Nested Classifier' containment reference list.java.util.List<Property>
getOwnedAttribute()
Returns the value of the 'Owned Attribute' containment reference list.java.util.List<Operation>
getOwnedOperation()
Returns the value of the 'Owned Operation' containment reference list.java.util.Collection<Reception>
getOwnedReception()
Returns the value of the 'Owned Reception' containment reference list.java.util.Collection<Class>
getSuperClass()
Returns the value of the 'Super Class' reference list.boolean
hasExtension()
boolean
hasNestedClassifier()
boolean
hasOwnedOperation()
boolean
hasOwnedReception()
boolean
hasSuperClass()
boolean
isAbstract()
Returns the value of the 'Abstract' attribute.boolean
isActive()
Returns the value of the 'Active' attribute.void
setAbstract(boolean value)
Sets the value of the 'Abstract
' attribute.void
setActive(boolean value)
Sets the value of the 'Active
' attribute.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.commonbehaviors.mdbasicbehaviors.BehavioredClassifier
getClassifierBehavior, getInterfaceRealization, getOwnedBehavior, hasInterfaceRealization, hasOwnedBehavior, setClassifierBehavior
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Classifier
get_classifierOfRedefinedClassifier, get_classifierTemplateParameterOfConstrainingClassifier, get_componentRealizationOfRealizingClassifier, get_createObjectActionOfClassifier, get_exceptionHandlerOfExceptionType, get_generalizationOfGeneral, get_informationFlowOfConveyed, get_informationItemOfRepresented, get_instanceSpecificationOfClassifier, get_interfaceOfNestedClassifier, get_readExtentActionOfClassifier, get_readIsClassifiedObjectActionOfClassifier, get_reclassifyObjectActionOfNewClassifier, get_reclassifyObjectActionOfOldClassifier, get_redefinableElementOfRedefinitionContext, get_substitutionOfContract, get_unmarshallActionOfUnmarshallType, getAttribute, getCollaborationUse, getFeature, getGeneral, getGeneralization, getInheritedMember, getOwnedTemplateSignature, getOwnedUseCase, getPowertypeExtent, getRedefinedClassifier, getRepresentation, getSubstitution, getTemplateParameter, getUMLClass, getUseCase, has_classifierOfRedefinedClassifier, has_classifierTemplateParameterOfConstrainingClassifier, has_componentRealizationOfRealizingClassifier, has_createObjectActionOfClassifier, has_exceptionHandlerOfExceptionType, has_generalizationOfGeneral, has_informationFlowOfConveyed, has_informationItemOfRepresented, has_instanceSpecificationOfClassifier, has_readExtentActionOfClassifier, has_readIsClassifiedObjectActionOfClassifier, has_reclassifyObjectActionOfNewClassifier, has_reclassifyObjectActionOfOldClassifier, has_redefinableElementOfRedefinitionContext, has_substitutionOfContract, has_unmarshallActionOfUnmarshallType, hasAttribute, hasCollaborationUse, hasFeature, hasGeneral, hasGeneralization, hasInheritedMember, hasOwnedUseCase, hasPowertypeExtent, hasRedefinedClassifier, hasSubstitution, hasUseCase, isFinalSpecialization, set_interfaceOfNestedClassifier, setFinalSpecialization, setOwnedTemplateSignature, setRepresentation, setTemplateParameter, setUMLClass
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.compositestructures.mdports.EncapsulatedClassifier
getOwnedPort, hasOwnedPort
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.NamedElement
get_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespace
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Namespace
getElementImport, getImportedMember, getMember, getOwnedDiagram, getOwnedMember, getOwnedRule, getPackageImport, hasElementImport, hasImportedMember, hasMember, hasOwnedDiagram, hasOwnedMember, hasOwnedRule, hasPackageImport
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.PackageableElement
get_componentOfPackagedElement, get_elementImportOfImportedElement, get_manifestationOfUtilizedElement, getOwningPackage, getVisibility, has_elementImportOfImportedElement, has_manifestationOfUtilizedElement, set_componentOfPackagedElement, setOwningPackage, setVisibility
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.auxiliaryconstructs.mdtemplates.ParameterableElement
get_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.RedefinableElement
get_redefinableElementOfRedefinedElement, getRedefinedElement, getRedefinitionContext, has_redefinableElementOfRedefinedElement, hasRedefinedElement, hasRedefinitionContext, isLeaf, setLeaf
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
-
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.compositestructures.mdinternalstructures.StructuredClassifier
getOwnedConnector, getPart, getRole, hasOwnedAttribute, hasOwnedConnector, hasPart, hasRole
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.auxiliaryconstructs.mdtemplates.TemplateableElement
getTemplateBinding, hasTemplateBinding, setOwnedTemplateSignature
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Type
get_associationOfEndType, get_behavioralFeatureOfRaisedException, get_operationOfRaisedException, get_typedElementOfType, getPackage, has_associationOfEndType, has_behavioralFeatureOfRaisedException, has_operationOfRaisedException, has_typedElementOfType, setPackage
-
-
-
-
Method Detail
-
getExtension
java.util.Collection<Extension> getExtension()
Returns the value of the 'Extension' reference list. The list contents are of typeExtension
. 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:
UMLPackage.getClass_Extension()
,Extension.getMetaclass()
- 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:
setActive(boolean)
,com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getClass_Active()
- 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:
isActive()
- Generated:
-
getNestedClassifier
java.util.List<Classifier> getNestedClassifier()
Returns the value of the 'Nested Classifier' containment reference list. The list contents are of typeClassifier
. 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:
UMLPackage.getClass_NestedClassifier()
,Classifier.getUMLClass()
- Model:
- opposite="UMLClass" containment="true" resolveProxies="true"
- Generated:
-
getOwnedOperation
java.util.List<Operation> getOwnedOperation()
Returns the value of the 'Owned Operation' containment reference list. The list contents are of typeOperation
. 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:
UMLPackage.getClass_OwnedOperation()
,Operation.getUMLClass()
- Model:
- opposite="UMLClass" containment="true" resolveProxies="true"
- Generated:
-
getSuperClass
java.util.Collection<Class> getSuperClass()
Returns the value of the 'Super Class' reference list. The list contents are of typeClass
. 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:
UMLPackage.getClass_SuperClass()
,com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class#get_classOfSuperClass
- Model:
- opposite="_classOfSuperClass" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
- Generated:
-
getOwnedReception
java.util.Collection<Reception> getOwnedReception()
Returns the value of the 'Owned Reception' containment reference list. The list contents are of typeReception
. 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:
UMLPackage.getClass_OwnedReception()
,Reception.get_classOfOwnedReception()
- Model:
- opposite="_classOfOwnedReception" containment="true" resolveProxies="true" ordered="false"
- Generated:
-
getOwnedAttribute
java.util.List<Property> getOwnedAttribute()
Returns the value of the 'Owned Attribute' containment reference list. The list contents are of typeProperty
. It is bidirectional and its opposite is 'UML Class
'. The attributes (i.e., the Properties) owned by the Class.- Specified by:
getOwnedAttribute
in interfaceStructuredClassifier
- Returns:
- the value of the 'Owned Attribute' containment reference list.
- See Also:
UMLPackage.getClass_OwnedAttribute()
,Property.getUMLClass()
- 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 interfaceClassifier
- Returns:
- the value of the 'Abstract' attribute.
- See Also:
setAbstract(boolean)
,UMLPackage.getClass_Abstract()
- 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 interfaceClassifier
- Parameters:
value
- the new value of the 'Abstract' attribute.- See Also:
isAbstract()
- 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:
-
-