Package org.apache.tika.metadata
Class Property
java.lang.Object
org.apache.tika.metadata.Property
- All Implemented Interfaces:
Comparable<Property>
@Deprecated(since="2026-04-30")
public final class Property
extends Object
implements Comparable<Property>
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
XMP property definition. Each instance of this class defines a single
metadata property like "dc:format". In addition to the property name,
the
value type and category (internal or external)
of the property are included in the property definition. The available
choice values are also stored for open and closed choice value types.- Since:
- Apache Tika 0.7
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.static enumDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.static PropertyDeprecated.Constructs a new composite property from the given primary and array of secondary properties.booleanDeprecated.static PropertyexternalBoolean(String name) Deprecated.static PropertyexternalClosedChoise(String name, String... choices) Deprecated.static PropertyexternalDate(String name) Deprecated.static PropertyexternalInteger(String name) Deprecated.static PropertyexternalOpenChoise(String name, String... choices) Deprecated.static PropertyexternalReal(String name) Deprecated.static PropertyexternalText(String name) Deprecated.static PropertyexternalTextBag(String name) Deprecated.static PropertyDeprecated.Retrieve the property object that corresponds to the given keyDeprecated.Returns the (immutable) set of choices for the values of this property.getName()Deprecated.Deprecated.Gets the primary property for a composite propertygetProperties(String prefix) Deprecated.Deprecated.static Property.PropertyTypegetPropertyType(String key) Deprecated.Get the type of a propertyProperty[]Deprecated.Gets the secondary properties for a composite propertyDeprecated.inthashCode()Deprecated.static PropertyinternalBoolean(String name) Deprecated.static PropertyinternalClosedChoise(String name, String... choices) Deprecated.static PropertyinternalDate(String name) Deprecated.static PropertyinternalInteger(String name) Deprecated.static PropertyDeprecated.static PropertyinternalOpenChoise(String name, String... choices) Deprecated.static PropertyinternalRational(String name) Deprecated.static PropertyinternalReal(String name) Deprecated.static PropertyinternalText(String name) Deprecated.static PropertyinternalTextBag(String name) Deprecated.static PropertyinternalURI(String name) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Is the PropertyType one which accepts multiple values?
-
Method Details
-
getName
Deprecated. -
isInternal
public boolean isInternal()Deprecated. -
isExternal
public boolean isExternal()Deprecated. -
isMultiValuePermitted
public boolean isMultiValuePermitted()Deprecated.Is the PropertyType one which accepts multiple values? -
getPropertyType
Deprecated.Get the type of a property- Parameters:
key- name of the property- Returns:
- the type of the property
-
get
Deprecated.Retrieve the property object that corresponds to the given key- Parameters:
key- the property key or name- Returns:
- the Property object
-
getPropertyType
Deprecated. -
getValueType
Deprecated. -
getChoices
Deprecated.Returns the (immutable) set of choices for the values of this property. Only defined foropenandclosed choicevalue types.- Returns:
- available choices, or
null
-
getPrimaryProperty
Deprecated.Gets the primary property for a composite property- Returns:
- the primary property
-
getSecondaryExtractProperties
Deprecated.Gets the secondary properties for a composite property- Returns:
- the secondary properties
-
getProperties
Deprecated. -
internalBoolean
Deprecated. -
internalClosedChoise
Deprecated. -
internalDate
Deprecated. -
internalInteger
Deprecated. -
internalIntegerSequence
Deprecated. -
internalRational
Deprecated. -
internalOpenChoise
Deprecated. -
internalReal
Deprecated. -
internalText
Deprecated. -
internalTextBag
Deprecated. -
internalURI
Deprecated. -
externalClosedChoise
Deprecated. -
externalOpenChoise
Deprecated. -
externalDate
Deprecated. -
externalReal
Deprecated. -
externalInteger
Deprecated. -
externalBoolean
Deprecated. -
externalText
Deprecated. -
externalTextBag
Deprecated. -
composite
Deprecated.Constructs a new composite property from the given primary and array of secondary properties.Note that name of the composite property is taken from its primary property, and primary and secondary properties must not be composite properties themselves.
- Parameters:
primaryProperty-secondaryExtractProperties-- Returns:
- the composite property
-
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<Property>
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-