Changeset 16439


Ignore:
Timestamp:
2008-07-16T17:31:39+12:00 (13 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 deleted
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.