com.iphrase.runtime.query.result
Class TextExtract

java.lang.Object
  |
  +--com.iphrase.runtime.query.result.TextExtract

public class TextExtract
extends java.lang.Object

Represent a text extract feature value. This consists of multiple text strings, each of which is associated with up to 32 independent attributes. Pre-defined attributes are provided by the inner interface Atts.


Inner Class Summary
static interface TextExtract.Atts
          Pre-defined text extract attribute values.
 class TextExtract.Span
          Represent a single text extract span, consisting of text and attributes.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Override Object.equals(java.lang.Object)
 java.lang.String getLinkUrl()
          Get the link associated with this TextExtract.
 TextExtract.Span[] getSpans()
          Get the TextExtract.Span array associated with this TextExtract.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSpans

public TextExtract.Span[] getSpans()
Get the TextExtract.Span array associated with this TextExtract.
Returns:
TextExtract.Span array

getLinkUrl

public java.lang.String getLinkUrl()
Get the link associated with this TextExtract.
Returns:
url

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.