eu.scape_project.watch.domain
Class PropertyValue

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

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

Each Property Value is the atomic measurement of a Property for an Entity measured in a specific point in time. The moment in time is defined by a related Measurement

Author:
Luis Faria

Constructor Summary
PropertyValue()
          Create a new empty property value.
PropertyValue(Entity e, Property p, List<Object> v)
           
PropertyValue(Entity e, Property p, String v)
          Create a new property value.
 
Method Summary
static String createId(String entityName, String propertyName)
          Create a unique Id based on the related Entity name and related Property name.
 void delete()
           
 boolean equals(Object obj)
           
 Entity getEntity()
           
 String getId()
           
 Property getProperty()
           
 String getValue()
           
 List<Object> getValues()
           
 int hashCode()
           
 PropertyValue save()
           
 void setEntity(Entity entity)
          Set the related Entity and update the Id.
 void setProperty(Property property)
           
 void setValue(String value)
           
 void setValues(List<Object> values)
           
 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

PropertyValue

public PropertyValue()
Create a new empty property value.


PropertyValue

public PropertyValue(Entity e,
                     Property p,
                     String v)
Create a new property value.

Parameters:
e - The related Entity.
p - The related Property.
v - The value of the Property for the Entity

PropertyValue

public PropertyValue(Entity e,
                     Property p,
                     List<Object> v)
Method Detail

getId

public String getId()

getValue

public String getValue()

setValue

public void setValue(String value)

getValues

public List<Object> getValues()

setValues

public void setValues(List<Object> values)

getEntity

public Entity getEntity()

setEntity

public void setEntity(Entity entity)
Set the related Entity and update the Id.

Parameters:
entity - The related Entity

getProperty

public Property getProperty()

setProperty

public void setProperty(Property property)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

save

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

delete

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

createId

public static String createId(String entityName,
                              String propertyName)
Create a unique Id based on the related Entity name and related Property name.

Parameters:
entityName - The related Entity name.
propertyName - The related Property name.
Returns:
The PropertyValue unique Id.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.