org.cumt.model.classes
Class ClassType

java.lang.Object
  extended by org.cumt.model.IdentifiedObject
      extended by org.cumt.model.PropertyAwareObject
          extended by org.cumt.model.BaseModelNode
              extended by org.cumt.model.ModelObject
                  extended by org.cumt.model.RelationableModelObject
                      extended by org.cumt.model.types.Type
                          extended by org.cumt.model.classes.BaseClassType
                              extended by org.cumt.model.classes.ClassType
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, OperationAware

public class ClassType
extends BaseClassType

Author:
Carlos Descalzi
See Also:
Serialized Form

Nested Class Summary
static class ClassType.Modifier
           
 
Field Summary
static java.lang.String MODIFIERS
           
 
Fields inherited from class org.cumt.model.classes.BaseClassType
FIELDS, METHODS
 
Fields inherited from class org.cumt.model.ModelObject
STEREOTYPE
 
Fields inherited from class org.cumt.model.BaseModelNode
ATTRIBUTES, DESCRIPTION, IGNORED_ON_GENERATION, NAME
 
Constructor Summary
ClassType()
           
ClassType(java.lang.String name)
           
 
Method Summary
 java.lang.Object clone()
           
 java.util.List<InterfaceType> getInterfaces()
          Convenience method to find the implemented interfaces using the class relations
 java.util.Set<ClassType.Modifier> getModifiers()
           
 java.util.List<ClassType> getSubClasses()
          Convenience method to find the subclasses using the class relations
 ClassType getSuperClass()
          Convenience method to find the super class using the class relations
 boolean isRelationAllowed(java.lang.Class<? extends Relation> relationType, RelationableModelObject target, boolean isSource)
          Determines if a given relation type can be used to stablish a relation between this object an other given object
 void setModifiers(java.util.Set<ClassType.Modifier> modifiers)
           
 
Methods inherited from class org.cumt.model.classes.BaseClassType
addField, addMethod, addRelation, getFields, getMethods, getOperations, removeField, removeMethod, setFields, setMethods
 
Methods inherited from class org.cumt.model.RelationableModelObject
containsRelation, getRelations, removeRelation
 
Methods inherited from class org.cumt.model.ModelObject
getStereotype, setStereotype
 
Methods inherited from class org.cumt.model.BaseModelNode
getAttribute, getAttributeNames, getAttributes, getCreationDate, getDefaultName, getDescription, getName, getParent, isIgnoredOnGeneration, removeAttribute, setAttribute, setAttributes, setDescription, setIgnoredOnGeneration, setName, setParent, toString
 
Methods inherited from class org.cumt.model.PropertyAwareObject
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.cumt.model.IdentifiedObject
equals, getId, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MODIFIERS

public static final java.lang.String MODIFIERS
See Also:
Constant Field Values
Constructor Detail

ClassType

public ClassType()

ClassType

public ClassType(java.lang.String name)
Method Detail

getModifiers

public java.util.Set<ClassType.Modifier> getModifiers()

setModifiers

public void setModifiers(java.util.Set<ClassType.Modifier> modifiers)

isRelationAllowed

public boolean isRelationAllowed(java.lang.Class<? extends Relation> relationType,
                                 RelationableModelObject target,
                                 boolean isSource)
Description copied from class: RelationableModelObject
Determines if a given relation type can be used to stablish a relation between this object an other given object

Overrides:
isRelationAllowed in class RelationableModelObject
Returns:
true if the relation can be stablished

getSuperClass

public ClassType getSuperClass()
Convenience method to find the super class using the class relations

Returns:
the super class

getInterfaces

public java.util.List<InterfaceType> getInterfaces()
Convenience method to find the implemented interfaces using the class relations

Returns:
a list with the implemented interfaces

getSubClasses

public java.util.List<ClassType> getSubClasses()
Convenience method to find the subclasses using the class relations

Returns:
a list with the subclasses

clone

public java.lang.Object clone()
Overrides:
clone in class BaseClassType


Copyright © 2006 null. All Rights Reserved.