software/test/performance/src/org/LexGrid/LexBIG/example/remote2/MetaMatch2.java
/**
     * Print code and text for all text presentations associated
     * with the given concept reference.  If specified, any printed terms
     * will have stop words removed prior to comparison, must include
     * the given prefix, and can be constrained to those with a set
     * number of words.
     * @param ref
     * @param removeStopWords
     * @param prefix
     * @param wordCount
     */
Print code and text for all text presentations associated
with the given concept reference.  If specified, any printed terms
will have stop words removed prior to comparison, must include
the given prefix, and can be constrained to those with a set
number of words.
Print code and text for all text presentations associated with the given concept reference . If specified any printed terms will have stop words removed prior to comparison must include the given prefix and can be constrained to those with a set number of words .
protected int printText(int ctr, ResolvedConceptReference ref, boolean removeStopWords, 
            String prefix, int wordCount) {
        Concept concept = ref.getReferencedEntry();
        Set<String> presentations = new HashSet<String>();
        for (int j = 0; j < concept.getPresentationCount(); j++)
            presentations.add(concept.getPresentation(j).getText().getContent());
        String code = "[" + ref.getConceptCode() + ']';
        for (Iterator<String> strings = presentations.iterator(); strings.hasNext(); ) {
            String term = strings.next();
            if ((prefix == null || term.toLowerCase().startsWith(prefix))
                    && (wordCount < 0 || toWords(term, removeStopWords).length == wordCount))
                if (_displayConcepts)
                    _buffer.append(INDENT + (++ctr) + ") " + code + term + "\n");
        }
        return ctr;
    }
protected int printText ( int ctr , ResolvedConceptReference ref , boolean removeStopWords , String prefix , int wordCount ) { Concept concept = ref . getReferencedEntry ( ) ; Set < String > presentations = new HashSet < String > ( ) ; for ( int j = 0 ; j < concept . getPresentationCount ( ) ; j ++ ) presentations . add ( concept . getPresentation ( j ) . getText ( ) . getContent ( ) ) ; String code = "[" + ref . getConceptCode ( ) + ']' ; for ( Iterator < String > strings = presentations . iterator ( ) ; strings . hasNext ( ) ; ) { String term = strings . next ( ) ; if ( ( prefix == null || term . toLowerCase ( ) . startsWith ( prefix ) ) && ( wordCount < 0 || toWords ( term , removeStopWords ) . length == wordCount ) ) if ( _displayConcepts ) _buffer . append ( INDENT + ( ++ ctr ) + ") " + code + term + "\n" ) ; } return ctr ; }
Print code and text for all text presentations associated
 with the given concept reference.
Print code and text for all text presentations associated with the given concept reference .
// Identify the unique set of text presentations;
 // avoid duplicate registration by multiple sources, etc ...
 // Print the result
