public class Class extends Inheritable
EMPTY, LOGGER, params, strict
Modifier | Constructor and Description |
---|---|
|
Class() |
|
Class(PetalNode parent,
Collection params) |
protected |
Class(PetalNode parent,
String name,
Collection params) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
accept the given visitor
|
void |
addClassAttribute(ClassAttribute o)
Add a class attribute aka field to this class.
|
ClassAttribute |
addClassAttribute(String name,
String type)
Add a class attribute aka field to this class.
|
ClassAttribute |
addClassAttribute(String name,
String type,
String qualifier)
Add a class attribute aka field to this class.
|
RealizeRelationship |
addImplementedInterface(Class inter)
Add implemented interface to this class, i.e. adds RealizeRelationship to
"realized_interfaces" list.
|
void |
addOperation(Operation o)
Add an operation to this class.
|
Operation |
addOperation(String name,
String result,
String qualifier,
String[] param_types,
String[] param_names)
Add an operation to this class.
|
InheritanceRelationship |
addSuperClass(Class clazz)
Add super class of this class, i.e. adds InheritanceRelationship to
"superclasses" list.
|
UsesRelationship |
addUsedClass(Class inter)
Add used to this class, i.e. adds UsesRelationship to
"used_nodes" list.
|
List |
getAssociations() |
List |
getAttributes() |
List |
getClassAttributeList() |
List |
getClassAttributes() |
String |
getClassType() |
List |
getImplementedInterfaces() |
String |
getLanguage() |
List |
getOperationList() |
List |
getOperations() |
List |
getParameters() |
List |
getRealizedInterfacesList() |
Class |
getSuperclass() |
List |
getSuperclasses() |
List |
getSuperclassList() |
List |
getUsedClasses() |
List |
getUsedClassesList() |
void |
init()
Intialize this class by registering it by its quid and
by its qualified name.
|
boolean |
isActor() |
boolean |
isAssociationClass() |
void |
isAssociationClass(boolean i) |
boolean |
isInterface() |
void |
removeClassAttribute(ClassAttribute o) |
void |
removeOperation(Operation o) |
void |
setAttributes(List o) |
void |
setClassAttributeList(List c) |
void |
setLanguage(String c) |
void |
setOperationList(List c) |
void |
setParameters(List o) |
void |
setRealizedInterfacesList(List c) |
void |
setSuperclassList(List c)
Set list of InheritanceRelationship objects
|
void |
setUsedClassesList(List c) |
addSuperClassifier
getDocumentation, getExportControl, getNameParameter, getStereotype, isPrivate, isProtected, isPublic, setDocumentation, setExportControl, setNameParameter, setStereotype
getQuid, getQuidAsLong, setQuid, setQuidAsLong
addProperty, addToList, clone, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, equals, getChildCount, getKind, getLongestName, getName, getNames, getNoProperties, getParameterList, getParent, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInteger, getPropertyAsString, getPropertyList, getPropertyName, getPropertyTuples, getQualifiedName, getRoot, indexOf, moveProperty, removeFromList, removeProperty, removeProperty, setName, setParameterList, setParent, setProperty, toString
protected Class(PetalNode parent, String name, Collection params)
public Class(PetalNode parent, Collection params)
public Class()
public void init()
init
in class QuidObject
public boolean isInterface()
public boolean isActor()
public void isAssociationClass(boolean i)
public boolean isAssociationClass()
public String getClassType()
public List getSuperclasses()
public InheritanceRelationship addSuperClass(Class clazz)
public RealizeRelationship addImplementedInterface(Class inter)
public UsesRelationship addUsedClass(Class inter)
public List getUsedClasses()
public List getImplementedInterfaces()
public Class getSuperclass()
public List getAssociations()
Association.init()
public List getSuperclassList()
getSuperclassList
in class Inheritable
public void setSuperclassList(List c)
Inheritable
setSuperclassList
in class Inheritable
public List getUsedClassesList()
public void setUsedClassesList(List c)
public List getRealizedInterfacesList()
public void setRealizedInterfacesList(List c)
public void addOperation(Operation o)
public Operation addOperation(String name, String result, String qualifier, String[] param_types, String[] param_names)
public void removeOperation(Operation o)
public ClassAttribute addClassAttribute(String name, String type, String qualifier)
public ClassAttribute addClassAttribute(String name, String type)
public void addClassAttribute(ClassAttribute o)
public void removeClassAttribute(ClassAttribute o)
public List getOperations()
public List getClassAttributes()
public List getOperationList()
public void setOperationList(List c)
public List getClassAttributeList()
public void setClassAttributeList(List c)
public String getLanguage()
public void setLanguage(String c)
public List getParameters()
public void setParameters(List o)
public List getAttributes()
public void setAttributes(List o)
Copyright © 2018 BITPlan GmbH. All rights reserved.