Changeset 16439

Show
Ignore:
Timestamp:
16.07.2008 17:31:39 (11 years ago)
Author:
mdewsnip
Message:

Moved the one used function in XMLTagInfo into GS2LuceneIndexer, then deleted XMLTagInfo.java.

Location:
indexers/trunk/lucene-gs/src/org/greenstone/LuceneWrapper
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • indexers/trunk/lucene-gs/src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java

    r16438 r16439  
    272272        } 
    273273 
    274         if (XMLTagInfo.isIndexable(atts)) { 
     274        if (isIndexable(atts)) { 
    275275        indexable_current_node_ = qName;     
    276276        } 
     
    278278        indexable_current_node_ = ""; 
    279279        } 
    280  
     280    } 
     281 
     282    public static boolean isIndexable(Attributes atts)  
     283    { 
     284        boolean is_indexable = false; 
     285 
     286        String index = atts.getValue("index"); 
     287        if (index!=null) { 
     288        if (index.equals("1")) { 
     289            is_indexable = true; 
     290        } 
     291        } 
     292        return is_indexable; 
    281293    } 
    282294