|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object krieger.oclsolve.PropertyFactory<CID>
CID
- The type used for identifying classes.public class PropertyFactory<CID>
Represents a factory for (UML) properties.
Constructor Summary | |
---|---|
PropertyFactory(ClassifierFactory<CID> classifierFactory)
Creates a PropertyFactory from a ClassifierFactory . |
Method Summary | |
---|---|
java.util.List<Property> |
createAssociation(CID class1,
Multiplicity mult1,
CID class2,
Multiplicity mult2,
boolean atPre,
boolean constant)
Returns an new association. |
Property |
createAttribute(CID owningClass,
Classifier<?> type,
boolean atPre,
boolean constant)
Returns an new attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyFactory(ClassifierFactory<CID> classifierFactory)
PropertyFactory
from a ClassifierFactory
.
Method Detail |
---|
public Property createAttribute(CID owningClass, Classifier<?> type, boolean atPre, boolean constant)
atPre
- Whether the attribute holds values in the pre-state (rather than the post-state).constant
- Whether the attribute can be changed by constraint solving.public java.util.List<Property> createAssociation(CID class1, Multiplicity mult1, CID class2, Multiplicity mult2, boolean atPre, boolean constant)
atPre
- Whether the association holds values in the pre-state (rather than the post-state).constant
- Whether the association can be changed by constraint solving.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |