Top Fields Constructors Methods
org.apache.xmpbox.schema

public Class TiffSchema

extends XMPSchema
Class Inheritance
Annotations
@StructuredType
preferedPrefix:tiff
namespace:http://ns.adobe.com/tiff/1.0/
Imports
org.apache.xmpbox.XMPMetadata, java.util.List, org.apache.xmpbox.type.ArrayProperty, .BadFieldValueException, .Cardinality, .ProperNameType, .PropertyType, .StructuredType, .Types

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public
public
TiffSchema(XMPMetadata metadata, String prefix)

Method Summary

Modifier and TypeMethod and Description
public void
addCopyright(String
language of the copyright
lang
,
String
copyright text
value
)

Add a Copyright property value for a specified language

public void
addImageDescription(String
language of the ImageDescription property.
lang
,
String
image description text
value
)

Add an ImageDescription value for a specified language.

public String

Returns:

the Artist property
getArtist
()

Return the Artist property as String

public ProperNameType

Returns:

artist ProperNameType
getArtistProperty
()

Return the artist property

public String

Returns:

copyright value or null if it doesn't exist.
getCopyright
(String
expected language
lang
)

Return the Copyright value as String in expected language

public String

Returns:

The Copyright property value or null if it doesn't exist.
getCopyright
()

Return the Copyright property value as String in default language

public List<String>

Returns:

a list of languages or null if it doesn't exist.
getCopyrightLanguages
()

Return the list of language existing for the Copyright property.

public ArrayProperty

Returns:

the Copyright property
getCopyrightProperty
()

Return the Copyright property object

public String

Returns:

The ImageDescription property value or null if it doesn't exist.
getImageDescription
(String
The expected language.
lang
)

Return the ImageDescription property value as String in a specified language.

public String

Returns:

the ImageDescription value or null if it doesn't exist.
getImageDescription
()

Return the ImageDescription property as String in the default language.

public List<String>

Returns:

a list of languages or null if it doesn't exist.
getImageDescriptionLanguages
()

Return the list of language existing for the ImageDescription property.

public ArrayProperty

Returns:

the ImageDescription property.
getImageDescriptionProperty
()

Return the ImageDescription property object.

public void
setArtist(String
the name of the artist
text
)

Set the name of the artist

Inherited from org.apache.xmpbox.schema.XMPSchema:
addBagValueaddBagValueAsSimpleaddQualifiedBagValueaddSequenceDateValueAsSimpleaddUnqualifiedSequenceDateValueaddUnqualifiedSequenceValueaddUnqualifiedSequenceValuegetAboutAttributegetAboutValuegetAbstractPropertygetBooleanPropertygetBooleanPropertyValuegetBooleanPropertyValueAsSimplegetDatePropertygetDatePropertyValuegetDatePropertyValueAsSimplegetIntegerPropertygetIntegerPropertyValuegetIntegerPropertyValueAsSimplegetUnqualifiedArrayListgetUnqualifiedBagValueListgetUnqualifiedLanguagePropertyLanguagesValuegetUnqualifiedLanguagePropertyValuegetUnqualifiedSequenceDateValueListgetUnqualifiedSequenceValueListgetUnqualifiedTextPropertygetUnqualifiedTextPropertyValueinstanciateSimplemergeremoveUnqualifiedArrayValueremoveUnqualifiedBagValueremoveUnqualifiedSequenceDateValueremoveUnqualifiedSequenceValueremoveUnqualifiedSequenceValuereorganizeAltOrdersetAboutsetAboutAsSimplesetBooleanPropertysetBooleanPropertyValuesetBooleanPropertyValueAsSimplesetDatePropertysetDatePropertyValuesetDatePropertyValueAsSimplesetIntegerPropertysetIntegerPropertyValuesetIntegerPropertyValueAsSimplesetTextPropertysetTextPropertyValuesetTextPropertyValueAsSimplesetUnqualifiedLanguagePropertyValue

Field Detail

ARTISTback to summary
public static final String ARTIST
Annotations
@PropertyType
type:ProperName
card:Simple
BITS_PER_SAMPLEback to summary
public static final String BITS_PER_SAMPLE
Annotations
@PropertyType
type:Integer
card:Seq
COMPRESSIONback to summary
public static final String COMPRESSION
Annotations
@PropertyType
type:Integer
card:Simple
DATE_TIMEback to summary
public static final String DATE_TIME
Annotations
@PropertyType
type:Date
card:Simple
IMAGE_DESCRIPTIONback to summary
public static final String IMAGE_DESCRIPTION
Annotations
@PropertyType
type:LangAlt
card:Simple
IMAGE_LENGTHback to summary
public static final String IMAGE_LENGTH
Annotations
@PropertyType
type:Integer
card:Simple
IMAGE_WIDTHback to summary
public static final String IMAGE_WIDTH
Annotations
@PropertyType
type:Integer
card:Simple
MAKEback to summary
public static final String MAKE
Annotations
@PropertyType
type:ProperName
card:Simple
MODELback to summary
public static final String MODEL
Annotations
@PropertyType
type:ProperName
card:Simple
ORIENTATIONback to summary
public static final String ORIENTATION
Annotations
@PropertyType
type:Integer
card:Simple
PHOTOMETRIC_INTERPRETATIONback to summary
public static final String PHOTOMETRIC_INTERPRETATION
Annotations
@PropertyType
type:Integer
card:Simple
PLANAR_CONFIGURATIONback to summary
public static final String PLANAR_CONFIGURATION
Annotations
@PropertyType
type:Integer
card:Simple
PRIMARY_CHROMATICITIESback to summary
public static final String PRIMARY_CHROMATICITIES
Annotations
@PropertyType
type:Rational
card:Seq
REFERENCE_BLACK_WHITEback to summary
public static final String REFERENCE_BLACK_WHITE
Annotations
@PropertyType
type:Rational
card:Seq
RESOLUTION_UNITback to summary
public static final String RESOLUTION_UNIT
Annotations
@PropertyType
type:Integer
card:Simple
SAMPLES_PER_PIXELback to summary
public static final String SAMPLES_PER_PIXEL
Annotations
@PropertyType
type:Integer
card:Simple
SOFTWAREback to summary
public static final String SOFTWARE
Annotations
@PropertyType
type:AgentName
card:Simple
TRANSFER_FUNCTIONback to summary
public static final String TRANSFER_FUNCTION
Annotations
@PropertyType
type:Integer
card:Seq
WHITE_POINTback to summary
public static final String WHITE_POINT
Annotations
@PropertyType
type:Rational
card:Seq
XRESOLUTIONback to summary
public static final String XRESOLUTION
Annotations
@PropertyType
type:Rational
card:Simple
YCB_CR_COEFFICIENTSback to summary
public static final String YCB_CR_COEFFICIENTS
Annotations
@PropertyType
type:Rational
card:Seq
YCB_CR_POSITIONINGback to summary
public static final String YCB_CR_POSITIONING
Annotations
@PropertyType
type:Integer
card:Seq
YCB_CR_SUB_SAMPLINGback to summary
public static final String YCB_CR_SUB_SAMPLING
Annotations
@PropertyType
type:Integer
card:Simple
YRESOLUTIONback to summary
public static final String YRESOLUTION
Annotations
@PropertyType
type:Rational
card:Simple

Constructor Detail

TiffSchemaback to summary
public TiffSchema(XMPMetadata metadata)
TiffSchemaback to summary
public TiffSchema(XMPMetadata metadata, String prefix)

Method Detail

addCopyrightback to summary
public void addCopyright(String lang, String value)

Add a Copyright property value for a specified language

Parameters
lang:String

language of the copyright

value:String

copyright text

addImageDescriptionback to summary
public void addImageDescription(String lang, String value)

Add an ImageDescription value for a specified language.

Parameters
lang:String

language of the ImageDescription property.

value:String

image description text

getArtistback to summary
public String getArtist()

Return the Artist property as String

Returns:String

the Artist property

getArtistPropertyback to summary
public ProperNameType getArtistProperty()

Return the artist property

Returns:ProperNameType

artist ProperNameType

getCopyrightback to summary
public String getCopyright(String lang) throws BadFieldValueException

Return the Copyright value as String in expected language

Parameters
lang:String

expected language

Returns:String

copyright value or null if it doesn't exist.

Exceptions
BadFieldValueException:
If the Copyright property is not a multi-lingual property
getCopyrightback to summary
public String getCopyright() throws BadFieldValueException

Return the Copyright property value as String in default language

Returns:String

The Copyright property value or null if it doesn't exist.

Exceptions
BadFieldValueException:
If the Copyright property is not a multi-lingual property
getCopyrightLanguagesback to summary
public List<String> getCopyrightLanguages() throws BadFieldValueException

Return the list of language existing for the Copyright property.

Returns:List<String>

a list of languages or null if it doesn't exist.

Exceptions
BadFieldValueException:
If the Copyright property is not a multi-lingual property
getCopyrightPropertyback to summary
public ArrayProperty getCopyrightProperty()

Return the Copyright property object

Returns:ArrayProperty

the Copyright property

getImageDescriptionback to summary
public String getImageDescription(String lang) throws BadFieldValueException

Return the ImageDescription property value as String in a specified language.

Parameters
lang:String

The expected language.

Returns:String

The ImageDescription property value or null if it doesn't exist.

Exceptions
BadFieldValueException:
If the ImageDescription property is not a multi-lingual property.
getImageDescriptionback to summary
public String getImageDescription() throws BadFieldValueException

Return the ImageDescription property as String in the default language.

Returns:String

the ImageDescription value or null if it doesn't exist.

Exceptions
BadFieldValueException:
If the ImageDescription property is not a multi-lingual property.
getImageDescriptionLanguagesback to summary
public List<String> getImageDescriptionLanguages() throws BadFieldValueException

Return the list of language existing for the ImageDescription property.

Returns:List<String>

a list of languages or null if it doesn't exist.

Exceptions
BadFieldValueException:
If the ImageDescription property is not a multi-lingual property.
getImageDescriptionPropertyback to summary
public ArrayProperty getImageDescriptionProperty()

Return the ImageDescription property object.

Returns:ArrayProperty

the ImageDescription property.

setArtistback to summary
public void setArtist(String text)

Set the name of the artist

Parameters
text:String

the name of the artist