at.knowcenter.wag.egov.egiz.framework
Class FoundKey

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.framework.FoundKey

public class FoundKey
extends Object

Holds the information of one found key.

Author:
wprinz

Field Summary
 String caption
          The caption of the key.
 String key
          The type of the key.
 int start_index
          The start index of the caption in the text.
 
Constructor Summary
FoundKey(String key, String caption, int start_index)
           
 
Method Summary
 String getKey()
          Returns the key.
 int getStartIndex()
          Returns the start_index.
 boolean isSemanticallyEqual(FoundKey other_found_key)
          Tells, if this FoundKey is semantically equal to the other FoundKey.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public String key
The type of the key.


caption

public String caption
The caption of the key.


start_index

public int start_index
The start index of the caption in the text.

Constructor Detail

FoundKey

public FoundKey(String key,
                String caption,
                int start_index)
Parameters:
key - The type of the key.
caption - The caption of the key.
start_index - The start index of the caption in the text.
Method Detail

getKey

public String getKey()
Returns the key.

Returns:
Returns the key.

getStartIndex

public int getStartIndex()
Returns the start_index.

Returns:
Returns the start_index.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

isSemanticallyEqual

public boolean isSemanticallyEqual(FoundKey other_found_key)
Tells, if this FoundKey is semantically equal to the other FoundKey.

Two FoundKeys are semantically equal if their key and caption are the same.

Parameters:
other_found_key - The other FoundKey.
Returns:
Returns true if the two keys are semantically equal.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.