public class BasicInformationExtractionPreparer extends Object implements InformationExtractionPreparer
Constructor and Description |
---|
BasicInformationExtractionPreparer()
Default constructor for an BasicInformationExtractionPreparer.
|
Modifier and Type | Method and Description |
---|---|
void |
applyOverrideSettings()
Apply the override settings.
|
protected Document |
createTokensDocument(InformationExtraction ext)
Create a tokens Document.
|
protected AccessControlList |
determineTokensDocumentAcl(InformationExtraction ext)
Determine the ACL to use for the Tokens document.
|
protected Reader |
determineTokensDocumentContent(InformationExtraction ext)
Determine the content (expressed as a Reader) to use for the Tokens document.
|
protected Format |
determineTokensDocumentFormat(InformationExtraction ext)
Determine the Format to use for the Tokens document.
|
protected String |
determineTokensDocumentName(InformationExtraction ext)
Determine the Name to use for the Tokens document.
|
protected Folder |
determineTokensDocumentParentFolder(InformationExtraction ext)
Determine the parent Folder to use for the Tokens document.
|
InformationExtraction |
getInformationExtraction()
Gets the InformationExtraction being processed.
|
AttributeValueTable |
getSettings()
Gets the effective settings for the current parse.
|
void |
initialize(InformationExtractionPreparerSpecification spec)
Initialize this instance.
|
void |
prepare(InformationExtraction ext)
Prepare an InformationExtraction.
|
void |
setInformationExtraction(InformationExtraction ext)
Sets the InformationExtraction being processed.
|
public BasicInformationExtractionPreparer()
public void initialize(InformationExtractionPreparerSpecification spec) throws IfsException
Called immediately after construction (via the default constructor) and used so that the implementation can initialize session-independent state. This instance may be subsequently used concurrently by multiple threads and sessions. A session can be retrieved from the specification object, but it must not be cached. The specification also has the implementation and instance specific parameters which should be cached in a session independent way.
initialize
in interface InformationExtractionPreparer
spec
- The specification for a given implementation.IfsException
- if the operation fails.public AttributeValueTable getSettings()
public InformationExtraction getInformationExtraction()
public void setInformationExtraction(InformationExtraction ext)
ext
- the InformationExtraction being processedpublic void applyOverrideSettings() throws IfsException
IfsException
- if the operation failspublic void prepare(InformationExtraction ext) throws IfsException
prepare
in interface InformationExtractionPreparer
ext
- the target InformationExtractionIfsException
- if the operation failsprotected Document createTokensDocument(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Reader determineTokensDocumentContent(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Format determineTokensDocumentFormat(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected String determineTokensDocumentName(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected AccessControlList determineTokensDocumentAcl(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Folder determineTokensDocumentParentFolder(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsCopyright © 2023. All rights reserved.