org.ow2.weblab.core.model
Class LinearSegment

java.lang.Object
  extended by org.ow2.weblab.core.model.Segment
      extended by org.ow2.weblab.core.model.LinearSegment
All Implemented Interfaces:
java.io.Serializable

public class LinearSegment
extends Segment
implements java.io.Serializable

A linear segment is a position which can be described by a start and stop reference in accordance to a number of UTF-8 characters metric. It is the kind of segment that should be used for text units. As a resource, linear segments could be annotated to provide. This should be done to provide information on a particular part a text, like a word for instance. Data Exchange Model for WebLab platform provided by CASSIDIAN - Version 1.2 - 2010/06

Java class for LinearSegment complex type.

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

 <complexType name="LinearSegment">
   <complexContent>
     <extension base="{http://weblab.ow2.org/core/1.2/model#}Segment">
       <attribute name="start" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="end" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  int end
           
protected  int start
           
 
Fields inherited from class org.ow2.weblab.core.model.Segment
uri
 
Constructor Summary
LinearSegment()
           
 
Method Summary
 int getEnd()
          Gets the value of the end property.
 int getStart()
          Gets the value of the start property.
 void setEnd(int value)
          Sets the value of the end property.
 void setStart(int value)
          Sets the value of the start property.
 
Methods inherited from class org.ow2.weblab.core.model.Segment
getUri, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

protected int start

end

protected int end
Constructor Detail

LinearSegment

public LinearSegment()
Method Detail

getStart

public int getStart()
Gets the value of the start property.


setStart

public void setStart(int value)
Sets the value of the start property.


getEnd

public int getEnd()
Gets the value of the end property.


setEnd

public void setEnd(int value)
Sets the value of the end property.



Copyright © 2004-2010. All Rights Reserved.