|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.firstpartners.rp.back.extractor.GenericDataExtractor
net.firstpartners.rp.back.extractor.XmlDataExtractor
public class XmlDataExtractor
Extracts information from an XML file in a format that can be added to an Index.
| Field Summary | |
|---|---|
private boolean |
linkRequired
Links are required |
private java.lang.String |
linkTags
Link tags |
protected org.apache.log4j.Logger |
logger
Logger for this class and subclasses |
| Constructor Summary | |
|---|---|
XmlDataExtractor()
|
|
| Method Summary | |
|---|---|
int |
canHandle(INewInformation info)
How well the plugin thinks it can handle a new piece of information |
void |
convert(INewInformation info)
Comvert the xml file information into a list of documents |
java.lang.String |
getLinkTags()
|
java.lang.String |
getOriginalUri()
The original place where we got this data |
boolean |
isLinkRequired()
|
void |
onLoad()
Carry out any initiation tasks |
void |
setLinkRequired(boolean linkRequired)
|
void |
setLinkTags(java.lang.String linkTags)
|
| Methods inherited from class net.firstpartners.rp.back.extractor.GenericDataExtractor |
|---|
getListExtensions, getMaxLengthSummary, getMinLengthWord, getNotIgnoreChars, getReplaceChars, getType, setListExtensions, setMaxLengthSummary, setMinLengthWord, setNotIgnoreChars, setReplaceChars, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.log4j.Logger logger
private boolean linkRequired
private java.lang.String linkTags
| Constructor Detail |
|---|
public XmlDataExtractor()
| Method Detail |
|---|
public java.lang.String getOriginalUri()
getOriginalUri in interface IDataExtractorgetOriginalUri in class GenericDataExtractorpublic void onLoad()
onLoad in interface IPluginonLoad in class GenericDataExtractorpublic int canHandle(INewInformation info)
canHandle in interface IDataExtractorcanHandle in class GenericDataExtractorinfo -
public void convert(INewInformation info)
throws RpException
convert in interface IDataExtractorconvert in class GenericDataExtractorinfo - Information to be converted
RpException - If an error occur in xml processingpublic boolean isLinkRequired()
public void setLinkRequired(boolean linkRequired)
linkRequired - The linkRequired to set.public java.lang.String getLinkTags()
public void setLinkTags(java.lang.String linkTags)
linkTags - The linkTags to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||