Class DublinCoreProperties


  • public class DublinCoreProperties
    extends Object
    • Field Detail

      • CONTRIBUTOR

        public static final String CONTRIBUTOR
        External Contributors to the resource (other than the authors).
        See Also:
        Constant Field Values
      • CREATOR

        public static final String CREATOR
        The authors of the resource (listed in order of precedence, if significant).
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final 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 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
      • LANGUAGE

        public static final String LANGUAGE
        An unordered array specifying the languages used in the resource.
        See Also:
        Constant Field Values
      • SOURCE

        public static final String SOURCE
        Unique identifier of the work from which this resource was derived.
        See Also:
        Constant Field Values
      • SUBJECT

        public static final 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 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
    • Constructor Detail

      • DublinCoreProperties

        public DublinCoreProperties()
    • Method Detail

      • setTitle

        public static void setTitle​(XMPMeta xmpMeta,
                                    String title,
                                    String genericLang,
                                    String specificLang)
                             throws XMPException
        Sets a title.
        Parameters:
        xmpMeta -
        title -
        genericLang - The name of the generic language
        specificLang - The name of the specific language
        Throws:
        XMPException
      • setDescription

        public static void setDescription​(XMPMeta xmpMeta,
                                          String desc,
                                          String genericLang,
                                          String specificLang)
                                   throws XMPException
        Sets a description.
        Parameters:
        xmpMeta -
        desc -
        genericLang - The name of the generic language
        specificLang - The name of the specific language
        Throws:
        XMPException
      • setSubject

        public static void setSubject​(XMPMeta xmpMeta,
                                      String[] subject)
                               throws XMPException
        Sets a subject.
        Parameters:
        xmpMeta -
        subject - array of subjects
        Throws:
        XMPException
      • addPublisher

        public static void addPublisher​(XMPMeta xmpMeta,
                                        String publisher)
                                 throws XMPException
        Adds a single publisher.
        Parameters:
        xmpMeta -
        publisher -
        Throws:
        XMPException
      • setPublisher

        public static void setPublisher​(XMPMeta xmpMeta,
                                        String[] publisher)
                                 throws XMPException
        Sets an array of publishers.
        Parameters:
        xmpMeta -
        publisher -
        Throws:
        XMPException