com.raritantechnologies.clearforest.factExtractors
Class MergerExtractor
java.lang.Object
com.raritantechnologies.clearforest.factExtractors.MergerExtractor
- All Implemented Interfaces:
- IConfigurable, IFactRelationshipExtractor, IResultParser
- public class MergerExtractor
- extends java.lang.Object
- implements IFactRelationshipExtractor
|
Method Summary |
void |
addFactRelationships(org.w3c.dom.Element documentElement,
java.util.Map termMap)
Adds fact relationships to a term map from a tagged document. |
IResultSet |
getFactTermResults(IResult result,
java.lang.String termField,
java.lang.String associatedField,
java.lang.String factRelationshipField,
java.lang.String[] additionalFields)
Extracts a set of results with a term, associated term and the fact relationship
between them from a result object. |
java.lang.String |
getRelationshipType()
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
IResult |
parse(java.lang.String dataString)
Create an IResult object from the formatted data string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergerExtractor
public MergerExtractor()
addFactRelationships
public void addFactRelationships(org.w3c.dom.Element documentElement,
java.util.Map termMap)
- Description copied from interface:
IFactRelationshipExtractor
- Adds fact relationships to a term map from a tagged document.
- Specified by:
addFactRelationships in interface IFactRelationshipExtractor
parse
public IResult parse(java.lang.String dataString)
- Description copied from interface:
IResultParser
- Create an
IResult object from the formatted data string.
- Specified by:
parse in interface IResultParser
getFactTermResults
public IResultSet getFactTermResults(IResult result,
java.lang.String termField,
java.lang.String associatedField,
java.lang.String factRelationshipField,
java.lang.String[] additionalFields)
- Description copied from interface:
IFactRelationshipExtractor
- Extracts a set of results with a term, associated term and the fact relationship
between them from a result object. In general these will be reciprical relationships.
- Specified by:
getFactTermResults in interface IFactRelationshipExtractor
getRelationshipType
public java.lang.String getRelationshipType()
- Specified by:
getRelationshipType in interface IFactRelationshipExtractor
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable