de.armax.ax.devtools.uml.nsuml
Class AXclassNsumlImpl

java.lang.Object
  extended byde.armax.ax.devtools.uml.AXmodelElementAbstract
      extended byde.armax.ax.devtools.uml.nsuml.AXmodelElementNsumlImpl
          extended byde.armax.ax.devtools.uml.nsuml.AXclassifierNsumlImpl
              extended byde.armax.ax.devtools.uml.nsuml.AXclassNsumlImpl
All Implemented Interfaces:
AXclass, AXclassifier, AXmodelElement

public class AXclassNsumlImpl
extends AXclassifierNsumlImpl
implements AXclass

Author:
Peter Wieland, ARMAX mindware GmbH

Field Summary
 
Fields inherited from class de.armax.ax.devtools.uml.nsuml.AXmodelElementNsumlImpl
model
 
Fields inherited from interface de.armax.ax.devtools.uml.AXclass
INTERFACE
 
Constructor Summary
AXclassNsumlImpl(ru.novosoft.uml.foundation.core.MClass cls, AXmodelNsumlImpl model)
           
AXclassNsumlImpl(ru.novosoft.uml.foundation.core.MInterface cls, AXmodelNsumlImpl model)
           
 
Method Summary
 boolean existSuperClass()
          Check weather this class has a super class.
 java.util.List getAbstractions()
          Get a List of all abstractions for this class or interface.
 java.util.List getAccessibleAssociations(boolean excludeImplemented)
          Get all associations accessible from this class.
 java.util.List getAccessibleAttributes(boolean excludeImplemented)
          Get a list of all attributes accessible from this class.
 java.util.List getAccessibleNToMAssociations(boolean includeNonNavigable, boolean excludeImplemented)
          Get all accessible N to M associations.
 java.util.List getAccessibleOperations(boolean excludeImplemented)
          Get a list of all operations accessible from this class.
 java.util.List getAccessibleXTo1Associations(boolean includeNonNavigable, boolean excludeImplemented)
          Get all accessible to 1 associations.
 java.util.List getAccessibleXToNAssociations(boolean includeNonNavigable, boolean excludeImplemented)
          Get all accessible to N associations.
 java.util.List getAssociationEnds()
          Get all association ends, this class owns.
 java.util.List getAssociations()
          Get assocaitions for all association ends, this class owns
 java.util.List getAttributes()
          Get all attributes for this class
 java.util.List getClientDependencies()
          Get a List of all dependencies for which this class is a client.
 java.util.List getExtent(boolean deep, boolean excludeNonInstantiable)
          Get the extent of this class.
 java.util.List getGeneralizations()
          Get a List of all generalizations for this class or interface.
 java.util.List getImplementedInterfaces(boolean deep)
          Get a List of implemented interfaces for this class.
 java.util.List getInheritedAssociations(boolean deep, boolean excludeImplemented)
          Get all associations this class inherits from other classes.
 java.util.List getInheritedAttributes(boolean deep, boolean excludeImplemented)
          Get a list of all attributes this class inherits from other classes.
 java.util.List getInheritedNToMAssociations(boolean includeNonNavigable, boolean deep, boolean excludeImplemented)
          Get all inherited N to M associations.
 java.util.List getInheritedOperations(boolean deep, boolean excludeImplemented)
          Get a list of all operations this class inherits from other classes.
 java.util.List getInheritedXTo1Associations(boolean includeNonNavigable, boolean deep, boolean excludeImplemented)
          Get all inherited to 1 associations.
 java.util.List getInheritedXToNAssociations(boolean includeNonNavigable, boolean deep, boolean excludeImplemented)
          Get all inherited to N associations.
 java.util.List getNToMAssociations(boolean includeNonNavigable)
          Get all associations that have both ends with multiplicity 0..N or 1..N
 java.util.List getOperations()
          Get all operations for this class
 java.util.List getRealizations()
          Get a List of all realizations for this class or interface.
 java.util.List getSpecializations()
          Get a List of all specializations for this class or interface.
 AXclass getSuperClass()
          Get the superclass for this class.
 java.util.List getSuperClasses()
          Get a List of all superclasses for this class.
 java.util.List getSupplierDependencies()
          Get a List of all dependencies for which this class is a supplier.
 java.util.List getXTo1Associations(boolean includeNonNavigable)
          Get all associations that have an other end with multiplicity 0..1 or 1
 java.util.List getXToNAssociations(boolean includeNonNavigable)
          Get all associations that have an other end with multiplicity 0..N or 1..N
 boolean isAbstract()
          Check weather this class models an abstract class.
 boolean isDependencyClient(AXclass supplier, java.lang.String stereoType, java.lang.String name)
          Check weather this class is an dependency client for a given other class.
 boolean isDependencySupplier(AXclass client, java.lang.String stereoType, java.lang.String name)
          Check weather this class is an dependency supplier for a given other class.
 boolean isInstantiable()
          Check weather this class models an instantiable class.
 boolean isInterface()
          Check weather this class models an interface.
 java.lang.String toString()
           
 
Methods inherited from class de.armax.ax.devtools.uml.nsuml.AXclassifierNsumlImpl
isNativeType, isVoidType
 
Methods inherited from class de.armax.ax.devtools.uml.nsuml.AXmodelElementNsumlImpl
existTaggedValue, getModel, getName, getNamespaceName, getRealElement, getStereotype, getTaggedValue, getTaggedValue, getTaggedValues, getTaggedValueTags
 
Methods inherited from class de.armax.ax.devtools.uml.AXmodelElementAbstract
equals, getNameForCollectionDefine, getNameForCollectionMethod, getNameForCollectionVariable, getNameForDefine, getNameForMethod, getNameForVariable, getPackage, getQualifiedName, getSufficientlyQualifiedName, getSufficientlyQualifiedName, getWellKnownPackages, hasStereotype, isSameNamespace, isSameNamespace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.armax.ax.devtools.uml.AXclassifier
isNativeType, isVoidType
 
Methods inherited from interface de.armax.ax.devtools.uml.AXmodelElement
equals, existTaggedValue, getModel, getName, getNameForCollectionDefine, getNameForCollectionMethod, getNameForCollectionVariable, getNameForDefine, getNameForMethod, getNameForVariable, getNamespaceName, getPackage, getQualifiedName, getRealElement, getStereotype, getSufficientlyQualifiedName, getSufficientlyQualifiedName, getTaggedValue, getTaggedValue, getTaggedValues, getTaggedValueTags, getWellKnownPackages, hasStereotype, isSameNamespace, isSameNamespace
 

Constructor Detail

AXclassNsumlImpl

public AXclassNsumlImpl(ru.novosoft.uml.foundation.core.MClass cls,
                        AXmodelNsumlImpl model)

AXclassNsumlImpl

public AXclassNsumlImpl(ru.novosoft.uml.foundation.core.MInterface cls,
                        AXmodelNsumlImpl model)
Method Detail

getGeneralizations

public java.util.List getGeneralizations()
Description copied from interface: AXclass

Get a List of all generalizations for this class or interface.

The elements in the returned List are of type AXgeneralization. The returned List must not be null (but it may be empty).

Each AXgeneralization in the returned list can also be obtained by calling getSpecialization() on the parent class of the AXgeneralization

Specified by:
getGeneralizations in interface AXclass
Returns:
a List containing all generalizations for this class

See Also:
AXclass.getSpecializations(), AXclass.getAbstractions(), AXclass.getRealizations()

getSpecializations

public java.util.List getSpecializations()
Description copied from interface: AXclass

Get a List of all specializations for this class or interface.

The elements in the returned List are of type AXgeneralization. The returned List must not be null (but it may be empty).

Each AXgeneralization in the returned list can also be obtained by calling getGeneralizations() on the child class of the AXgeneralization

Specified by:
getSpecializations in interface AXclass
Returns:
a List containing all generalizations for this class

See Also:
AXclass.getGeneralizations(), AXclass.getAbstractions(), AXclass.getRealizations()

getAbstractions

public java.util.List getAbstractions()
Description copied from interface: AXclass

Get a List of all abstractions for this class or interface.

The elements in the returned List are of type AXabstraction. The returned List must not be null (but it may be empty).

Each AXabstraction in the returned List must also be contained in the List obtained by calling getRealizations() on the supplier class of the AXabstraction

Specified by:
getAbstractions in interface AXclass
Returns:
a List containing all abstractions for this class
See Also:
AXclass.getRealizations(), AXclass.getGeneralizations(), AXclass.getSpecializations()

getRealizations

public java.util.List getRealizations()
Description copied from interface: AXclass

Get a List of all realizations for this class or interface.

The elements in the returned List are of type AXabstraction. The returned List must not be null (but it may be empty).

Each AXabstraction in the returned List must also be contained in the List obtained by calling getAbstractions() on the client class of the AXabstraction

Specified by:
getRealizations in interface AXclass
Returns:
a List containing all abstractions for this class
See Also:
AXclass.getRealizations(), AXclass.getGeneralizations(), AXclass.getSpecializations()

getClientDependencies

public java.util.List getClientDependencies()
Description copied from interface: AXclass

Get a List of all dependencies for which this class is a client.

The elements in the returned List are of type AXdependency. The returned List must not be null (but it may be empty).

Each AXdependency in the returned List must also be contained in the List obtained by calling getSupplierDependencies() on the supplier class of the AXdependency

Specified by:
getClientDependencies in interface AXclass
Returns:
a List containing all dependencies for which this class is client
See Also:
AXclass.getSupplierDependencies()

getSupplierDependencies

public java.util.List getSupplierDependencies()
Description copied from interface: AXclass

Get a List of all dependencies for which this class is a supplier.

The elements in the returned List are of type AXdependency. The returned List must not be null (but it may be empty).

Each AXdependency in the returned List must also be contained in the List obtained by calling getClientDependencies() on the client class of the AXdependency

Specified by:
getSupplierDependencies in interface AXclass
Returns:
a List containing all dependencies for which this class is client
See Also:
AXclass.getClientDependencies()

getAttributes

public java.util.List getAttributes()
Description copied from interface: AXclass

Get all attributes for this class

Specified by:
getAttributes in interface AXclass
Returns:
a List of all attributes (contains elements of type AXattribute)
See Also:
AXclass.getOperations(), AXclass.getInheritedAttributes(boolean, boolean)

getOperations

public java.util.List getOperations()
Description copied from interface: AXclass

Get all operations for this class

Specified by:
getOperations in interface AXclass
Returns:
a List of all operations (contains elements of type AXoperation)
See Also:
AXclass.getAttributes(), AXclass.getInheritedOperations(boolean, boolean)

getExtent

public java.util.List getExtent(boolean deep,
                                boolean excludeNonInstantiable)
Description copied from interface: AXclass

Get the extent of this class. I.e. all classes that inherit from this class or interface

Specified by:
getExtent in interface AXclass
Parameters:
deep - if false, only direct subclasses are returned, else the whole class hierarchy is scanned
excludeNonInstantiable - if true, only instantiable clases are returned
Returns:
a List of AXclasses that build the extent for this class

getImplementedInterfaces

public java.util.List getImplementedInterfaces(boolean deep)
Description copied from interface: AXclass

Get a List of implemented interfaces for this class.

Specified by:
getImplementedInterfaces in interface AXclass
Parameters:
deep - if false, only interfaces that are directly implemented by this class are returned. Else, the whole class hierarchy is scanned.
Returns:
a List of AXclasses that are interfaces implemented (directly or indirectly) by this class

getSuperClasses

public java.util.List getSuperClasses()
Description copied from interface: AXclass

Get a List of all superclasses for this class. I.e all classes this class inherits directly from.

Specified by:
getSuperClasses in interface AXclass
Returns:
a List of AXclasses that are super classes for this class

See Also:
AXclass.getSuperClass(), AXclass.existSuperClass()

getSuperClass

public AXclass getSuperClass()
Description copied from interface: AXclass

Get the superclass for this class.

If there is more than one superclass, this method returns one of them. There is no rule which one should be returned. Use AXclass.getSuperClasses() instead, if there may be more than one superclass

Specified by:
getSuperClass in interface AXclass
Returns:
a superclass for this class or null if there is no superclass.
See Also:
AXclass.getSuperClasses(), AXclass.existSuperClass()

existSuperClass

public boolean existSuperClass()
Description copied from interface: AXclass

Check weather this class has a super class.

Specified by:
existSuperClass in interface AXclass
Returns:
true if and only if this class has at least one super class.
See Also:
AXclass.getSuperClass(), AXclass.getSuperClasses()

getInheritedAttributes

