org.weblab_project.core.model
Class Resource

java.lang.Object
  extended by org.weblab_project.core.model.Resource
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Content, LowLevelDescriptor, MediaUnit, PieceOfKnowledge, Query, ResourceCollection, ResultSet, Segment, Service, UsageContext, User

public class Resource
extends java.lang.Object
implements java.io.Serializable

A resource refers to any object that could be manipulated in the WebLab platform. It will be identified by a unique URI. It can hold some annotations that will describe the resource itself at a semantic level. It can also hold some low level descriptors that are describing itself at a lower level. It will be a common interface which will be inherited by almost all WebLab objects. Any reference to a resource will use its URI. Data Exchange Model for WebLab platform provided by EADS Core package - Version 1.1 - 2009/05

Java class for resource complex type.

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

 <complexType name="resource">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="annotation" type="{http://weblab-project.org/core/model/}annotation" maxOccurs="unbounded" minOccurs="0"/>
         <element name="descriptor" type="{http://weblab-project.org/core/model/}lowLevelDescriptor" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.util.List<Annotation> annotation
           
protected  java.util.List<LowLevelDescriptor> descriptor
           
protected  java.lang.String uri
           
 
Constructor Summary
Resource()
           
 
Method Summary
 java.util.List<Annotation> getAnnotation()
          Gets the value of the annotation property.
 java.util.List<LowLevelDescriptor> getDescriptor()
          Gets the value of the descriptor property.
 java.lang.String getUri()
          Gets the value of the uri property.
 void setUri(java.lang.String value)
          Sets the value of the uri property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotation

protected java.util.List<Annotation> annotation

descriptor

protected java.util.List<LowLevelDescriptor> descriptor

uri

protected java.lang.String uri
Constructor Detail

Resource

public Resource()
Method Detail

getAnnotation

public java.util.List<Annotation> getAnnotation()
Gets the value of the annotation 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 annotation property.

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

    getAnnotation().add(newItem);
 

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


getDescriptor

public java.util.List<LowLevelDescriptor> getDescriptor()
Gets the value of the descriptor 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 descriptor property.

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

    getDescriptor().add(newItem);
 

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


getUri

public java.lang.String getUri()
Gets the value of the uri property.

Returns:
possible object is String

setUri

public void setUri(java.lang.String value)
Sets the value of the uri property.

Parameters:
value - allowed object is String


Copyright © 2004-2010. All Rights Reserved.