UML.Semantic.Foundation.Core
Class GeneralizableElement

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Namespace
              |
              +--UML.Semantic.Foundation.Core.GeneralizableElement
All Implemented Interfaces:
Element, ElementAtt, LinkAtt
Direct Known Subclasses:
Association, Classifier, Package, Signal, Stereotype

public class GeneralizableElement
extends Namespace

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.


Constructor Summary
GeneralizableElement()
          Constructor.
 
Method Summary
 void add(Reference ref)
          Adds an element reference to this element.
 java.util.Vector allOwnedElement()
          Gets the set of all the elements owned by this element, including inherited ones.
 java.util.Vector allSupertype()
          Gets a set of identifiers of all supertypes of this element, including inherited ones.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.util.Vector getGeneralization()
          Gets the set of generalizations which this element participates in.
 void getInfo()
          Gets info on GeneralizableElement.
 boolean getIsAbstract()
          Gets the value of the isAbstract attribute.
 boolean getIsLeaf()
          Gets the value of the isLeaf attribute.
 boolean getIsRoot()
          Gets the value of the isRoot attribute.
 java.util.Vector getSpecialization()
          Gets the set of specializations which this element participates in.
 java.util.Vector getSupertype()
          Gets a set of identifiers of direct supertypes of this element.
 java.util.Vector inheritedOwnedElement()
          Gets the set of identifiers of the inherited OwnedElements of the GeneralizableElement itself.
 java.util.Vector inheritedSupertype()
          Gets a set of identifiers of inherited supertypes of this element.
 void setIsAbstract(java.lang.String mode)
          Sets the value of the isAbstract attribute to the given true or false value.
 void setIsLeaf(java.lang.String mode)
          Sets the value of the isLeaf attribute to the given true or false value.
 void setIsRoot(java.lang.String mode)
          Sets the value of the isRoot attribute to the given true or false value.
 
Methods inherited from class UML.Semantic.Foundation.Core.Namespace
add, allContents, allContents, getOwnedElement, subContents
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralizableElement

public GeneralizableElement()
Constructor.

Method Detail

setIsAbstract

public void setIsAbstract(java.lang.String mode)
Sets the value of the isAbstract attribute to the given true or false value.


getIsAbstract

public boolean getIsAbstract()
Gets the value of the isAbstract attribute.

Returns:
A true or false value.

setIsLeaf

public void setIsLeaf(java.lang.String mode)
Sets the value of the isLeaf attribute to the given true or false value.


getIsLeaf

public boolean getIsLeaf()
Gets the value of the isLeaf attribute.

Returns:
A true or false value.

setIsRoot

public void setIsRoot(java.lang.String mode)
Sets the value of the isRoot attribute to the given true or false value.


getIsRoot

public boolean getIsRoot()
Gets the value of the isRoot attribute.

Returns:
A true or false value.

add

public void add(Reference ref)
Adds an element reference to this element.


getGeneralization

public java.util.Vector getGeneralization()
Gets the set of generalizations which this element participates in.

Returns:
A set of identifiers strings.

getSpecialization

public java.util.Vector getSpecialization()
Gets the set of specializations which this element participates in.

Returns:
A set of identifiers strings.

getSupertype

public java.util.Vector getSupertype()
Gets a set of identifiers of direct supertypes of this element.


inheritedSupertype

public java.util.Vector inheritedSupertype()
Gets a set of identifiers of inherited supertypes of this element.


allSupertype

public java.util.Vector allSupertype()
Gets a set of identifiers of all supertypes of this element, including inherited ones.


inheritedOwnedElement

public java.util.Vector inheritedOwnedElement()
Gets the set of identifiers of the inherited OwnedElements of the GeneralizableElement itself.

Returns:
A set of identifiers.

allOwnedElement

public java.util.Vector allOwnedElement()
Gets the set of all the elements owned by this element, including inherited ones.


check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class Namespace
Returns:
True if check was successful, false otherwise.

getInfo

public void getInfo()
Gets info on GeneralizableElement.

Overrides:
getInfo in class Namespace