org.weblab_project.core.model.text
Class Text

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

public class Text
extends MediaUnit
implements java.io.Serializable

A text unit is the simplest specification of the media unit dedicated to full text data. Its unique attribute is a string which is actually the text extracted from the original document content. This content is optional, since sometimes it's too large to be handled in this field. In that case, we encourage to create a content (in the content package) and to annotate the text with the identifier (URI) of the created content. A simple text document such as HTML page could be described by a document which contains a unique text unit. As a resource, a text unit could be annotated and could also be described with low level descriptors. Data Exchange Model for WebLab platform provided by EADS Text package - Version 1.1 - 2009/05

Java class for text complex type.

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

 <complexType name="text">
   <complexContent>
     <extension base="{http://weblab-project.org/core/model/}mediaUnit">
       <sequence>
         <element name="content" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.lang.String content
           
 
Fields inherited from class org.weblab_project.core.model.MediaUnit
segment
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
Text()
           
 
Method Summary
 java.lang.String getContent()
          Gets the value of the content property.
 void setContent(java.lang.String value)
          Sets the value of the content property.
 
Methods inherited from class org.weblab_project.core.model.MediaUnit
getSegment
 
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

content

protected java.lang.String content
Constructor Detail

Text

public Text()
Method Detail

getContent

public java.lang.String getContent()
Gets the value of the content property.

Returns:
possible object is String

setContent

public void setContent(java.lang.String value)
Sets the value of the content property.

Parameters:
value - allowed object is String


Copyright © 2004-2010. All Rights Reserved.