|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.Entity
jcreek.representation.EntityType
jcreek.representation.cbr.ClassEntity
Represents an entity type that encapsulates a Java Class object.
Constructor Summary | |
ClassEntity(Entity ent)
Creates a ClassEntity from an existing Entity. |
|
ClassEntity(KnowledgeModel model,
java.lang.Class myClass,
java.lang.String description)
Creates a new ClassEntity. |
Method Summary | |
java.lang.Class |
asClass()
Returns the class encapsulated by this entity |
static boolean |
matches(Entity ent)
Returns true if the given entitiy can be seen as a ClassEntity |
void |
setClass(java.lang.Class myClass)
Sets the class encapsulated by this entity. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassEntity(KnowledgeModel model, java.lang.Class myClass, java.lang.String description) throws NameAlreadyExistException
model
- The KnowledgeModel to create the new entity in.myClass
- The class to encapsulate in this entity.description
- The description of the entity.public ClassEntity(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public void setClass(java.lang.Class myClass)
public java.lang.Class asClass()
public static boolean matches(Entity ent)
ent
- The entity to check.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |