org.apache.tika.metadata
Class Property

java.lang.Object
  extended by org.apache.tika.metadata.Property

public final class Property
extends java.lang.Object

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
static class Property.PropertyType
           
static class Property.ValueType
           
 
Method Summary
static Property externalBoolean(java.lang.String name)
           
static Property externalClosedChoise(java.lang.String name, java.lang.String... choices)
           
static Property externalDate(java.lang.String name)
           
static Property externalInteger(java.lang.String name)
           
static Property externalReal(java.lang.String name)
           
static Property externalText(java.lang.String name)
           
 java.util.Set<java.lang.String> getChoices()
          Returns the (immutable) set of choices for the values of this property.
 java.lang.String getName()
           
 Property.PropertyType getPropertyType()
           
 Property.ValueType getValueType()
           
static Property internalBoolean(java.lang.String name)
           
static Property internalClosedChoise(java.lang.String name, java.lang.String... choices)
           
static Property internalDate(java.lang.String name)
           
static Property internalInteger(java.lang.String name)
           
static Property internalIntegerSequence(java.lang.String name)
           
static Property internalOpenChoise(java.lang.String name, java.lang.String... choices)
           
static Property internalRational(java.lang.String name)
           
static Property internalReal(java.lang.String name)
           
static Property internalText(java.lang.String name)
           
static Property internalURI(java.lang.String name)
           
 boolean isExternal()
           
 boolean isInternal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()

isInternal

public boolean isInternal()

isExternal

public boolean isExternal()

getPropertyType

public Property.PropertyType getPropertyType()

getValueType

public Property.ValueType getValueType()

getChoices

public java.util.Set<java.lang.String> getChoices()
Returns the (immutable) set of choices for the values of this property. Only defined for open and closed choice value types.

Returns:
available choices, or null

internalBoolean

public static Property internalBoolean(java.lang.String name)

internalClosedChoise

public static Property internalClosedChoise(java.lang.String name,
                                            java.lang.String... choices)

internalDate

public static Property internalDate(java.lang.String name)

internalInteger

public static Property internalInteger(java.lang.String name)

internalIntegerSequence

public static Property internalIntegerSequence(java.lang.String name)

internalRational

public static Property internalRational(java.lang.String name)

internalOpenChoise

public static Property internalOpenChoise(java.lang.String name,
                                          java.lang.String... choices)

internalReal

public static Property internalReal(java.lang.String name)

internalText

public static Property internalText(java.lang.String name)

internalURI

public static Property internalURI(java.lang.String name)

externalClosedChoise

public static Property externalClosedChoise(java.lang.String name,
                                            java.lang.String... choices)

externalDate

public static Property externalDate(java.lang.String name)

externalReal

public static Property externalReal(java.lang.String name)

externalInteger

public static Property externalInteger(java.lang.String name)

externalBoolean

public static Property externalBoolean(java.lang.String name)

externalText

public static Property externalText(java.lang.String name)


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.