public class ExtractionParameters extends Object
org.apache.any23.Any23| Modifier and Type | Class and Description |
|---|---|
static class |
ExtractionParameters.ValidationMode
Declares the supported validation actions.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTRACTION_CONTEXT_URI_PROPERTY |
static String |
METADATA_DOMAIN_PER_ENTITY_FLAG |
static String |
METADATA_NESTING_FLAG |
static String |
METADATA_TIMESIZE_FLAG |
| Constructor and Description |
|---|
ExtractionParameters(Configuration configuration,
ExtractionParameters.ValidationMode extractionMode)
Constructor.
|
ExtractionParameters(Configuration configuration,
ExtractionParameters.ValidationMode extractionMode,
boolean nesting)
Constructor, allows to set explicitly the value for flag
SingleDocumentExtraction#METADATA_NESTING_FLAG. |
ExtractionParameters(Configuration configuration,
ExtractionParameters.ValidationMode extractionMode,
Map<String,Boolean> extractionFlags,
Map<String,String> extractionProperties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getFlag(String flagName)
Returns the value of the specified extraction flag, if the flag is undefined
it will be retrieved by the default
Configuration. |
String |
getProperty(String propertyName)
Returns the value of the specified extraction property, if the property is undefined
it will be retrieved by the default
Configuration. |
int |
hashCode() |
boolean |
isFix() |
boolean |
isValidate() |
static ExtractionParameters |
newDefault()
Creates the default extraction parameters with
DefaultConfiguration. |
static ExtractionParameters |
newDefault(Configuration c) |
Boolean |
setFlag(String flagName,
boolean value)
Sets the value for an extraction flag.
|
String |
setProperty(String propertyName,
String propertyValue)
Sets the value for an extraction property.
|
public static final String METADATA_DOMAIN_PER_ENTITY_FLAG
public static final String METADATA_NESTING_FLAG
public static final String METADATA_TIMESIZE_FLAG
public static final String EXTRACTION_CONTEXT_URI_PROPERTY
public ExtractionParameters(Configuration configuration, ExtractionParameters.ValidationMode extractionMode, Map<String,Boolean> extractionFlags, Map<String,String> extractionProperties)
configuration - underlying configuration.extractionMode - specifies the required extraction mode.extractionFlags - map of specific flags used for extraction. If not specified they will
be retrieved by the default Configuration.extractionProperties - map of specific properties used for extraction. If not specified
they will ne retrieved by the default Configuration.public ExtractionParameters(Configuration configuration, ExtractionParameters.ValidationMode extractionMode)
configuration - underlying configuration.extractionMode - specifies the required extraction mode.public ExtractionParameters(Configuration configuration, ExtractionParameters.ValidationMode extractionMode, boolean nesting)
SingleDocumentExtraction#METADATA_NESTING_FLAG.configuration - the underlying configuration.extractionMode - specifies the required extraction mode.nesting - if true nesting triples will be expressed.public static final ExtractionParameters newDefault(Configuration c)
c - the underlying configuration.public static final ExtractionParameters newDefault()
DefaultConfiguration.public boolean isValidate()
true if validation is active.public boolean isFix()
true if fix is active.public boolean getFlag(String flagName)
Configuration.flagName - name of flag.public Boolean setFlag(String flagName, boolean value)
flagName - flag name.value - new flag value.public String getProperty(String propertyName)
Configuration.propertyName - the property name.IllegalArgumentException - if the property name is not defined in configuration.public String setProperty(String propertyName, String propertyValue)
propertyName - the property name.propertyValue - the property value.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.