|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthewebsemantic.binding.RdfBean<Property>
eu.scape_project.watch.domain.Property
public class Property
A Property defines a specific part of Entity
in the world that have
the same EntityType
, i.e. it represents some characteristic of these
Entities. It can specify a data type for its measurements.
Constructor Summary | |
---|---|
Property()
Create a new empty property. |
|
Property(EntityType t,
String n,
String d)
Create a new property of type DataType.TEXT . |
|
Property(EntityType t,
String n,
String d,
DataType dt)
Create a new property. |
|
Property(EntityType t,
String n,
String d,
DataType dt,
PropertyDataStructure st)
Create a new property. |
|
Property(EntityType t,
String n,
String d,
PropertyDataStructure st)
Create a new property. |
Method Summary | |
---|---|
static String |
createId(String entityTypeName,
String propertyName)
Get the property id based on the entity type and property name. |
void |
delete()
|
boolean |
equals(Object obj)
|
DataType |
getDatatype()
|
String |
getDescription()
|
String |
getId()
|
String |
getName()
|
PropertyDataStructure |
getStructure()
|
EntityType |
getType()
|
int |
hashCode()
|
Property |
save()
|
void |
setDatatype(DataType datatype)
|
void |
setDescription(String description)
|
void |
setName(String name)
Set the name and update the Id. |
void |
setStructure(PropertyDataStructure structure)
|
void |
setType(EntityType entityType)
Set the Entity Type and update the Id. |
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 |
---|
public Property()
public Property(EntityType t, String n, String d)
DataType.TEXT
. Sets the datatype to
DataType.TEXT
and the property datastructure to
PropertyDataStructure.SINGLE
by default.
t
- The related entity type.n
- The name, unique within properties of the same type.d
- The description of the Property.public Property(EntityType t, String n, String d, DataType dt)
PropertyDataStructure.SINGLE
t
- The related entity type.n
- The name, unique within properties of the same type.d
- The description of the Property.dt
- The type of data defined by this property.public Property(EntityType t, String n, String d, PropertyDataStructure st)
DataType.TEXT
.
t
- the related entity type.n
- the name, unique within properties of the same type.d
- the description of the Property.st
- the data structure type of the related values.public Property(EntityType t, String n, String d, DataType dt, PropertyDataStructure st)
t
- the related entity type.n
- the name, unique within properties of the same type.d
- the description of the Property.dt
- the type of data defined by this property.st
- the data structure type of the related values.Method Detail |
---|
public static String createId(String entityTypeName, String propertyName)
entityTypeName
- the related entity typepropertyName
- the property name, unique for the related entity type
public String getId()
public EntityType getType()
public void setType(EntityType entityType)
entityType
- The new related EntityType
public String getName()
public void setName(String name)
name
- The new namepublic String getDescription()
public void setDescription(String description)
public DataType getDatatype()
public void setDatatype(DataType datatype)
public PropertyDataStructure getStructure()
public void setStructure(PropertyDataStructure structure)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Property save()
save
in class thewebsemantic.binding.RdfBean<Property>
public void delete()
delete
in class thewebsemantic.binding.RdfBean<Property>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |