net.sourceforge.nite.search
Class NOMExistingEQC

java.lang.Object
  extended by net.sourceforge.nite.search.NOMExistingEQC
All Implemented Interfaces:
ElementQuantityCalculator

public class NOMExistingEQC
extends java.lang.Object
implements ElementQuantityCalculator

This implementation of ElementQuantityCalculator returns the number of elements of any given name in the NOM at the moment, making sure we don't load anything into the corpus as a result of the call.


Constructor Summary
NOMExistingEQC(NOMCorpus nom)
           
 
Method Summary
 int getNumber(java.lang.String elname)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOMExistingEQC

public NOMExistingEQC(NOMCorpus nom)
Method Detail

getNumber

public int getNumber(java.lang.String elname)
Specified by:
getNumber in interface ElementQuantityCalculator