org.apache.lucene.gdata.search.analysis
Class DomIndexable<R extends Node,I extends ServerBaseEntry>

java.lang.Object
  extended by org.apache.lucene.gdata.search.analysis.Indexable<R,I>
      extended by org.apache.lucene.gdata.search.analysis.DomIndexable<R,I>
Type Parameters:
R - - a subtype of Node returned by the applyPath method
I - - a subtype of ServerBaseEntry

public class DomIndexable<R extends Node,I extends ServerBaseEntry>
extends Indexable<R,I>

Indexable implementation using the W3C Dom API and JAXP XPath engine

Author:
Simon Willnauer

Field Summary
 
Fields inherited from class org.apache.lucene.gdata.search.analysis.Indexable
applyAble
 
Constructor Summary
DomIndexable(I applyAble)
           
 
Method Summary
 R applyPath(String expression)
           
 
Methods inherited from class org.apache.lucene.gdata.search.analysis.Indexable
getIndexable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomIndexable

public DomIndexable(I applyAble)
             throws NotIndexableException
Parameters:
applyAble -
Throws:
NotIndexableException
Method Detail

applyPath

public R applyPath(String expression)
                         throws javax.xml.xpath.XPathExpressionException
Specified by:
applyPath in class Indexable<R extends Node,I extends ServerBaseEntry>
Parameters:
expression - - a valid xpath expression
Returns:
- the requested element R
Throws:
javax.xml.xpath.XPathExpressionException
See Also:
Indexable.applyPath(java.lang.String)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.