org.cumt.model.classes
Class ClassType
java.lang.Object
org.cumt.model.IdentifiedObject
org.cumt.model.PropertyAwareObject
org.cumt.model.BaseModelNode
org.cumt.model.ModelObject
org.cumt.model.RelationableModelObject
org.cumt.model.types.Type
org.cumt.model.classes.BaseClassType
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
Field Summary |
static java.lang.String |
MODIFIERS
|
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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MODIFIERS
public static final java.lang.String MODIFIERS
- See Also:
- Constant Field Values
ClassType
public ClassType()
ClassType
public ClassType(java.lang.String name)
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.