|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lenya.lucene.index.AbstractDocumentCreator
org.apache.lenya.lucene.index.ConfigurableDocumentCreator
public class ConfigurableDocumentCreator
Uses XSLT to transform a XML into a Lucene document
Field Summary | |
---|---|
static java.lang.String |
LUCENE_NAMESPACE
|
static java.lang.String |
XHTML_NAMESPACE
|
Constructor Summary | |
---|---|
ConfigurableDocumentCreator(java.lang.String stylesheet)
Creates a new ConfigurableDocumentCreator object. |
Method Summary | |
---|---|
protected void |
dumpLuceneDocument(java.io.File file,
java.io.Writer writer)
Writes the lucene XML document to a file. |
static java.lang.String |
getBodyText(java.io.File file)
DOCUMENT ME! |
org.apache.lucene.document.Document |
getDocument(java.io.File file,
java.io.File htdocsDumpDir)
Transform source document into lucene document and generate a Lucene Document instance |
java.lang.String |
getStylesheet()
DOCUMENT ME! |
static java.lang.String |
getText(org.w3c.dom.Node node)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LUCENE_NAMESPACE
public static final java.lang.String XHTML_NAMESPACE
Constructor Detail |
---|
public ConfigurableDocumentCreator(java.lang.String stylesheet)
stylesheet
- DOCUMENT ME!Method Detail |
---|
public java.lang.String getStylesheet()
public org.apache.lucene.document.Document getDocument(java.io.File file, java.io.File htdocsDumpDir) throws java.lang.Exception
getDocument
in interface DocumentCreator
getDocument
in class AbstractDocumentCreator
file
- DOCUMENT ME!htdocsDumpDir
- DOCUMENT ME!
java.lang.Exception
- DOCUMENT ME!protected void dumpLuceneDocument(java.io.File file, java.io.Writer writer) throws java.io.IOException
java.io.IOException
public static java.lang.String getText(org.w3c.dom.Node node)
node
- DOCUMENT ME!
public static java.lang.String getBodyText(java.io.File file) throws java.lang.Exception
file
- DOCUMENT ME!
java.lang.Exception
- DOCUMENT ME!
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |