UML.Semantic.Foundation.Core
Class Feature

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Feature
All Implemented Interfaces:
Element, ElementAtt, LinkAtt
Direct Known Subclasses:
BehavioralFeature, StructuralFeature

public abstract class Feature
extends ModelElement

A feature is a property, like operation or attribute, which is encapsulated within another entity, such as an interface, a class, or a data type.

In the metamodel a Feature declares a behavioral or structural characteristic of an Instance of a Classifier or of the Classifier itself. Feature is an abstract metaclass.


Constructor Summary
Feature()
          Constructor.
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 Classifier getOwner()
          Gets the owner of this feature.
 java.lang.String getOwnerScope()
          Gets the current owner scope kind.
 void setOwner(java.lang.String owner)
          Sets the owner of this feature.
 void setOwnerScope(java.lang.String ownerScope)
          Sets the feature owner scope to the given one.
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getInfo, 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

Feature

public Feature()
Constructor.

Method Detail

setOwnerScope

public void setOwnerScope(java.lang.String ownerScope)
Sets the feature owner scope to the given one.


getOwnerScope

public java.lang.String getOwnerScope()
Gets the current owner scope kind.

Returns:
The current feature owner scope.

setOwner

public void setOwner(java.lang.String owner)
Sets the owner of this feature.


getOwner

public Classifier getOwner()
Gets the owner of this feature.

Returns:
The Classifier that owns this feature.

check

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

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