|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.IndexPaths
IndexPaths contains information about which parts of a document should be fulltext-indexed for a specified doctype. It basically keeps a list of paths to include and paths to exclude from indexing. Paths are specified using simple XPath syntax, e.g. //SPEECH will select any SPEECH elements, //title/@id will select all id attributes being children of title elements.
Field Summary | |
protected int |
depth
|
protected java.util.ArrayList |
excludePath
|
protected boolean |
includeAlphaNum
|
protected boolean |
includeAttributes
|
protected boolean |
includeByDefault
|
protected java.util.ArrayList |
includePath
|
protected MutableStringTokenizer |
tokenizer
|
Constructor Summary | |
IndexPaths(boolean def)
Constructor for the IndexPaths object |
Method Summary | |
void |
addExclude(java.lang.String path)
Add a path to the list of excludes |
void |
addInclude(java.lang.String path)
Add a path to the list of includes |
boolean |
getIncludeAlphaNum()
Include alpha-numeric data? |
boolean |
getIncludeAttributes()
Include attribute values? |
int |
getIndexDepth()
|
boolean |
isSelective()
Returns false if all elements are indexed, true if indexation is selective. |
boolean |
match(java.lang.CharSequence path)
Check if a given path should be indexed. |
void |
setIncludeAlphaNum(boolean index)
Include alpha-numeric data, i.e. |
void |
setIncludeAttributes(boolean index)
Include attribute values? |
void |
setIndexDepth(int depth)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ArrayList includePath
protected java.util.ArrayList excludePath
protected boolean includeByDefault
protected boolean includeAttributes
protected boolean includeAlphaNum
protected int depth
protected MutableStringTokenizer tokenizer
Constructor Detail |
public IndexPaths(boolean def)
def
- if set to true, include everything by default. In this case
use exclude elements to specify the excluded parts.Method Detail |
public void addInclude(java.lang.String path)
path
- The feature to be added to the Include attributepublic void addExclude(java.lang.String path)
path
- DOCUMENT ME!public boolean isSelective()
public void setIncludeAttributes(boolean index)
index
- The new includeAttributes valuepublic boolean getIncludeAttributes()
public void setIncludeAlphaNum(boolean index)
index
- include alpha-numeric datapublic boolean getIncludeAlphaNum()
public int getIndexDepth()
public void setIndexDepth(int depth)
public boolean match(java.lang.CharSequence path)
path
- path to the node
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |