org.drools.spi
Interface Extractor
- All Superinterfaces:
- SemanticComponent
- All Known Subinterfaces:
- ConfigurableExtractor
- public interface Extractor
- extends SemanticComponent
Extracts new facts from existing facts.
- Author:
- bob mcwhirter
- See Also:
Tuple
,
Declaration
,
Extraction
getRequiredTupleMembers
public Declaration[] getRequiredTupleMembers()
- Retrieve the array of
Declaration
s required
by this Extractor
to perform its duties.
- Returns:
- The array of
Declarations
expected
on incoming Tuple
s.
extractFact
public java.lang.Object extractFact(Tuple tuple)
throws ExtractionException
- Extract a new fact from the incoming
Tuple
- Parameters:
tuple
- The source data tuple.- Returns:
- The newly extract fact object.
- Throws:
ExtractionException
- if an error occurs during
fact extraction activities.
Copyright © 2001-2002 The Werken Company. All Rights Reserved.