|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.resources.Resource
public class Resource
Minimal implementation of the IResource interface.
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
void |
addTag(String tag)
Add a new tag to describe this resource. |
String[] |
getTags()
Get the array of tags associated with this resource. |
String |
getTagValue(String key)
Treat each tag as being "key=value" and return the value of the first tag with the specified key. |
boolean |
hasTag(String tag)
Check if the specified tag is associated with this resource. |
void |
removeTag(String tag)
Remove an existing tag describing this resource. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Resource()
| Method Detail |
|---|
public String[] getTags()
getTags in interface IResourcepublic void addTag(String tag)
addTag in interface IResourcetag - the new tag to addpublic void removeTag(String tag)
removeTag in interface IResourcetag - the tag to removepublic boolean hasTag(String tag)
hasTag in interface IResourcetag - the tag to check
public String getTagValue(String key)
getTagValue in interface IResourcekey - the string to match the key
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||