com.ashridgetech.jamda.uml
Class InterfaceType

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.ModelElement
        |
        +--com.ashridgetech.jamda.uml.Type
              |
              +--com.ashridgetech.jamda.uml.StructuredType
                    |
                    +--com.ashridgetech.jamda.uml.InterfaceType

public class InterfaceType
extends StructuredType

A UML Interface classifier.

Version:
1.0
Author:
paulb

Nested Class Summary
 
Nested classes inherited from class com.ashridgetech.jamda.uml.StructuredType
StructuredType.Aggregation, StructuredType.PropertyImpl, StructuredType.Visibility
 
Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException
 
Field Summary
 
Fields inherited from class com.ashridgetech.jamda.uml.StructuredType
READ_ONLY, UNBOUNDED, WRITABLE
 
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement
DUMMY_STORE
 
Constructor Summary
protected InterfaceType(ru.novosoft.uml.foundation.core.MInterface mi, ModelPackage parentPackage)
          Create new InterfaceType during loading.
  InterfaceType(ModelPackage parentPackage, java.lang.String name)
          Creates new InterfaceType belonging to a ModelPackage.
 
Method Summary
 InterfaceType addSuperInterface(InterfaceType supertype)
          Add a InterfaceType which is a supertype of this one.
 void checkValid()
          Check whether this object is valid.
protected  java.util.List makeProperties()
          Return a list of ModelElements which implement the Property interface.
 InterfaceType setVisibility(StructuredType.Visibility visibility)
          Set the visibility of this InterfaceType.
 
Methods inherited from class com.ashridgetech.jamda.uml.StructuredType
addProperties, addProperty, addReadOnlyProperty, addSuperType, addWritableProperty, getAllProperties, getAllTaggedValues, getOperation, getOperation, getOperations, getOperations, getOperations, getOperations, getOperations, getParentPackage, getProperties, getProperty, getSubElementStore, getSubTypes, getSuperTypes, getVisibility, invalidate, isSimple, load, makeProperty, setStructuredTypeVisibility
 
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getName, getNsElement, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, toString, type, type, type, xpath, xpathList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterfaceType

public InterfaceType(ModelPackage parentPackage,
                     java.lang.String name)
Creates new InterfaceType belonging to a ModelPackage.


InterfaceType

protected InterfaceType(ru.novosoft.uml.foundation.core.MInterface mi,
                        ModelPackage parentPackage)
Create new InterfaceType during loading.

Method Detail

addSuperInterface

public InterfaceType addSuperInterface(InterfaceType supertype)
Add a InterfaceType which is a supertype of this one. A InterfaceType which is already a supertype of this cannot be added again.

Parameters:
supertype - the supertype interface to add to this StructuredType - must not be null
Returns:
this instance
Throws:
java.lang.IllegalStateException - if supertype is already a supertype of this

setVisibility

public InterfaceType setVisibility(StructuredType.Visibility visibility)
Set the visibility of this InterfaceType.

Parameters:
visibility - the Visibility instance representing this InterfaceType's visibility - must not be null
Returns:
this object

checkValid

public void checkValid()
                throws java.lang.IllegalStateException
Check whether this object is valid.

Overrides:
checkValid in class StructuredType
Throws:
java.lang.IllegalStateException - if a problem is found

makeProperties

protected java.util.List makeProperties()
Return a list of ModelElements which implement the Property interface.

Overrides:
makeProperties in class StructuredType
Returns:
an empty list


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.