|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tika.metadata.Metadata
public class Metadata
A multi-valued metadata container.
| Field Summary | |
|---|---|
static String |
CONTRIBUTOR
Deprecated. use TikaCoreProperties#CONTRIBUTOR |
static String |
COVERAGE
Deprecated. use TikaCoreProperties#COVERAGE |
static String |
CREATOR
Deprecated. use TikaCoreProperties#CREATOR |
static Property |
DATE
Deprecated. use TikaCoreProperties#CREATED |
static String |
DESCRIPTION
Deprecated. use TikaCoreProperties#DESCRIPTION |
static String |
FORMAT
Deprecated. use TikaCoreProperties#FORMAT |
static String |
IDENTIFIER
Deprecated. use TikaCoreProperties#IDENTIFIER |
static String |
LANGUAGE
Deprecated. use TikaCoreProperties#LANGUAGE |
static String |
MODIFIED
Deprecated. use TikaCoreProperties#MODIFIED |
static String |
NAMESPACE_PREFIX_DELIMITER
The common delimiter used between the namespace abbreviation and the property name |
static String |
PUBLISHER
Deprecated. use TikaCoreProperties#PUBLISHER |
static String |
RELATION
Deprecated. use TikaCoreProperties#RELATION |
static String |
RIGHTS
Deprecated. use TikaCoreProperties#RIGHTS |
static String |
SOURCE
Deprecated. use TikaCoreProperties#SOURCE |
static String |
SUBJECT
Deprecated. use TikaCoreProperties#KEYWORDS |
static String |
TITLE
Deprecated. use TikaCoreProperties#TITLE |
static String |
TYPE
Deprecated. use TikaCoreProperties#TYPE |
| Fields inherited from interface org.apache.tika.metadata.CreativeCommons |
|---|
LICENSE_LOCATION, LICENSE_URL, WORK_TYPE |
| Fields inherited from interface org.apache.tika.metadata.Geographic |
|---|
ALTITUDE, LATITUDE, LONGITUDE |
| Fields inherited from interface org.apache.tika.metadata.HttpHeaders |
|---|
CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, LAST_MODIFIED, LOCATION |
| Fields inherited from interface org.apache.tika.metadata.Message |
|---|
MESSAGE_BCC, MESSAGE_CC, MESSAGE_FROM, MESSAGE_RECIPIENT_ADDRESS, MESSAGE_TO |
| Fields inherited from interface org.apache.tika.metadata.MSOffice |
|---|
APPLICATION_NAME, APPLICATION_VERSION, AUTHOR, CATEGORY, CHARACTER_COUNT, CHARACTER_COUNT_WITH_SPACES, COMMENTS, COMPANY, CONTENT_STATUS, CREATION_DATE, EDIT_TIME, IMAGE_COUNT, KEYWORDS, LAST_AUTHOR, LAST_PRINTED, LAST_SAVED, LINE_COUNT, MANAGER, NOTES, OBJECT_COUNT, PAGE_COUNT, PARAGRAPH_COUNT, PRESENTATION_FORMAT, REVISION_NUMBER, SECURITY, SLIDE_COUNT, TABLE_COUNT, TEMPLATE, TOTAL_TIME, USER_DEFINED_METADATA_NAME_PREFIX, VERSION, WORD_COUNT |
| Fields inherited from interface org.apache.tika.metadata.ClimateForcast |
|---|
ACKNOWLEDGEMENT, COMMAND_LINE, COMMENT, CONTACT, CONVENTIONS, EXPERIMENT_ID, HISTORY, INSTITUTION, MODEL_NAME_ENGLISH, PROGRAM_ID, PROJECT_ID, REALIZATION, REFERENCES, TABLE_ID |
| Fields inherited from interface org.apache.tika.metadata.TIFF |
|---|
BITS_PER_SAMPLE, EQUIPMENT_MAKE, EQUIPMENT_MODEL, EXPOSURE_TIME, F_NUMBER, FLASH_FIRED, FOCAL_LENGTH, IMAGE_LENGTH, IMAGE_WIDTH, ISO_SPEED_RATINGS, ORIENTATION, ORIGINAL_DATE, RESOLUTION_HORIZONTAL, RESOLUTION_UNIT, RESOLUTION_VERTICAL, SAMPLES_PER_PIXEL, SOFTWARE |
| Fields inherited from interface org.apache.tika.metadata.TikaMetadataKeys |
|---|
EMBEDDED_RELATIONSHIP_ID, PROTECTED, RESOURCE_NAME_KEY |
| Fields inherited from interface org.apache.tika.metadata.TikaMimeKeys |
|---|
MIME_TYPE_MAGIC, TIKA_MIME_FILE |
| Constructor Summary | |
|---|---|
Metadata()
Constructs a new, empty metadata. |
|
| Method Summary | |
|---|---|
void |
add(Property property,
String value)
Add a metadata property/value mapping. |
void |
add(String name,
String value)
Add a metadata name/value mapping. |
boolean |
equals(Object o)
|
String |
get(Property property)
Returns the value (if any) of the identified metadata property. |
String |
get(String name)
Get the value associated to a metadata name. |
Date |
getDate(Property property)
Returns the value of the identified Date based metadata property. |
Integer |
getInt(Property property)
Returns the value of the identified Integer based metadata property. |
String[] |
getValues(Property property)
Get the values associated to a metadata name. |
String[] |
getValues(String name)
Get the values associated to a metadata name. |
boolean |
isMultiValued(Property property)
Returns true if named value is multivalued. |
boolean |
isMultiValued(String name)
Returns true if named value is multivalued. |
String[] |
names()
Returns an array of the names contained in the metadata. |
void |
remove(String name)
Remove a metadata and all its associated values. |
void |
set(Property property,
Date date)
Sets the date value of the identified metadata property. |
void |
set(Property property,
double value)
Sets the real or rational value of the identified metadata property. |
void |
set(Property property,
int value)
Sets the integer value of the identified metadata property. |
void |
set(Property property,
String value)
Sets the value of the identified metadata property. |
void |
set(Property property,
String[] values)
Sets the values of the identified metadata property. |
void |
set(String name,
String value)
Set metadata name/value. |
void |
setAll(Properties properties)
Copy All key-value pairs from properties. |
int |
size()
Returns the number of metadata names in this metadata. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAMESPACE_PREFIX_DELIMITER
public static final String FORMAT
public static final String IDENTIFIER
public static final String MODIFIED
public static final String CONTRIBUTOR
public static final String COVERAGE
public static final String CREATOR
public static final Property DATE
public static final String DESCRIPTION
public static final String LANGUAGE
public static final String PUBLISHER
public static final String RELATION
public static final String RIGHTS
public static final String SOURCE
public static final String SUBJECT
public static final String TITLE
public static final String TYPE
| Constructor Detail |
|---|
public Metadata()
| Method Detail |
|---|
public boolean isMultiValued(Property property)
property - metadata property
public boolean isMultiValued(String name)
name - name of metadata
public String[] names()
public String get(String name)
name - of the metadata.
public String get(Property property)
property - property definition
null if the property is not setpublic Integer getInt(Property property)
property - simple integer property definition
null if the property is not set, or not a valid Integerpublic Date getDate(Property property)
property - simple date property definition
null if the property is not set, or not a valid Datepublic String[] getValues(Property property)
property - of the metadata.
public String[] getValues(String name)
name - of the metadata.
public void add(String name,
String value)
name - the metadata name.value - the metadata value.
public void add(Property property,
String value)
property - the metadata property.value - the metadata value.public void setAll(Properties properties)
properties - properties to copy from
public void set(String name,
String value)
null, then the
metadata entry is removed.
name - the metadata name.value - the metadata value, or null
public void set(Property property,
String value)
property - property definitionvalue - property value
public void set(Property property,
String[] values)
property - property definitionvalues - property values
public void set(Property property,
int value)
property - simple integer property definitionvalue - property value
public void set(Property property,
double value)
property - simple real or simple rational property definitionvalue - property value
public void set(Property property,
Date date)
property - simple integer property definitiondate - property valuepublic void remove(String name)
name - metadata name to removepublic int size()
public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||