|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.document.tika.TikaField
public class TikaField
A Tika field represented inside MG4J.
Constructor Summary | |
---|---|
TikaField()
Creates a new Tika field corresponding to the Tika content: its Tika name is null and its MG4J name text. |
|
TikaField(String tikaName)
Creates a new Tika field with given Tika name and the same MG4J name. |
|
TikaField(String mg4jName,
String tikaName)
Creates a new Tika field with given Tika name and given MG4J name. |
Method Summary | |
---|---|
String |
contentFromMetadata(org.apache.tika.metadata.Metadata metadata)
Gets the content of this Tika field from the given metadata. |
DocumentFactory.FieldType |
getType()
The type of this field (currently only DocumentFactory.FieldType.TEXT is supported). |
boolean |
isBody()
Returns true if this field represents the Tika content. |
String |
mg4jName()
The MG4J name of this field. |
String |
tikaName()
The Tika name of this field ( null for the Tika content). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TikaField()
null
and its MG4J name text.
public TikaField(String tikaName)
tikaName
- the Tika name of the field, which will be used also as MG4J name.public TikaField(String mg4jName, String tikaName)
mg4jName
- the MG4J name of the field.tikaName
- the Tika name of the field.Method Detail |
---|
public String mg4jName()
public String tikaName()
null
for the Tika content).
public String contentFromMetadata(org.apache.tika.metadata.Metadata metadata)
metadata
- the metadata.
public DocumentFactory.FieldType getType()
DocumentFactory.FieldType.TEXT
is supported).
public boolean isBody()
true
if this field represents the Tika content.
true
iff this field is the Tika content.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |