eu.scape_project.watch.domain
Class Entity

java.lang.Object
  extended by thewebsemantic.binding.RdfBean<Entity>
      extended by eu.scape_project.watch.domain.Entity

public class Entity
extends thewebsemantic.binding.RdfBean<Entity>

An entity is a concrete instance of some EntityType. E.g. 'ImageMagick v1.0' is a concrete instance (an entity) and has the entity type 'Action component'.

Author:
Luis Faria

Constructor Summary
Entity()
          Create a new empty Entity.
Entity(EntityType et, String n)
          Create a new Entity.
 
Method Summary
 void delete()
           
 boolean equals(Object obj)
           
 EntityType getEntityType()
           
 String getName()
           
 int hashCode()
           
 Entity save()
           
 void setEntityType(EntityType entityType)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class thewebsemantic.binding.RdfBean
asIndividual, fill, fill, load, query, refresh
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entity

public Entity()
Create a new empty Entity.


Entity

public Entity(EntityType et,
              String n)
Create a new Entity.

Parameters:
et - The type of the entity
n - a name that uniquely identifies the entity
Method Detail

getName

public String getName()

setName

public void setName(String name)

getEntityType

public EntityType getEntityType()

setEntityType

public void setEntityType(EntityType entityType)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

save

public Entity save()
Overrides:
save in class thewebsemantic.binding.RdfBean<Entity>

delete

public void delete()
Overrides:
delete in class thewebsemantic.binding.RdfBean<Entity>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.