org.weblab_project.core.model
Class MediaUnit

java.lang.Object
  extended by org.weblab_project.core.model.Resource
      extended by org.weblab_project.core.model.MediaUnit
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BinaryMediaUnit, Cell, ComposedUnit, Line, Table, Text

public abstract class MediaUnit
extends Resource
implements java.io.Serializable

This is the major object manipulated through the WebLab platform. It is mainly assumed that almost all processing services should accept the media unit as a common argument and provide enhanced media unit as a result. A media unit can be defined as the structural annotable representation of any multimedia content. It is a resource and thus can be retrieved by an URI and annotated by any kind of descriptive annotations or low level descriptors. As described in the following sections any particular type of media (i.e. picture, text, video segment, audio sample or video frame...) will inherit from this object. It could have a composed unit as a parent when it is contained in a group of units. Finally it could contain annotable segments which will allow describing sub-parts of its own content. Data Exchange Model for WebLab platform provided by EADS Core package - Version 1.1 - 2009/05

Java class for mediaUnit complex type.

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

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

See Also:
Serialized Form

Field Summary
protected  java.util.List<Segment> segment
           
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
MediaUnit()
           
 
Method Summary
 java.util.List<Segment> getSegment()
          Gets the value of the segment 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

segment

protected java.util.List<Segment> segment
Constructor Detail

MediaUnit

public MediaUnit()
Method Detail

getSegment

public java.util.List<Segment> getSegment()
Gets the value of the segment 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 segment property.

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

    getSegment().add(newItem);
 

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



Copyright © 2004-2010. All Rights Reserved.