Package org.apache.tika.parser.multiple
Enum AbstractMultipleParser.MetadataPolicy
- java.lang.Object
- 
- java.lang.Enum<AbstractMultipleParser.MetadataPolicy>
- 
- org.apache.tika.parser.multiple.AbstractMultipleParser.MetadataPolicy
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<AbstractMultipleParser.MetadataPolicy>
 - Enclosing class:
- AbstractMultipleParser
 
 public static enum AbstractMultipleParser.MetadataPolicy extends Enum<AbstractMultipleParser.MetadataPolicy> The various strategies for handling metadata emitted by multiple parsers. Note that not all will be supported by all subclasses.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description DISCARD_ALLBefore moving onto another parser, throw away all previously seen metadataFIRST_WINSThe first parser to output a given key wins, merge in non-clashing other keysKEEP_ALLWhere multiple parsers output a given key, store all their different (unique) valuesLAST_WINSThe last parser to output a given key wins, overriding previous parser values for a clashing key.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractMultipleParser.MetadataPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractMultipleParser.MetadataPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
DISCARD_ALLpublic static final AbstractMultipleParser.MetadataPolicy DISCARD_ALL Before moving onto another parser, throw away all previously seen metadata
 - 
FIRST_WINSpublic static final AbstractMultipleParser.MetadataPolicy FIRST_WINS The first parser to output a given key wins, merge in non-clashing other keys
 - 
LAST_WINSpublic static final AbstractMultipleParser.MetadataPolicy LAST_WINS The last parser to output a given key wins, overriding previous parser values for a clashing key.
 - 
KEEP_ALLpublic static final AbstractMultipleParser.MetadataPolicy KEEP_ALL Where multiple parsers output a given key, store all their different (unique) values
 
- 
 - 
Method Detail- 
valuespublic static AbstractMultipleParser.MetadataPolicy[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractMultipleParser.MetadataPolicy c : AbstractMultipleParser.MetadataPolicy.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static AbstractMultipleParser.MetadataPolicy valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-