Package com.itextpdf.text.xml.xmp
Class DublinCoreProperties
- java.lang.Object
-
- com.itextpdf.text.xml.xmp.DublinCoreProperties
-
public class DublinCoreProperties extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTRIBUTORExternal Contributors to the resource (other than the authors).static java.lang.StringCOVERAGEThe extent or scope of the resource.static java.lang.StringCREATORThe authors of the resource (listed in order of precedence, if significant).static java.lang.StringDATEDate(s) that something interesting happened to the resource.static java.lang.StringDESCRIPTIONA textual description of the content of the resource.static java.lang.StringFORMATThe file format used when saving the resource.static java.lang.StringIDENTIFIERUnique identifier of the resource.static java.lang.StringLANGUAGEAn unordered array specifying the languages used in the resource.static java.lang.StringPUBLISHERPublishers.static java.lang.StringRELATIONRelationships to other documents.static java.lang.StringRIGHTSInformal rights statement, selected by language.static java.lang.StringSOURCEUnique identifier of the work from which this resource was derived.static java.lang.StringSUBJECTAn unordered array of descriptive phrases or keywords that specify the topic of the content of the resource.static java.lang.StringTITLEThe title of the document, or the name given to the resource.static java.lang.StringTYPEA document type; for example, novel, poem, or working paper.
-
Constructor Summary
Constructors Constructor Description DublinCoreProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAuthor(XMPMeta xmpMeta, java.lang.String author)Adds a single author.static voidaddDescription(XMPMeta xmpMeta, java.lang.String desc)Adds a description.static voidaddPublisher(XMPMeta xmpMeta, java.lang.String publisher)Adds a single publisher.static voidaddSubject(XMPMeta xmpMeta, java.lang.String subject)Adds a subject.static voidaddTitle(XMPMeta xmpMeta, java.lang.String title)Adds a title.static voidsetAuthor(XMPMeta xmpMeta, java.lang.String[] author)Sets an array of authors.static voidsetDescription(XMPMeta xmpMeta, java.lang.String desc, java.lang.String genericLang, java.lang.String specificLang)Sets a description.static voidsetPublisher(XMPMeta xmpMeta, java.lang.String[] publisher)Sets an array of publishers.static voidsetSubject(XMPMeta xmpMeta, java.lang.String[] subject)Sets a subject.static voidsetTitle(XMPMeta xmpMeta, java.lang.String title, java.lang.String genericLang, java.lang.String specificLang)Sets a title.
-
-
-
Field Detail
-
CONTRIBUTOR
public static final java.lang.String CONTRIBUTOR
External Contributors to the resource (other than the authors).- See Also:
- Constant Field Values
-
COVERAGE
public static final java.lang.String COVERAGE
The extent or scope of the resource.- See Also:
- Constant Field Values
-
CREATOR
public static final java.lang.String CREATOR
The authors of the resource (listed in order of precedence, if significant).- See Also:
- Constant Field Values
-
DATE
public static final java.lang.String DATE
Date(s) that something interesting happened to the resource.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
A textual description of the content of the resource. Multiple values may be present for different languages.- See Also:
- Constant Field Values
-
FORMAT
public static final java.lang.String FORMAT
The file format used when saving the resource. Tools and applications should set this property to the save format of the data. It may include appropriate qualifiers.- See Also:
- Constant Field Values
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
Unique identifier of the resource.- See Also:
- Constant Field Values
-
LANGUAGE
public static final java.lang.String LANGUAGE
An unordered array specifying the languages used in the resource.- See Also:
- Constant Field Values
-
PUBLISHER
public static final java.lang.String PUBLISHER
Publishers.- See Also:
- Constant Field Values
-
RELATION
public static final java.lang.String RELATION
Relationships to other documents.- See Also:
- Constant Field Values
-
RIGHTS
public static final java.lang.String RIGHTS
Informal rights statement, selected by language.- See Also:
- Constant Field Values
-
SOURCE
public static final java.lang.String SOURCE
Unique identifier of the work from which this resource was derived.- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
An unordered array of descriptive phrases or keywords that specify the topic of the content of the resource.- See Also:
- Constant Field Values
-
TITLE
public static final java.lang.String TITLE
The title of the document, or the name given to the resource. Typically, it will be a name by which the resource is formally known.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
A document type; for example, novel, poem, or working paper.- See Also:
- Constant Field Values
-
-
Method Detail
-
addTitle
public static void addTitle(XMPMeta xmpMeta, java.lang.String title) throws XMPException
Adds a title.- Parameters:
xmpMeta-title-- Throws:
XMPException
-
setTitle
public static void setTitle(XMPMeta xmpMeta, java.lang.String title, java.lang.String genericLang, java.lang.String specificLang) throws XMPException
Sets a title.- Parameters:
xmpMeta-title-genericLang- The name of the generic languagespecificLang- The name of the specific language- Throws:
XMPException
-
addDescription
public static void addDescription(XMPMeta xmpMeta, java.lang.String desc) throws XMPException
Adds a description.- Parameters:
xmpMeta-desc-- Throws:
XMPException
-
setDescription
public static void setDescription(XMPMeta xmpMeta, java.lang.String desc, java.lang.String genericLang, java.lang.String specificLang) throws XMPException
Sets a description.- Parameters:
xmpMeta-desc-genericLang- The name of the generic languagespecificLang- The name of the specific language- Throws:
XMPException
-
addSubject
public static void addSubject(XMPMeta xmpMeta, java.lang.String subject) throws XMPException
Adds a subject.- Parameters:
xmpMeta-subject-- Throws:
XMPException
-
setSubject
public static void setSubject(XMPMeta xmpMeta, java.lang.String[] subject) throws XMPException
Sets a subject.- Parameters:
xmpMeta-subject- array of subjects- Throws:
XMPException
-
addAuthor
public static void addAuthor(XMPMeta xmpMeta, java.lang.String author) throws XMPException
Adds a single author.- Parameters:
xmpMeta-author-- Throws:
XMPException
-
setAuthor
public static void setAuthor(XMPMeta xmpMeta, java.lang.String[] author) throws XMPException
Sets an array of authors.- Parameters:
xmpMeta-author-- Throws:
XMPException
-
addPublisher
public static void addPublisher(XMPMeta xmpMeta, java.lang.String publisher) throws XMPException
Adds a single publisher.- Parameters:
xmpMeta-publisher-- Throws:
XMPException
-
setPublisher
public static void setPublisher(XMPMeta xmpMeta, java.lang.String[] publisher) throws XMPException
Sets an array of publishers.- Parameters:
xmpMeta-publisher-- Throws:
XMPException
-
-