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

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

public class FoundBlock
extends Object

Contains all the information about a found Block in text extracton.

This is basically the ordered list of found captions.

Author:
wprinz

Field Summary
 int end_index
          The end index of the block.
 List found_keys
          The ordered list of found keys.
 SignatureTypeDefinition std
          The type of the block.
 
Constructor Summary
FoundBlock()
           
 
Method Summary
protected static List filterOutNonRequiredFoundKeys(List found_keys)
          Filters out all non required keys from the List of found keys.
protected static List filterOutSIG_ID(List found_keys)
          Filters out a SIG_ID found key.
 FoundKey getDateFoundKey()
           
 FoundKey getFirstKey()
          Returns the first key of this block.
 FoundKey getLastKey()
          Returns the last key of this block.
 int getSize()
          Returns the size of this block.
 boolean isSemanticallyEqual(FoundBlock other_block)
          Tells, if this block is semantically equal to the other block.
 boolean isStrictlySemanticallyEqual(FoundBlock other_block)
          Tells, if this block is strictly semantically equal to the other block.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

found_keys

public List found_keys
The ordered list of found keys.


end_index

public int end_index
The end index of the block.


std

public SignatureTypeDefinition std
The type of the block.

Constructor Detail

FoundBlock

public FoundBlock()
Method Detail

getFirstKey

public FoundKey getFirstKey()
Returns the first key of this block.

Returns:
Returns the first key of this block.

getLastKey

public FoundKey getLastKey()
Returns the last key of this block.

Returns:
Returns the last key of this block.

getSize

public int getSize()
Returns the size of this block.

Note that this doesn't give the exact size of the block, but rather a value suirable for comparison.

Returns:
Returns the size of this block.

toString

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

isSemanticallyEqual

public boolean isSemanticallyEqual(FoundBlock other_block)
Tells, if this block is semantically equal to the other block. Two blocks are semantically equal, if all the required fields (except SIG_ID) have the same captions in the same order.

Parameters:
other_block - The other block.
Returns:
Returns true, of this block is semantically equal to the other one, false otherwise.

filterOutNonRequiredFoundKeys

protected static List filterOutNonRequiredFoundKeys(List found_keys)
Filters out all non required keys from the List of found keys.

Parameters:
found_keys - The List of found keys.
Returns:
Returns the subset List which contains only the required keys.

filterOutSIG_ID

protected static List filterOutSIG_ID(List found_keys)
Filters out a SIG_ID found key.

Parameters:
found_keys - The List of found keys.
Returns:
Returns the subset List which contains all keys but the SIG_ID.

isStrictlySemanticallyEqual

public boolean isStrictlySemanticallyEqual(FoundBlock other_block)
Tells, if this block is strictly semantically equal to the other block. Two blocks are strictly semantically equal, if they contain the same keys with the same captions in the same order.

Parameters:
other_block - The other block.
Returns:
Returns true, of this block is semantically equal to the other one, false otherwise.

getDateFoundKey

public FoundKey getDateFoundKey()


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