UML.Semantic.Foundation.Core
Class Interface

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Namespace
              |
              +--UML.Semantic.Foundation.Core.GeneralizableElement
                    |
                    +--UML.Semantic.Foundation.Core.Classifier
                          |
                          +--UML.Semantic.Foundation.Core.Interface
All Implemented Interfaces:
Element, ElementAtt, LinkAtt

public class Interface
extends Classifier

An interface is a declaration of a collection of operations that may be used for defining a service offered by an instance.

In the metamodel an Interface contains a set of Operations that together define a service offered by a Classifier realizing the Interface. A Classifier may offer several services, which means that it may realize several Interfaces, and several Classifiers may realize the same Interface.

Interfaces are GeneralizableElements. All Operations declared by an heir must either be new Operations or be specializations (restrictions) of Operations declared in its ancestor(s).

Interfaces may not have Attributes, Associations, or Methods.


Constructor Summary
Interface()
          Constructor.
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 void setId(java.lang.String id)
          Overrides parent method to set the extended element for the stereotype.
 
Methods inherited from class UML.Semantic.Foundation.Core.Classifier
add, add, add, allAssociationEnd, allAssociations, allAttributes, allFeatures, allMethods, allOperations, allOppositeAssociationEnd, getAssociationEnd, getAssociations, getAttribute, getAttribute, getAttributeCount, getFeature, getFeature, getInfo, getOperation, getOperation, getOperationCount, getSpecification, inheritedAssociationEnd, inheritedAssociations, inheritedAttributes, inheritedOperations, inheritedOppositeAssociationEnd, oppositeAssociationEnd, setRealization, setSpecification
 
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, 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

Interface

public Interface()
Constructor.

Method Detail

setId

public void setId(java.lang.String id)
Overrides parent method to set the extended element for the stereotype.

Specified by:
setId in interface ElementAtt
Overrides:
setId in class ModelElement

check

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

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