|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Instances of classes that implement this interface are used to store information about a resource like a sensor. This classes are intended as plugins for the CEMonitor passed as jar files. It is also used for actions and subscriptions.
Method Summary | |
boolean |
exists()
Check if this resource still exists. |
java.util.Calendar |
getCreationTime()
Get the creation time. |
java.lang.Integer |
getId()
Get the Integer identifying this resource. |
org.apache.axis.types.URI |
getJarPath()
Get the URI representing the path to the jar file of this resource. |
java.lang.String |
getName()
Get the name of this resource. |
Property[] |
getProperty()
Get the array of the all Property s of this resource. |
Property |
getProperty(int i)
Get a Property specifying its array index. |
Property |
getProperty(java.lang.String key)
Get a Property specifying its name |
java.lang.String |
getType()
Get the type of this resource. |
boolean |
isNew()
Check if this resource has recently been added (i.e. |
java.util.Calendar |
lastModified()
Get the time of the last modification occurred to this resource. |
void |
setCreationTime(java.util.Calendar time)
Set the time of the last modification occurred to this resource. |
void |
setId(int id)
Set the int identifying this resource. |
void |
setId(java.lang.Integer id)
Set the Integer identifying this resource. |
void |
setJarPath(org.apache.axis.types.URI JARPath)
Set the URI representing the path to the jar file of this resource. |
void |
setName(java.lang.String name)
Set the name of this resource. |
void |
setNew(boolean b)
Set the "new" flag of this resource. |
void |
setProperty(int i,
Property value)
Set the Property array slot specified by i to the Property specified by value. |
void |
setProperty(Property[] properties)
Set the array of the all Property s of this resource. |
void |
setType(java.lang.String type)
Set the type of this resource. |
Method Detail |
public boolean isNew()
public void setNew(boolean b)
b
- The value of the "new" flag.public boolean exists()
public java.lang.Integer getId()
public void setId(int id)
public void setId(java.lang.Integer id)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of this resource.public java.lang.String getType()
public void setType(java.lang.String type)
public java.util.Calendar getCreationTime()
public java.util.Calendar lastModified()
public void setCreationTime(java.util.Calendar time)
time
- The time of the last modification to this resource.public org.apache.axis.types.URI getJarPath()
public void setJarPath(org.apache.axis.types.URI JARPath)
JARPath
- The path to the jar of this resource.public Property getProperty(java.lang.String key)
Property
specifying its name
key
- The name of the property.
Property
if it exists.public Property getProperty(int i)
Property
specifying its array index.
i
- The array index of the searched Property
.
Property
.public Property[] getProperty()
Property
s of this resource.
Property
s of this resource.public void setProperty(Property[] properties)
Property
s of this resource.
public void setProperty(int i, Property value)
Property
array slot specified by i to the Property
specified by value.
i
- The index of the Property
array where to put the new Property
.value
- The new Property
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |