com.iphrase.runtime.query.result
Class TextExtract.Span

java.lang.Object
  |
  +--com.iphrase.runtime.query.result.TextExtract.Span
Enclosing class:
TextExtract

public class TextExtract.Span
extends java.lang.Object

Represent a single text extract span, consisting of text and attributes. Pre-defined attributes are provided by the TextExtract inner interface Atts.


Method Summary
 boolean equals(java.lang.Object obj)
          Override Object.equals(java.lang.Object)
 int getAtts()
          Get the attributes for this span.
 java.lang.String getText()
          Get the text string for this span.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getText

public java.lang.String getText()
Get the text string for this span.
Returns:
String text

getAtts

public int getAtts()
Get the attributes for this span. The int value can represent up to 32 independent attributes. Pre-defined attributes are provided by the TextExtract inner interface Atts.
Returns:
int attributes

equals

public boolean equals(java.lang.Object obj)
Override Object.equals(java.lang.Object)
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

© Copyright 2005, 2006. IBM Corporation. All rights reserved.