Class ExternalTransformerConfig
java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.transformer.impl.ExternalTransformerConfig
- All Implemented Interfaces:
Labelable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe command to execute.Sets the environment variables.Gets metadata extraction patterns.getOnSet()Gets the property setter to use when a metadata value is set.The directory where to store temporary files sent to the external handler as file paths.inthashCode()setCommand(String command) The command to execute.setEnvironmentVariables(Map<String, String> environmentVariables) Sets the environment variables.setExtractionPatterns(List<RegexFieldValueExtractor> extractionPatterns) Sets metadata extraction patterns.setMetadataInputFormat(String metadataInputFormat) setMetadataOutputFormat(String metadataOutputFormat) setOnSet(PropertySetter onSet) Gets the property setter to use when a metadata value is set.setTempDir(Path tempDir) The directory where to store temporary files sent to the external handler as file paths.toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Field Details
-
TOKEN_INPUT
- See Also:
-
TOKEN_OUTPUT
- See Also:
-
TOKEN_INPUT_META
- See Also:
-
TOKEN_OUTPUT_META
- See Also:
-
TOKEN_REFERENCE
- See Also:
-
META_FORMAT_JSON
- See Also:
-
META_FORMAT_XML
- See Also:
-
META_FORMAT_PROPERTIES
- See Also:
-
-
Constructor Details
-
ExternalTransformerConfig
public ExternalTransformerConfig()
-
-
Method Details
-
getExtractionPatterns
Gets metadata extraction patterns. See class documentation.- Returns:
- extraction patterns
-
setExtractionPatterns
public ExternalTransformerConfig setExtractionPatterns(List<RegexFieldValueExtractor> extractionPatterns) Sets metadata extraction patterns. See class documentation.- Parameters:
extractionPatterns- extraction pattern- Returns:
- this instance
-
getCommand
The command to execute. Make sure to escape spaces in executable path and its arguments as well as other special command line characters.- Returns:
- the command
-
getEnvironmentVariables
Sets the environment variables. Clearing any previously assigned environment variables. Whennull, uses the current process environment variables (default).- Returns:
- environment variables or
nullif using the current process environment variables
-
getMetadataInputFormat
-
getMetadataOutputFormat
-
getTempDir
The directory where to store temporary files sent to the external handler as file paths.- Returns:
- temporary directory
-
getOnSet
Gets the property setter to use when a metadata value is set.- Returns:
- property setter
-
setCommand
The command to execute. Make sure to escape spaces in executable path and its arguments as well as other special command line characters.- Parameters:
command- the command- Returns:
this.
-
setEnvironmentVariables
Sets the environment variables. Clearing any previously assigned environment variables. Whennull, uses the current process environment variables (default).- Parameters:
environmentVariables- environment variables- Returns:
this.
-
setMetadataInputFormat
- Returns:
this.
-
setMetadataOutputFormat
- Returns:
this.
-
setTempDir
The directory where to store temporary files sent to the external handler as file paths.- Parameters:
tempDir- temporary directory- Returns:
this.
-
setOnSet
Gets the property setter to use when a metadata value is set.- Parameters:
onSet- property setter- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-