Last change
on this file since 8521 was 8521, checked in by davidb, 20 years ago |
java bridge from how greensotne likes to do indexing and querying to lucenes classes
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
623 bytes
|
Rev | Line | |
---|
[8521] | 1 | /** XMLTagInfo
|
---|
| 2 | * contains any methods that are specific to what kind of XML you are working on
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | import org.xml.sax.Attributes;
|
---|
| 6 |
|
---|
| 7 | public class XMLTagInfo {
|
---|
| 8 |
|
---|
| 9 | public static boolean isDocumentLevel(Attributes atts)
|
---|
| 10 | {
|
---|
| 11 | boolean is_doc_level = false;
|
---|
| 12 | String id = atts.getValue("gs2:id");
|
---|
| 13 | if (id!=null) {
|
---|
| 14 | is_doc_level = true;
|
---|
| 15 | }
|
---|
| 16 | return is_doc_level;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public static boolean isIndexable(Attributes atts)
|
---|
| 20 | {
|
---|
| 21 | boolean is_indexable = false;
|
---|
| 22 |
|
---|
| 23 | String index = atts.getValue("index");
|
---|
| 24 | if (index!=null) {
|
---|
| 25 | if (index.equals("1")) {
|
---|
| 26 | is_indexable = true;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | return is_indexable;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.