|
SunSPOT host 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
com.sun.spot.resources.CompositeResource
public class CompositeResource
Minimal implementation of the ICompositeResource interface.
| Field Summary | |
|---|---|
protected Vector |
resources
|
| Constructor Summary | |
|---|---|
CompositeResource()
|
|
| Method Summary | |
|---|---|
void |
add(IResource res)
Add an IResource to the composite resource. |
protected IResource |
internalAt(int i)
|
protected int |
internalSize()
|
IResource |
lookup(Class resourceInterface)
Lookup a matching resource Interface. |
IResource |
lookup(Class resourceInterface,
String tag)
Lookup a matching resource Interface. |
IResource |
lookup(Class resourceInterface,
String[] tags)
Lookup a matching resource Interface. |
IResource |
lookup(String tag)
Lookup a matching resource Interfaces. |
IResource |
lookup(String[] tags)
Lookup a matching resource Interfaces. |
IResource[] |
lookupAll(Class resourceInterface)
Lookup all the matching resource Interfaces. |
IResource[] |
lookupAll(Class resourceInterface,
String tag)
Lookup a matching resource Interface. |
IResource[] |
lookupAll(Class resourceInterface,
String[] tags)
Lookup all the matching resource Interfaces. |
IResource[] |
lookupAll(String tag)
Lookup all the matching resource Interfaces. |
IResource[] |
lookupAll(String[] tags)
Lookup all the matching resource Interfaces. |
void |
remove(IResource res)
Remove an IResource from the composite resource. |
| Methods inherited from class com.sun.spot.resources.Resource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Field Detail |
|---|
protected Vector resources
| Constructor Detail |
|---|
public CompositeResource()
| Method Detail |
|---|
protected int internalSize()
protected IResource internalAt(int i)
public IResource lookup(Class resourceInterface)
lookup in interface ICompositeResourceresourceInterface - the desired type of resource
public IResource[] lookupAll(Class resourceInterface)
lookupAll in interface ICompositeResourceresourceInterface - the desired type of resource
public IResource lookup(Class resourceInterface,
String tag)
lookup in interface ICompositeResourceresourceInterface - the desired type of resourcetag - a tag that must match
public IResource[] lookupAll(Class resourceInterface,
String tag)
lookupAll in interface ICompositeResourceresourceInterface - the desired type of resourcetag - a tag that must match
public IResource lookup(Class resourceInterface,
String[] tags)
lookup in interface ICompositeResourceresourceInterface - the desired type of resourcetags - an array of tags that must match
public IResource[] lookupAll(Class resourceInterface,
String[] tags)
lookupAll in interface ICompositeResourceresourceInterface - the desired type of resourcetags - an array of tags that must match
public IResource lookup(String tag)
lookup in interface ICompositeResourcetag - a tag that must match
public IResource[] lookupAll(String tag)
lookupAll in interface ICompositeResourcetag - a tag that must match
public IResource lookup(String[] tags)
lookup in interface ICompositeResourcetags - an array of tags that must match
public IResource[] lookupAll(String[] tags)
lookupAll in interface ICompositeResourcetags - an array of tags that must match
public void add(IResource res)
add in interface ICompositeResourceres - the IResource instance to add to the composite resourcepublic void remove(IResource res)
remove in interface ICompositeResourceres - the IResource instance to remove from the composite resource
|
SunSPOT host API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||