|
|||||||||||
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.StringEntity
A particular type of entity that encapsulates an instance of String.
Constructor Summary | |
StringEntity(Entity ent)
Creates a StringEntity from an existing Entity. |
|
StringEntity(KnowledgeModel model,
java.lang.String string,
Entity type)
Creates a new StringEntity that is a value of a supplied entity. |
|
StringEntity(KnowledgeModel model,
java.lang.String string,
java.lang.String description)
Creates a new StringEntity. |
Method Summary | |
java.lang.String |
asString()
Returns the encapsulated string. |
static boolean |
matches(Entity ent)
An Entity is of type StringEntity if and only if it encapsulates an object that is an instance of java.lang.String. |
void |
setString(java.lang.String string)
Changes the encapsulated string of this entity. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringEntity(KnowledgeModel model, java.lang.String string, java.lang.String description)
model
- The KnowledgeModel to create the new entity in.string
- The string to encapsulate in this entity.description
- The description of the entity.public StringEntity(KnowledgeModel model, java.lang.String string, Entity type)
public StringEntity(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public void setString(java.lang.String string)
string
- The new String.public java.lang.String asString()
public static boolean matches(Entity ent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |