org.weblab_project.core.model
Class ResourceCollection

java.lang.Object
  extended by org.weblab_project.core.model.Resource
      extended by org.weblab_project.core.model.ResourceCollection
All Implemented Interfaces:
java.io.Serializable

public class ResourceCollection
extends Resource
implements java.io.Serializable

A resource collection defines a simple list of resources and allows to regroup them with a common meaning or utility. Since a multimedia document is a resource, the simplest resource collection will be a corpus of documents such as the video about the same program during one year. It could also be a set of useful resource needed by a service such as a set of annotations. As a common design principle, a resource collection should not refer to a heterogeneous set of resources (i.e. a document and a query). However, such specific case could be tackled by a collection of collection which will themselves be consistent (same resource type). As a resource, a resource collection could be annotated to provide, for example, meta-information on its content or the reasons of the collection. Data Exchange Model for WebLab platform provided by EADS Core package - Version 1.1 - 2009/05

Java class for resourceCollection complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="resourceCollection">
   <complexContent>
     <extension base="{http://weblab-project.org/core/model/}resource">
       <sequence>
         <element name="resource" type="{http://weblab-project.org/core/model/}resource" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.util.List<Resource> resource
           
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
ResourceCollection()
           
 
Method Summary
 java.util.List<Resource> getResource()
          Gets the value of the resource property.
 
Methods inherited from class org.weblab_project.core.model.Resource
getAnnotation, getDescriptor, getUri, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected java.util.List<Resource> resource
Constructor Detail

ResourceCollection

public ResourceCollection()
Method Detail

getResource

public java.util.List<Resource> getResource()
Gets the value of the resource property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resource property.

For example, to add a new item, do as follows:

    getResource().add(newItem);
 

Objects of the following type(s) are allowed in the list Resource



Copyright © 2004-2009. All Rights Reserved.