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