public java.util.List getInheritedAttributes(boolean deep,
                                             boolean excludeImplemented)
Description copied from interface: AXclass

Get a list of all attributes this class inherits from other classes.

Specified by:
getInheritedAttributes in interface AXclass
Parameters:
deep - if true, scan the whole class hierarchy, else scan only direct superclasses and directly implemented interfaces
excludeImplemented - if true, only return attributes inherited from non instantiable types, else return all inherited attributes
Returns:
a List of attributes inherited from other classes (containing AXattributes)
See Also:
AXclass.getAttributes()

getInheritedOperations

public java.util.List getInheritedOperations(boolean deep,
                                             boolean excludeImplemented)
Description copied from interface: AXclass

Get a list of all operations this class inherits from other classes.

Specified by:
getInheritedOperations in interface AXclass
Parameters:
deep - if true, scan the whole class hierarchy, else scan only direct superclasses and directly implemented interfaces
excludeImplemented - if true, only return operations inherited from non instantiable types, else return all inherited attributes
Returns:
a List of operations inherited from other classes (containing AXoperations)
See Also:
AXclass.getOperations()

getAssociationEnds

public java.util.List getAssociationEnds()
Description copied from interface: AXclass

Get all association ends, this class owns.

Specified by:
getAssociationEnds in interface AXclass

getAssociations

public java.util.List getAssociations()
Description copied from interface: AXclass

Get assocaitions for all association ends, this class owns

Specified by:
getAssociations in interface AXclass
See Also:
AXclass.getInheritedAssociations(boolean, boolean), AXclass.getXTo1Associations(boolean), AXclass.getXToNAssociations(boolean), AXclass.getNToMAssociations(boolean)

getXTo1Associations

public java.util.List getXTo1Associations(boolean includeNonNavigable)
Description copied from interface: AXclass

Get all associations that have an other end with multiplicity 0..1 or 1

Specified by:
getXTo1Associations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
See Also:
AXclass.getInheritedXTo1Associations(boolean, boolean, boolean), AXclass.getAssociations(), AXclass.getXToNAssociations(boolean), AXclass.getNToMAssociations(boolean)

getXToNAssociations

public java.util.List getXToNAssociations(boolean includeNonNavigable)
Description copied from interface: AXclass

Get all associations that have an other end with multiplicity 0..N or 1..N

Specified by:
getXToNAssociations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
See Also:
AXclass.getInheritedXToNAssociations(boolean, boolean, boolean), AXclass.getAssociations(), AXclass.getXTo1Associations(boolean), AXclass.getNToMAssociations(boolean)

getNToMAssociations

public java.util.List getNToMAssociations(boolean includeNonNavigable)
Description copied from interface: AXclass

Get all associations that have both ends with multiplicity 0..N or 1..N

Specified by:
getNToMAssociations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
See Also:
AXclass.getInheritedNToMAssociations(boolean, boolean, boolean), AXclass.getAssociations(), AXclass.getXTo1Associations(boolean), AXclass.getXToNAssociations(boolean)

getInheritedAssociations

public java.util.List getInheritedAssociations(boolean deep,
                                               boolean excludeImplemented)
Description copied from interface: AXclass

Get all associations this class inherits from other classes.

Specified by:
getInheritedAssociations in interface AXclass
Parameters:
deep - if true, scan the whole class hierarchy, else scan only direct superclasses and directly implemented interfaces
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getAssociations()

getInheritedXTo1Associations

public java.util.List getInheritedXTo1Associations(boolean includeNonNavigable,
                                                   boolean deep,
                                                   boolean excludeImplemented)
Description copied from interface: AXclass

Get all inherited to 1 associations.

Specified by:
getInheritedXTo1Associations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
deep - if true, scan the whole class hierarchy, else scan only direct superclasses and directly implemented interfaces
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getXTo1Associations(boolean)

getInheritedXToNAssociations

public java.util.List getInheritedXToNAssociations(boolean includeNonNavigable,
                                                   boolean deep,
                                                   boolean excludeImplemented)
Description copied from interface: AXclass

Get all inherited to N associations.

Specified by:
getInheritedXToNAssociations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
deep - if true, scan the whole class hierarchy, else scan only direct superclasses and directly implemented interfaces
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getXToNAssociations(boolean)

getInheritedNToMAssociations

