uk.ac.ucl.cs.uml.jmi.Foundation.Core
Interface GeneralizableElement

All Superinterfaces:
Element, ExtObject, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
All Known Subinterfaces:
Actor, Artifact, Association, AssociationRole, AssociationUMLClass, Classifier, ClassifierInState, ClassifierRole, Collaboration, Component, DataType, Enumeration, Model, Node, Primitive, ProgrammingLanguageDataType, Signal, Stereotype, Subsystem, UMLClass, UMLException, UMLInterface, UMLPackage, UseCase
All Known Implementing Classes:
Actor_Impl, Artifact_Impl, Association_Impl, AssociationRole_Impl, AssociationUMLClass_Impl, Class_Impl, Classifier_Impl, ClassifierInState_Impl, ClassifierRole_Impl, Collaboration_Impl, Component_Impl, DataType_Impl, Enumeration_Impl, Exception_Impl, GeneralizableElement_Impl, Interface_Impl, Model_Impl, Node_Impl, Package_Impl, Primitive_Impl, ProgrammingLanguageDataType_Impl, Signal_Impl, Stereotype_Impl, Subsystem_Impl, UseCase_Impl

public interface GeneralizableElement
extends ModelElement

A generalizable element is a model element that may participate in a generalization relationship. In the metamodel, a GeneralizableElement can be a generalization of other GeneralizableElements (i.e., all Features defined in and all ModelElements contained in the ancestors are also present in the GeneralizableElement). GeneralizableElement is an abstract metaclass.


Method Summary
 Collection getGeneralization()
          Designates a Generalization whose parent GeneralizableElement is the immediate ancestor of the current GeneralizableElement.
 boolean getIsAbstract()
          Specifies whether the GeneralizableElement may not have a direct instance.
 boolean getIsLeaf()
          Specifies whether the GeneralizableElement is a GeneralizableElement with no descendents.
 boolean getIsRoot()
          Specifies whether the GeneralizableElement is a root GeneralizableElement with no ancestors.
 Collection getSpecialization()
          Designates a Generalization whose child GeneralizableElement is the immediate descendent of the current GeneralizableElement.
 void setIsAbstract(boolean isAbstract)
          Setter for atomic property isAbstract)
 void setIsLeaf(boolean isLeaf)
          Setter for atomic property isLeaf)
 void setIsRoot(boolean isRoot)
          Setter for atomic property isRoot)
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.ModelElement
getAsArgument, getBehavior, getClientDependency, getComment, getConstraint, getContainer, getDefaultElement, getIsSpecification, getName, getNamespace, getPackage, getPresentation, getReferenceTag, getSourceFlow, getStereotype, getSupplierDependency, getTaggedValue, getTargetFlow, getTemplate, getTemplateArgument, getTemplateParameter, getVisibility, setDefaultElement, setIsSpecification, setName, setNamespace, setTemplate, setVisibility
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extDeepCopy, extEquals, extRemoveObjectListener, extValueHash, extVisit
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getIsAbstract

boolean getIsAbstract()
                      throws javax.jmi.reflect.JmiException
Specifies whether the GeneralizableElement may not have a direct instance. True indicates that an instance of the GeneralizableElement must be an instance of a child of the GeneralizableElement. False indicates that there may be an instance of the GeneralizableElement that is not an instance of a child. An abstract GeneralizableElement is not instantiable since it does not contain all necessary information. That is, it may not have a direct instance. It may have an indirect instance, and a model at a higher level of abstraction may include instances of an abstract type, with the understanding that in a fully expanded concrete snapshot, such instances would have concrete types that are descendants of the abstract types.

Throws:
javax.jmi.reflect.JmiException

setIsAbstract

void setIsAbstract(boolean isAbstract)
                   throws javax.jmi.reflect.JmiException
Setter for atomic property isAbstract)

Throws:
javax.jmi.reflect.JmiException

getIsLeaf

boolean getIsLeaf()
                  throws javax.jmi.reflect.JmiException
Specifies whether the GeneralizableElement is a GeneralizableElement with no descendents. True indicates that it may not have descendents, false indicates that it may have descendents (whether or not it actually has any descendents at the moment).

Throws:
javax.jmi.reflect.JmiException

setIsLeaf

void setIsLeaf(boolean isLeaf)
               throws javax.jmi.reflect.JmiException
Setter for atomic property isLeaf)

Throws:
javax.jmi.reflect.JmiException

getIsRoot

boolean getIsRoot()
                  throws javax.jmi.reflect.JmiException
Specifies whether the GeneralizableElement is a root GeneralizableElement with no ancestors. True indicates that it may not have ancestors, false indicates that it may have ancestors (whether or not it actually has any ancestors at the moment).

Throws:
javax.jmi.reflect.JmiException

setIsRoot

void setIsRoot(boolean isRoot)
               throws javax.jmi.reflect.JmiException
Setter for atomic property isRoot)

Throws:
javax.jmi.reflect.JmiException

getGeneralization

Collection getGeneralization()
                             throws javax.jmi.reflect.JmiException
Designates a Generalization whose parent GeneralizableElement is the immediate ancestor of the current GeneralizableElement.

Throws:
javax.jmi.reflect.JmiException

getSpecialization

Collection getSpecialization()
                             throws javax.jmi.reflect.JmiException
Designates a Generalization whose child GeneralizableElement is the immediate descendent of the current GeneralizableElement.

Throws:
javax.jmi.reflect.JmiException