|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.metadata.Property
public final class Property
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.
Nested Class Summary | |
---|---|
static class |
Property.PropertyType
|
static class |
Property.ValueType
|
Method Summary | |
---|---|
int |
compareTo(Property o)
|
static Property |
composite(Property primaryProperty,
Property[] secondaryExtractProperties)
Constructs a new composite property from the given primary and array of secondary properties. |
boolean |
equals(Object o)
|
static Property |
externalBoolean(String name)
|
static Property |
externalClosedChoise(String name,
String... choices)
|
static Property |
externalDate(String name)
|
static Property |
externalInteger(String name)
|
static Property |
externalOpenChoise(String name,
String... choices)
|
static Property |
externalReal(String name)
|
static Property |
externalText(String name)
|
static Property |
externalTextBag(String name)
|
static Property |
get(String key)
Retrieve the property object that corresponds to the given key |
Set<String> |
getChoices()
Returns the (immutable) set of choices for the values of this property. |
String |
getName()
|
Property |
getPrimaryProperty()
Gets the primary property for a composite property |
static SortedSet<Property> |
getProperties(String prefix)
|
Property.PropertyType |
getPropertyType()
|
static Property.PropertyType |
getPropertyType(String key)
Get the type of a property |
Property[] |
getSecondaryExtractProperties()
Gets the secondary properties for a composite property |
Property.ValueType |
getValueType()
|
int |
hashCode()
|
static Property |
internalBoolean(String name)
|
static Property |
internalClosedChoise(String name,
String... choices)
|
static Property |
internalDate(String name)
|
static Property |
internalInteger(String name)
|
static Property |
internalIntegerSequence(String name)
|
static Property |
internalOpenChoise(String name,
String... choices)
|
static Property |
internalRational(String name)
|
static Property |
internalReal(String name)
|
static Property |
internalText(String name)
|
static Property |
internalTextBag(String name)
|
static Property |
internalURI(String name)
|
boolean |
isExternal()
|
boolean |
isInternal()
|
boolean |
isMultiValuePermitted()
Is the PropertyType one which accepts multiple values? |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getName()
public boolean isInternal()
public boolean isExternal()
public boolean isMultiValuePermitted()
public static Property.PropertyType getPropertyType(String key)
key
- name of the property
public static Property get(String key)
key
- the property key or name
public Property.PropertyType getPropertyType()
public Property.ValueType getValueType()
public Set<String> getChoices()
open
and
closed choice
value types.
null
public Property getPrimaryProperty()
public Property[] getSecondaryExtractProperties()
public static SortedSet<Property> getProperties(String prefix)
public static Property internalBoolean(String name)
public static Property internalClosedChoise(String name, String... choices)
public static Property internalDate(String name)
public static Property internalInteger(String name)
public static Property internalIntegerSequence(String name)
public static Property internalRational(String name)
public static Property internalOpenChoise(String name, String... choices)
public static Property internalReal(String name)
public static Property internalText(String name)
public static Property internalTextBag(String name)
public static Property internalURI(String name)
public static Property externalClosedChoise(String name, String... choices)
public static Property externalOpenChoise(String name, String... choices)
public static Property externalDate(String name)
public static Property externalReal(String name)
public static Property externalInteger(String name)
public static Property externalBoolean(String name)
public static Property externalText(String name)
public static Property externalTextBag(String name)
public static Property composite(Property primaryProperty, Property[] secondaryExtractProperties)
Note that name of the composite property is taken from its primary property, and primary and secondary properties must not be composite properties themselves.
primaryProperty
- secondaryExtractProperties
-
public int compareTo(Property o)
compareTo
in interface Comparable<Property>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |