|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.Constraint
jcreek.representation.constraints.ValueClassConstraint
Offers the ability to state that the value of the relations of a given type from a given entity must be subclasses of some class/entity.
It is probably a good idea to make a negative counterpart of this one, ore include the negative value class in this constraint. But that is defered...
Field Summary |
Fields inherited from class jcreek.representation.constraints.Constraint |
constraintData, knowledgeModel |
Constructor Summary | |
ValueClassConstraint(KnowledgeModel knowledgeModel,
ConstraintData constraintData)
Creates a new instance of ValueClassConstraint from a constraint data object |
|
ValueClassConstraint(KnowledgeModel knowledgeModel,
RelationType rel,
Entity superEntity,
java.lang.String description)
Creates a new instance of ValueClassConstraint |
Method Summary | |
Entity |
getSuperEntity()
Returns the super entity |
void |
setSuperEntity(Entity superEntity)
Sets the mandatory super entity |
Methods inherited from class jcreek.representation.constraints.Constraint |
check, equals, getConstraintData, getDescription, getID, getRelation, setDescription, setKnowledgeModel, setRelation, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ValueClassConstraint(KnowledgeModel knowledgeModel, RelationType rel, Entity superEntity, java.lang.String description)
knowledgeModel
- the knowledge model the constraint shall bellong torel
- the relation type the constraint shall constrainsuperEntity
- the entity that the relation's value must be a subclass ofdescription
- a description of the constraintpublic ValueClassConstraint(KnowledgeModel knowledgeModel, ConstraintData constraintData)
knowledgeModel
- the knowledge model the constraint shall bellong toconstraintData
- the constraint data to be contained by the constraintMethod Detail |
public void setSuperEntity(Entity superEntity)
superEntity
- the entity that the relation's value must be a subclass ofpublic Entity getSuperEntity()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |