|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.any23.extractor.ExtractionParameters
public class ExtractionParameters
This class models the parameters to be used to perform an extraction.
Any23| Nested Class Summary | |
|---|---|
static class |
ExtractionParameters.ValidationMode
Declares the supported validation actions. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||