Modifier and Type | Field and Description |
---|---|
static String |
COMPRESSION_TYPE_METADATA_KEY |
static String |
DURATION_METDATA_KEY |
Constructor and Description |
---|
MetacardCreator() |
Modifier and Type | Method and Description |
---|---|
static Metacard |
createMetacard(org.apache.tika.metadata.Metadata metadata,
String id,
String metadataXml,
MetacardType metacardType) |
static Metacard |
createMetacard(org.apache.tika.metadata.Metadata metadata,
String id,
String metadataXml,
MetacardType metacardType,
boolean useMetadataTitle) |
public static final String COMPRESSION_TYPE_METADATA_KEY
public static final String DURATION_METDATA_KEY
public static Metacard createMetacard(org.apache.tika.metadata.Metadata metadata, String id, String metadataXml, MetacardType metacardType)
metadata
- the Metadata
object containing the metadata relevant to the metacard,
must not be nullid
- the value for the Metacard.ID
attribute that should be set in the generated
Metacard
, may be nullmetadataXml
- the XML for the Metacard.METADATA
attribute that should be set in
the generated Metacard
, may be nullmetacardType
- The MetacardType
for the created metacardMetacard
public static Metacard createMetacard(org.apache.tika.metadata.Metadata metadata, String id, String metadataXml, MetacardType metacardType, boolean useMetadataTitle)
metadata
- the Metadata
object containing the metadata relevant to the metacard,
must not be nullid
- the value for the Metacard.ID
attribute that should be set in the generated
Metacard
, may be nullmetadataXml
- the XML for the Metacard.METADATA
attribute that should be set in
the generated Metacard
, may be nullmetacardType
- The MetacardType
for the created metacarduseMetadataTitle
- If true then use title from the metadata as the metacard titleMetacard
This work is licensed under a Creative Commons Attribution 4.0 International License.