org.ow2.weblab.core.model
Class Text
java.lang.Object
org.ow2.weblab.core.model.Resource
org.ow2.weblab.core.model.MediaUnit
org.ow2.weblab.core.model.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 EADSS -Version
1.2 - 2010/08
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.ow2.org/core/1.2/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
|
Constructor Summary |
Text()
|
Method Summary |
java.lang.String |
getContent()
Gets the value of the content property. |
boolean |
isSetContent()
|
void |
setContent(java.lang.String value)
Sets the value of the content property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
protected java.lang.String content
Text
public Text()
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
isSetContent
public boolean isSetContent()
Copyright © 2004-2010. All Rights Reserved.