public interface Class extends EncapsulatedClassifier, BehavioredClassifier
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:
UMLPackage.getClass_()
Modifier and Type | Method and 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. |
getOwnedPort, hasOwnedPort
getOwnedConnector, getPart, getRole, hasOwnedAttribute, hasOwnedConnector, hasPart, hasRole
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
get_associationOfEndType, get_behavioralFeatureOfRaisedException, get_operationOfRaisedException, get_typedElementOfType, getPackage, has_associationOfEndType, has_behavioralFeatureOfRaisedException, has_operationOfRaisedException, has_typedElementOfType, setPackage
get_componentOfPackagedElement, get_elementImportOfImportedElement, get_manifestationOfUtilizedElement, getOwningPackage, getVisibility, has_elementImportOfImportedElement, has_manifestationOfUtilizedElement, set_componentOfPackagedElement, setOwningPackage, setVisibility
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
get_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParameter
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElement
get_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalID
getID, getMDExtension, getMdExtensions, setID
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetID
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
getElementImport, getImportedMember, getMember, getOwnedDiagram, getOwnedMember, getOwnedRule, getPackageImport, hasElementImport, hasImportedMember, hasMember, hasOwnedDiagram, hasOwnedMember, hasOwnedRule, hasPackageImport
get_redefinableElementOfRedefinedElement, getRedefinedElement, getRedefinitionContext, has_redefinableElementOfRedefinedElement, hasRedefinedElement, hasRedefinitionContext, isLeaf, setLeaf
getTemplateBinding, hasTemplateBinding, setOwnedTemplateSignature
getClassifierBehavior, getInterfaceRealization, getOwnedBehavior, hasInterfaceRealization, hasOwnedBehavior, setClassifierBehavior
java.util.Collection<Extension> getExtension()
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.
UMLPackage.getClass_Extension()
,
Extension.getMetaclass()
boolean isActive()
"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.
setActive(boolean)
,
UMLPackage.getClass_Active()
void setActive(boolean value)
Active
' attribute.
value
- the new value of the 'Active' attribute.isActive()
java.util.List<Classifier> getNestedClassifier()
Classifier
.
It is bidirectional and its opposite is 'UML Class
'.
The Classifiers owned by the Class that are not ownedBehaviors.
UMLPackage.getClass_NestedClassifier()
,
Classifier.getUMLClass()
java.util.List<Operation> getOwnedOperation()
Operation
.
It is bidirectional and its opposite is 'UML Class
'.
The Operations owned by the Class.
UMLPackage.getClass_OwnedOperation()
,
Operation.getUMLClass()
java.util.Collection<Class> getSuperClass()
Class
.
It is bidirectional and its opposite is 'class Of Super Class
'.
The superclasses of a Class, derived from its Generalizations.
UMLPackage.getClass_SuperClass()
,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class#get_classOfSuperClass
java.util.Collection<Reception> getOwnedReception()
Reception
.
It is bidirectional and its opposite is
'class Of Owned Reception
'.
The Receptions owned by the Class.
UMLPackage.getClass_OwnedReception()
,
Reception.get_classOfOwnedReception()
java.util.List<Property> getOwnedAttribute()
Property
.
It is bidirectional and its opposite is 'UML Class
'.
The attributes (i.e., the Properties) owned by the Class.
getOwnedAttribute
in interface StructuredClassifier
UMLPackage.getClass_OwnedAttribute()
,
Property.getUMLClass()
boolean isAbstract()
"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.
isAbstract
in interface Classifier
setAbstract(boolean)
,
UMLPackage.getClass_Abstract()
void setAbstract(boolean value)
Abstract
' attribute.
setAbstract
in interface Classifier
value
- the new value of the 'Abstract' attribute.isAbstract()
boolean hasExtension() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasNestedClassifier() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasOwnedOperation() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasSuperClass() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasOwnedReception() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException