it.unimi.di.mg4j.document.tika
Class GreedyTikaField

java.lang.Object
  extended by it.unimi.di.mg4j.document.tika.TikaField
      extended by it.unimi.di.mg4j.document.tika.GreedyTikaField
All Implemented Interfaces:
Serializable

public class GreedyTikaField
extends TikaField

The set of all Tika metadata represented as a single field inside MG4J.

When using an AutoDetectDocumentFactory or any other factory in which metadata fields are user-definable or otherwise variable, it is impossible to provide a static listing of all available fields, as they depend on the actual factory used to parse the document. In this case, an instance of this class is used to return some useful data to the caller.

See Also:
Serialized Form

Field Summary
static String NAME
           
 
Constructor Summary
GreedyTikaField(String tikaName)
           
 
Method Summary
 String contentFromMetadata(org.apache.tika.metadata.Metadata metadata)
          Gets the content of this Tika field from the given metadata.
 
Methods inherited from class it.unimi.di.mg4j.document.tika.TikaField
getType, isBody, mg4jName, tikaName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static String NAME
Constructor Detail

GreedyTikaField

public GreedyTikaField(String tikaName)
Method Detail

contentFromMetadata

public String contentFromMetadata(org.apache.tika.metadata.Metadata metadata)
Description copied from class: TikaField
Gets the content of this Tika field from the given metadata.

Overrides:
contentFromMetadata in class TikaField
Parameters:
metadata - the metadata.
Returns:
the content of this Tika field.