public java.util.List getInheritedNToMAssociations(boolean includeNonNavigable,
                                                   boolean deep,
                                                   boolean excludeImplemented)
Description copied from interface: AXclass

Get all inherited N to M associations.

Specified by:
getInheritedNToMAssociations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
deep - if true, scan the whole class hierarchy, else scan only direct superclasses and directly implemented interfaces
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getNToMAssociations(boolean)

isInterface

public boolean isInterface()
Description copied from interface: AXclass

Check weather this class models an interface.

Specified by:
isInterface in interface AXclass

isAbstract

public boolean isAbstract()
Description copied from interface: AXclass

Check weather this class models an abstract class. (An interface is not an abstract class)

Specified by:
isAbstract in interface AXclass

isInstantiable

public boolean isInstantiable()
Description copied from interface: AXclass

Check weather this class models an instantiable class.

Specified by:
isInstantiable in interface AXclass

isDependencySupplier

public boolean isDependencySupplier(AXclass client,
                                    java.lang.String stereoType,
                                    java.lang.String name)
Description copied from interface: AXclass

Check weather this class is an dependency supplier for a given other class.

This scans the supplier dependencies for this class and returns true if a dependency is found, who's client is the argument client and that has a stereotpye that matches the argument stereotype and a name that matches the argument name

Specified by:
isDependencySupplier in interface AXclass

isDependencyClient

public boolean isDependencyClient(AXclass supplier,
                                  java.lang.String stereoType,
                                  java.lang.String name)
Description copied from interface: AXclass

Check weather this class is an dependency client for a given other class.

This scans the client dependencies for this class and returns true if a dependency is found, who's supplier is the argument supplier and that has a stereotpye that matches the argument stereotype and a name that matches the argument name

Specified by:
isDependencyClient in interface AXclass

toString

public java.lang.String toString()
Overrides:
toString in class AXmodelElementAbstract

getAccessibleAttributes

public java.util.List getAccessibleAttributes(boolean excludeImplemented)
Description copied from interface: AXclass

Get a list of all attributes accessible from this class.

Specified by:
getAccessibleAttributes in interface AXclass
Parameters:
excludeImplemented - if true, only return attributes inherited from non instantiable types, else return all inherited attributes
Returns:
a List of attributes inherited from other classes (containing AXattributes)
See Also:
AXclass.getAttributes()

getAccessibleOperations

public java.util.List getAccessibleOperations(boolean excludeImplemented)
Description copied from interface: AXclass

Get a list of all operations accessible from this class.

Specified by:
getAccessibleOperations in interface AXclass
Parameters:
excludeImplemented - if true, only return operations inherited from non instantiable types, else return all inherited attributes
Returns:
a List of operations inherited from other classes (containing AXoperations)
See Also:
AXclass.getOperations()

getAccessibleAssociations

public java.util.List getAccessibleAssociations(boolean excludeImplemented)
Description copied from interface: AXclass

Get all associations accessible from this class.

Specified by:
getAccessibleAssociations in interface AXclass
Parameters:
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getAssociations()

getAccessibleXTo1Associations

public java.util.List getAccessibleXTo1Associations(boolean includeNonNavigable,
                                                    boolean excludeImplemented)
Description copied from interface: AXclass

Get all accessible to 1 associations.

Specified by:
getAccessibleXTo1Associations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getXTo1Associations(boolean)

getAccessibleXToNAssociations

public java.util.List getAccessibleXToNAssociations(boolean includeNonNavigable,
                                                    boolean excludeImplemented)
Description copied from interface: AXclass

Get all accessible to N associations.

Specified by:
getAccessibleXToNAssociations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getXToNAssociations(boolean)

getAccessibleNToMAssociations

public java.util.List getAccessibleNToMAssociations(boolean includeNonNavigable,
                                                    boolean excludeImplemented)
Description copied from interface: AXclass

Get all accessible N to M associations.

Specified by:
getAccessibleNToMAssociations in interface AXclass
Parameters:
includeNonNavigable - if false, associations whos other ends are not navigable are excluded.
excludeImplemented - if true only non instantiable classes are considered, abstract classes and interfaces are ignored
See Also:
AXclass.getNToMAssociations(boolean)


Copyright © 2003 ARMAX mindware GmbH. All Rights Reserved.