edu.wisc.trace.urcsdk.client.resources
Class ListResource
java.lang.Object
edu.wisc.trace.urcsdk.client.resources.AbstractResource
edu.wisc.trace.urcsdk.client.resources.ListResource
- All Implemented Interfaces:
- IResource
public class ListResource
- extends AbstractResource
ListResource represents a special type of resource
where more than one resource applies equally to an retrieval. This
stores all "equivalent" resources and makes them accessible through
the getList method.
- Version:
- $Revision: 1.21 $
- Author:
- Andrew Martin, Trace R&D Center
Created on: Sep 28, 2004
|
Method Summary |
boolean |
addValue(IResource val)
Adds a resource to the resource list. |
java.util.List<IResource> |
getList()
Returns the List of IResource objects in this resource list. |
java.lang.String |
toString()
Returns the String representation of the object. |
| Methods inherited from class edu.wisc.trace.urcsdk.client.resources.AbstractResource |
addProperty, addProperty, equals, getElementRef, getFormat, getLangs, getOperationRef, getPropertiesMap, getProperty, getRole, getType, getValue, getValueRef |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ListResource
public ListResource(java.util.List<IResource> values)
- Creates a new
ListResource instance.
addValue
public boolean addValue(IResource val)
- Adds a resource to the resource list.
- Parameters:
val - the IResource to add.
- Returns:
- a
boolean value
getList
public java.util.List<IResource> getList()
- Returns the
List of IResource objects in this resource list.
toString
public java.lang.String toString()
- Returns the
String representation of the object.
- Specified by:
toString in interface IResource- Specified by:
toString in class AbstractResource
- Returns:
- a
String value
Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.