org.ow2.weblab.core.model
Class MediaUnit
java.lang.Object
org.ow2.weblab.core.model.Resource
org.ow2.weblab.core.model.MediaUnit
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Audio, Document, Image, Text, Video
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 CASSIDIAN - Version 1.2 - 2010/08
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.ow2.org/core/1.2/model#}Resource">
<sequence>
<element name="segment" type="{http://weblab.ow2.org/core/1.2/model#}Segment" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
segment
protected java.util.List<Segment> segment
MediaUnit
public MediaUnit()
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
isSetSegment
public boolean isSetSegment()
unsetSegment
public void unsetSegment()
Copyright © 2004-2010. All Rights Reserved.