|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.sql.ModelAdjuster
a kind of filter for a MModel
the data for object-relational mappings in ORMappingImpl is here
made available. This includes:
ORMappingImpl
,
MModel
,
TypeManager
Field Summary | |
private Set |
associations
|
private Set |
classAttributes
|
private Set |
classifiers
|
private ru.novosoft.uml.foundation.data_types.MMultiplicity |
defaultMultiplicity
|
private Set |
generalizationRoots
|
private Set |
generalizations
|
private ru.novosoft.uml.model_management.MModel |
theModel
|
private Set |
undefinedAttributes
|
Constructor Summary | |
ModelAdjuster()
creates a new ModelAdjuster. |
|
ModelAdjuster(ru.novosoft.uml.foundation.data_types.MMultiplicity defaultMultiplicity)
creates a new ModelAdjuster. |
Method Summary | |
private void |
addAssociationMultiplicities(ru.novosoft.uml.foundation.data_types.MMultiplicity defaultMultiplicity)
|
private void |
addAssociationNames()
adds names to unnamed Associations by default the name consits of the rolenames of the Association ends connected by an underscore '_' |
private void |
addAssociationRoles()
adds AssociationRoles, by default the associated classifier name with the first letter in lower case. |
void |
adjust(ru.novosoft.uml.model_management.MModel theModel)
start correcting and analysing the model |
private void |
getAll(ru.novosoft.uml.foundation.core.MModelElement element)
gets all MClassifiers, inheritance roots and associations |
Set |
getAssociations()
returns a Set of MAssociation of all Associations between classes and/or interfaces |
private void |
getAttributes()
gets all attributes with unknown types |
Set |
getClassifiers()
returns a Set of all MClassifiers being either a MClass or a MInterface and containing at least one Attribute or being part of and association or generalization |
Set |
getClassReferenceAttributes()
returns a Set of MAttribute of all attributes referencing a classifier defined in the MModel |
Set |
getGeneralizationRoots()
|
Set |
getUndefinedAttributes()
returns a Set of MAttribute of all attributes having an unknown datatype |
void |
setDefaultMultiplicity(ru.novosoft.uml.foundation.data_types.MMultiplicity multi)
sets the default multiplicity for AssociationEnds without defined multiplicities |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ru.novosoft.uml.model_management.MModel theModel
private Set classifiers
private Set associations
private Set generalizations
private Set generalizationRoots
private Set undefinedAttributes
private Set classAttributes
private ru.novosoft.uml.foundation.data_types.MMultiplicity defaultMultiplicity
Constructor Detail |
public ModelAdjuster()
public ModelAdjuster(ru.novosoft.uml.foundation.data_types.MMultiplicity defaultMultiplicity)
Method Detail |
public void adjust(ru.novosoft.uml.model_management.MModel theModel)
public void setDefaultMultiplicity(ru.novosoft.uml.foundation.data_types.MMultiplicity multi)
private void getAll(ru.novosoft.uml.foundation.core.MModelElement element)
private void addAssociationRoles()
private void addAssociationMultiplicities(ru.novosoft.uml.foundation.data_types.MMultiplicity defaultMultiplicity)
private void addAssociationNames()
private void getAttributes()
public Set getClassifiers()
public Set getAssociations()
public Set getGeneralizationRoots()
public Set getUndefinedAttributes()
public Set getClassReferenceAttributes()
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |