|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.LocalConstraintData
Implementation of constraint data that for storing the model as a local file.
For use together with LocalKnowledgeModel, LocalEntityData and so on.
Constructor Summary | |
LocalConstraintData(KnowledgeModel km,
java.lang.Integer id)
Creates a new instance of LocalConstraintData |
Method Summary | |
ConstraintObject |
getConstraintObject()
Returns the constraint object |
java.lang.String |
getDescription()
Returns the description of the constraint |
java.lang.Integer |
getID()
Returns the ID of the constraint |
Constraint |
newConstraintInstance()
Returns an instance of the right constraint type |
void |
setConstraintObject(ConstraintObject constraintObject)
Sets constraint object |
void |
setDescription(java.lang.String description)
Sets the description of the constraint data |
void |
setKnowledgeModel(KnowledgeModel km)
Sets the knowledge model This method is used for building up the structures in the knowledge model during loading from file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LocalConstraintData(KnowledgeModel km, java.lang.Integer id)
km
- the knowledge modelid
- the id of this constraint shall haveMethod Detail |
public java.lang.String getDescription()
getDescription
in interface ConstraintData
public void setDescription(java.lang.String description)
setDescription
in interface ConstraintData
description
- public ConstraintObject getConstraintObject()
getConstraintObject
in interface ConstraintData
public void setConstraintObject(ConstraintObject constraintObject)
setConstraintObject
in interface ConstraintData
constraintObject
- the constraintObjectpublic java.lang.Integer getID()
getID
in interface ConstraintData
public java.lang.String toString()
toString
in interface ConstraintData
public Constraint newConstraintInstance()
newConstraintInstance
in interface ConstraintData
public void setKnowledgeModel(KnowledgeModel km)
km
- the knowledge model
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |