FileDocCategorySizeDatePackage
Indexable.javaAPI DocApache Lucene 2.1.02742Wed Feb 14 10:46:04 GMT 2007org.apache.lucene.gdata.search.analysis

Indexable

public abstract class Indexable extends Object
This class wraps the access to the GData entities to access them via xpath expressions. An arbitrary valid Xpath expression can be passed to the applyPath method to access an element, attribute etc. in the gdata entity.
author
Simon Willnauer
param
- a subtype of {@link org.w3c.dom.Node} returned by the applyPath method
param
- a subtype of {@link org.apache.lucene.gdata.data.ServerBaseEntry}

Fields Summary
protected org.apache.lucene.gdata.data.ServerBaseEntry
applyAble
Constructors Summary
Indexable(I applyAble)

param
applyAble

        this.applyAble = applyAble;
    
Methods Summary
public abstract RapplyPath(java.lang.String xPath)

param
xPath - a valid xpath expression
return
- the requested element R
throws
XPathExpressionException

public static org.apache.lucene.gdata.search.analysis.IndexablegetIndexable(I entry)
Factory method to create new Indexable instances.

param
- a subtype of {@link org.w3c.dom.Node} returned by the applyPath method
param
- a subtype of {@link org.apache.lucene.gdata.data.ServerBaseEntry}
param
entry - the entry to wrap in a Indexable
return
- a new instance of Indexable to access the entry via Xpath
throws
NotIndexableException - if I can not be parsed.

        return new DomIndexable<R, I>(entry);