org.eaglei.lexical
Class EntityMatchRequest

java.lang.Object
  extended by org.eaglei.lexical.EntityMatchRequest
All Implemented Interfaces:
java.io.Serializable

public class EntityMatchRequest
extends java.lang.Object
implements java.io.Serializable

Represents an entity extraction request.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
EntityMatchRequest(java.lang.String text)
          Creates a request for a specific text string.
EntityMatchRequest(java.lang.String text, org.eaglei.model.EIURI uri)
          Creates a request for a specific text string and type URI constraint
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getMaxMatches()
          Gets the max number of matches.
 java.lang.String getText()
          Gets the text to match.
 org.eaglei.model.EIURI getURI()
          Get the URI for the eagle-i ontology entity used to constrain the match.
 int hashCode()
           
 void setMaxMatches(int maxMatches)
          Sets the maximum matches to return.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

EntityMatchRequest

public EntityMatchRequest(java.lang.String text)
Creates a request for a specific text string.

Parameters:
text - Text to match.

EntityMatchRequest

public EntityMatchRequest(java.lang.String text,
                          org.eaglei.model.EIURI uri)
Creates a request for a specific text string and type URI constraint

Parameters:
text - Text to match.
uri - URI of class that constrains the matches.
Method Detail

getText

public java.lang.String getText()
Gets the text to match.

Returns:
The text to match.

getURI

public org.eaglei.model.EIURI getURI()
Get the URI for the eagle-i ontology entity used to constrain the match.

Returns:
Entity URI. May be null.

getMaxMatches

public int getMaxMatches()
Gets the max number of matches.

Returns:
Maximum matches to return.

setMaxMatches

public void setMaxMatches(int maxMatches)
Sets the maximum matches to return.

Parameters:
maxMatches - Maximum number of matches to return.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2011 Eagle-I. All Rights Reserved.