Class TiffSchema

    • Constructor Detail

      • TiffSchema

        public TiffSchema​(XMPMetadata metadata)
      • TiffSchema

        public TiffSchema​(XMPMetadata metadata,
                          java.lang.String prefix)
    • Method Detail

      • getArtistProperty

        public ProperNameType getArtistProperty()
        Return the artist property
        Returns:
        artist ProperNameType
      • getArtist

        public java.lang.String getArtist()
        Return the Artist property as String
        Returns:
        the Artist property
      • setArtist

        public void setArtist​(java.lang.String text)
        Set the name of the artist
        Parameters:
        text - the name of the artist
      • getImageDescriptionProperty

        public ArrayProperty getImageDescriptionProperty()
        Return the ImageDescription property object.
        Returns:
        the ImageDescription property.
      • getImageDescriptionLanguages

        public java.util.List<java.lang.String> getImageDescriptionLanguages()
                                                                      throws BadFieldValueException
        Return the list of language existing for the ImageDescription property.
        Returns:
        a list of languages or null if it doesn't exist.
        Throws:
        BadFieldValueException - If the ImageDescription property is not a multi-lingual property.
      • getImageDescription

        public java.lang.String getImageDescription​(java.lang.String lang)
                                             throws BadFieldValueException
        Return the ImageDescription property value as String in a specified language.
        Parameters:
        lang - The expected language.
        Returns:
        The ImageDescription property value or null if it doesn't exist.
        Throws:
        BadFieldValueException - If the ImageDescription property is not a multi-lingual property.
      • getImageDescription

        public java.lang.String getImageDescription()
                                             throws BadFieldValueException
        Return the ImageDescription property as String in the default language.
        Returns:
        the ImageDescription value or null if it doesn't exist.
        Throws:
        BadFieldValueException - If the ImageDescription property is not a multi-lingual property.
      • addImageDescription

        public void addImageDescription​(java.lang.String lang,
                                        java.lang.String value)
        Add an ImageDescription value for a specified language.
        Parameters:
        lang - language of the ImageDescription property.
        value - image description text
      • getCopyrightProperty

        public ArrayProperty getCopyrightProperty()
        Return the Copyright property object
        Returns:
        the Copyright property
      • getCopyrightLanguages

        public java.util.List<java.lang.String> getCopyrightLanguages()
                                                               throws BadFieldValueException
        Return the list of language existing for the Copyright property.
        Returns:
        a list of languages or null if it doesn't exist.
        Throws:
        BadFieldValueException - If the Copyright property is not a multi-lingual property
      • getCopyright

        public java.lang.String getCopyright​(java.lang.String lang)
                                      throws BadFieldValueException
        Return the Copyright value as String in expected language
        Parameters:
        lang - expected language
        Returns:
        copyright value or null if it doesn't exist.
        Throws:
        BadFieldValueException - If the Copyright property is not a multi-lingual property
      • getCopyright

        public java.lang.String getCopyright()
                                      throws BadFieldValueException
        Return the Copyright property value as String in default language
        Returns:
        The Copyright property value or null if it doesn't exist.
        Throws:
        BadFieldValueException - If the Copyright property is not a multi-lingual property
      • addCopyright

        public void addCopyright​(java.lang.String lang,
                                 java.lang.String value)
        Add a Copyright property value for a specified language
        Parameters:
        lang - language of the copyright
        value - copyright text