UML.Semantic.Foundation.Core
Class Classifier

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Namespace
              |
              +--UML.Semantic.Foundation.Core.GeneralizableElement
                    |
                    +--UML.Semantic.Foundation.Core.Classifier
All Implemented Interfaces:
Element, ElementAtt, LinkAtt
Direct Known Subclasses:
Actor, Class, ClassifierInState, ClassifierRole, Component, DataType, Interface, Node, Subsystem, UseCase

public abstract class Classifier
extends GeneralizableElement

A classifier is an element that describes behavioral and structural features; it comes in several specific forms, including class, data type, interface, and others that are defined in other metamodel packages.

In the metamodel a Classifier declares a collection of Features, such as Attributes, Methods, and Operations. It has a name, which is unique in the Namespace enclosing the Classifier. Classifier is an abstract metaclass.


Constructor Summary
Classifier()
          Constructor.
 
Method Summary
 void add(Attribute elem)
          Adds an Attribute to the set of Attributes of this Classifier.
 void add(Operation elem)
          Adds an Operation to the set of Operations of this Classifier.
 void add(Reference ref)
          Adds an element reference to this element.
 java.util.Vector allAssociationEnd()
          Gets the set of the association ends which this classifier is type of.
 java.util.Vector allAssociations()
          Gets the set of identifiers of the Associations of the Classifier itself, including inherited ones.
 java.util.Vector allAttributes()
          Gets all the Attributes of this Classifier, including the ones inherited from parent Classifiers.
 java.util.Vector allFeatures()
          Gets all the Features of this Classifier, including the ones inherited from parent Classifiers.
 java.util.Vector allMethods()
          Gets all the Methods of this Classifier, including the ones inherited from parent Classifiers.
 java.util.Vector allOperations()
          Gets all the Operations of this Classifier, including the ones inherited from parent Classifiers.
 java.util.Vector allOppositeAssociationEnd()
          Gets the set of AssociationEnds identifiers that are opposite to this Classifier, including inherited ones.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.util.Vector getAssociationEnd()
          Gets the set of identifiers of the AssociationEnds whose type is this Classifier.
 java.util.Vector getAssociations()
          Gets the set of identifiers of the Associations of the Classifier itself.
 java.util.Vector getAttribute()
          Gets the set of Attributes of this Classifier.
 Attribute getAttribute(int i)
          Gets an Attribute identifier fromthe set of Attributes identifiers of this Classifier.
 int getAttributeCount()
          Returns the number of class attributes.
 java.util.Vector getFeature()
          Gets the set of identifiers of the Features of this Classifier.
 Feature getFeature(int index)
          Gets the i-th Feature of this Classifier.
 void getInfo()
          Gets info on Classifier.
 java.util.Vector getOperation()
          Gets the set of Operations of this Classifier.
 Operation getOperation(int i)
          Gets the i-th Operation in the set of Operations of this Classifier.
 int getOperationCount()
          Returns the number of class operations.
 java.util.Vector getSpecification()
          Gets the set of specifying classifiers.
 java.util.Vector inheritedAssociationEnd()
          Gets the set of identifiers of the inherited AssociationEnds of this Classifier.
 java.util.Vector inheritedAssociations()
          Gets the set of identifiers of the inherited Associations of the Classifier itself.
 java.util.Vector inheritedAttributes()
          Gets all the inherited Attributes of this Classifier.
 java.util.Vector inheritedOperations()
          Gets all the inherited Operations of this Classifier.
 java.util.Vector inheritedOppositeAssociationEnd()
          Gets the set of inherited AssociationEnds identifiers that are opposite to this Classifier.
 java.util.Vector oppositeAssociationEnd()
          Gets the set of AssociationEnds identifiers that are opposite to this Classifier.
 void setRealization(java.lang.String realization)
          Adds a realizing classifier.
 void setSpecification(java.lang.String specification)
          Adds a specifying classifier.
 
Methods inherited from class UML.Semantic.Foundation.Core.GeneralizableElement
allOwnedElement, allSupertype, getGeneralization, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, getSupertype, inheritedOwnedElement, inheritedSupertype, setIsAbstract, setIsLeaf, setIsRoot
 
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

Classifier

public Classifier()
Constructor.

Method Detail

getFeature

public java.util.Vector getFeature()
Gets the set of identifiers of the Features of this Classifier.

Returns:
A set of identifiers strings.

getFeature

public Feature getFeature(int index)
Gets the i-th Feature of this Classifier.

Returns:
A Feature object.
See Also:
Feature

add

public void add(Attribute elem)
Adds an Attribute to the set of Attributes of this Classifier.


getAttribute

public Attribute getAttribute(int i)
Gets an Attribute identifier fromthe set of Attributes identifiers of this Classifier.

See Also:
Attribute

getAttribute

public java.util.Vector getAttribute()
Gets the set of Attributes of this Classifier.

Returns:
A set of Attributes identifiers.

add

public void add(Operation elem)
Adds an Operation to the set of Operations of this Classifier.


getOperation

public Operation getOperation(int i)
Gets the i-th Operation in the set of Operations of this Classifier.

Returns:
An Operation object.
See Also:
Operation

getOperation

public java.util.Vector getOperation()
Gets the set of Operations of this Classifier.

Returns:
A set of Operations identifiers.

getAttributeCount

public int getAttributeCount()
Returns the number of class attributes.

Returns:
the number of attributes.

getOperationCount

public int getOperationCount()
Returns the number of class operations.

Returns:
the number of operations.

allFeatures

public java.util.Vector allFeatures()
Gets all the Features of this Classifier, including the ones inherited from parent Classifiers.

Returns:
A set of features identifiers.

allOperations

public java.util.Vector allOperations()
Gets all the Operations of this Classifier, including the ones inherited from parent Classifiers.

Returns:
A set of operations identifiers.

inheritedOperations

public java.util.Vector inheritedOperations()
Gets all the inherited Operations of this Classifier.

Returns:
A set of operations identifiers.

allMethods

public java.util.Vector allMethods()
Gets all the Methods of this Classifier, including the ones inherited from parent Classifiers.

Returns:
A set of methods identifiers.

getAssociationEnd

public java.util.Vector getAssociationEnd()
Gets the set of identifiers of the AssociationEnds whose type is this Classifier.

Returns:
A set of identifiers strings.
See Also:
AssociationEnd

inheritedAssociationEnd

public java.util.Vector inheritedAssociationEnd()
Gets the set of identifiers of the inherited AssociationEnds of this Classifier.


allAssociationEnd

public java.util.Vector allAssociationEnd()
Gets the set of the association ends which this classifier is type of.


oppositeAssociationEnd

public java.util.Vector oppositeAssociationEnd()
Gets the set of AssociationEnds identifiers that are opposite to this Classifier.

Returns:
A set of identifiers.

allOppositeAssociationEnd

public java.util.Vector allOppositeAssociationEnd()
Gets the set of AssociationEnds identifiers that are opposite to this Classifier, including inherited ones.

Returns:
A set of identifiers.

inheritedOppositeAssociationEnd

public java.util.Vector inheritedOppositeAssociationEnd()
Gets the set of inherited AssociationEnds identifiers that are opposite to this Classifier.

Returns:
A set of identifiers.

getAssociations

public java.util.Vector getAssociations()
Gets the set of identifiers of the Associations of the Classifier itself.

Returns:
A set of identifiers.

inheritedAssociations

public java.util.Vector inheritedAssociations()
Gets the set of identifiers of the inherited Associations of the Classifier itself.

Returns:
A set of identifiers.

allAssociations

public java.util.Vector allAssociations()
Gets the set of identifiers of the Associations of the Classifier itself, including inherited ones.

Returns:
A set of identifiers.

allAttributes

public java.util.Vector allAttributes()
Gets all the Attributes of this Classifier, including the ones inherited from parent Classifiers.

Returns:
A set of attributes identifiers.

inheritedAttributes

public java.util.Vector inheritedAttributes()
Gets all the inherited Attributes of this Classifier.

Returns:
A set of Attributes identifiers.

setRealization

public void setRealization(java.lang.String realization)
Adds a realizing classifier.


setSpecification

public void setSpecification(java.lang.String specification)
Adds a specifying classifier.


getSpecification

public java.util.Vector getSpecification()
Gets the set of specifying classifiers.

Returns:
A Vector of classifiers identifiers.

add

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

Overrides:
add in class GeneralizableElement

check

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

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

getInfo

public void getInfo()
Gets info on Classifier.

Overrides:
getInfo in class GeneralizableElement