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