Last change
on this file since 21000 was 5956, checked in by kjdon, 20 years ago |
new files for making a simple lucene collection from xml documents
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
595 bytes
|
Line | |
---|
1 | /** XMLTagInfo
|
---|
2 | * contains any methods that are specific to what kind of XML you are working on
|
---|
3 | */
|
---|
4 |
|
---|
5 | public class XMLTagInfo {
|
---|
6 |
|
---|
7 | public static boolean isIndexable(String tag) {
|
---|
8 | if (tag.equals("chapter") || tag.equals("part") || tag.equals("frontmatter") || tag.equals("appendix") || tag.equals("index") || tag.equals("glossary") || tag.equals("biblio")) {
|
---|
9 | return true;
|
---|
10 | }
|
---|
11 | return false;
|
---|
12 | }
|
---|
13 |
|
---|
14 | public static boolean isScopable(String tag) {
|
---|
15 |
|
---|
16 | if (tag.equals("bookbody") || tag.equals("frontmatter") || tag.equals("backmatter")) {
|
---|
17 | return true;
|
---|
18 | }
|
---|
19 | return false;
|
---|
20 | }
|
---|
21 |
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.