FileDocCategorySizeDatePackage
IndexableStub.javaAPI DocApache Lucene 2.1.03037Wed Feb 14 10:46:02 GMT 2007org.apache.lucene.gdata.search.analysis

IndexableStub

public class IndexableStub extends Indexable
author
Simon Willnauer

Fields Summary
private String
content
private boolean
retNull
int
times
int
count
Constructors Summary
IndexableStub()

     
        super(null);

    
Methods Summary
public org.w3c.dom.NodeapplyPath(java.lang.String xPath)

        if(xPath == null)
            throw new XPathExpressionException("path is null");
        if(this.retNull)
            return null;
        if(times == count)
            return null;
        times++;
        return (Node)Proxy.newProxyInstance(this.getClass().getClassLoader(),new Class[] {Node.class,NamedNodeMap.class},new Handler(this.content));
        
    
public voidreturnProxyTimes(int times)

        this.times = times;
    
public voidsetReturnNull(boolean returnNull)

        this.retNull = returnNull;
    
public voidsetReturnValueTextContent(java.lang.String content)

        this.content = content;