|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mayo.informatics.indexer.api.generators.DocumentFromXSLGenerator
public class DocumentFromXSLGenerator
This class will transform an xml document with the provided xsd into a lucene document. The resulting XML must pass the schema provided in the resources folder.
Constructor Summary | |
---|---|
DocumentFromXSLGenerator(java.io.File xslFile,
boolean validate)
Construct this document creator from a xsd file. |
|
DocumentFromXSLGenerator(javax.xml.transform.stream.StreamSource xslFile,
boolean validate)
Construct this document creator from a streamSource that is the xsd file |
|
DocumentFromXSLGenerator(java.lang.String xslFileLocation,
boolean validate)
Construct this document creator from a xsd file at the location of xslFileLocation |
Method Summary | |
---|---|
org.apache.lucene.document.Document |
create(java.io.File file)
Creates an indexer ready document from an xml file on disk. |
org.apache.lucene.document.Document |
create(javax.xml.transform.stream.StreamSource source)
Creates a indexer ready document from an InputSource (probably a stream) |
org.apache.lucene.document.Document |
create(java.lang.String fileLocation)
Creates an indexer ready document from a file whos located at fileLocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentFromXSLGenerator(javax.xml.transform.stream.StreamSource xslFile, boolean validate) throws InternalErrorException
xslFile
- The file to perform the transfrom withvalidate
- whether or not to validate the resulting transformation
InternalErrorException
- If something goes wrong while initializingpublic DocumentFromXSLGenerator(java.lang.String xslFileLocation, boolean validate) throws InternalErrorException
xslFileLocation
- The file to perform transforms withvalidate
- whether or not to validate the resulting xml
InternalErrorException
- If something goes wrong initializingpublic DocumentFromXSLGenerator(java.io.File xslFile, boolean validate) throws InternalErrorException
xslFile
- The file to perform transforms withvalidate
- whether or not to validate the resulting xml
InternalErrorException
- If something goes wrong initializingMethod Detail |
---|
public org.apache.lucene.document.Document create(java.io.File file) throws java.io.FileNotFoundException, ParsingException, ReadingException, TransformException
file
- The file to index.
java.io.FileNotFoundException
ParsingException
ReadingException
TransformException
public org.apache.lucene.document.Document create(java.lang.String fileLocation) throws java.io.FileNotFoundException, ParsingException, ReadingException, TransformException
fileLocation
- Where to read the file from
java.io.FileNotFoundException
ParsingException
ReadingException
TransformException
public org.apache.lucene.document.Document create(javax.xml.transform.stream.StreamSource source) throws ParsingException, ReadingException, TransformException
source
- The source to index
ParsingException
ReadingException
TransformException
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |