Class ImageData

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class ImageData
    extends java.lang.Object
    implements java.io.Serializable
    A class representing an image with metadata and tags.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String imageName  
      private java.util.Map<java.lang.String,​java.lang.String> metadata  
      private java.lang.String path  
      private java.util.List<java.lang.String> tags  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageData()  
      ImageData​(java.lang.String absolutePath, java.util.List<java.lang.String> tags, java.lang.String name)
      This is a constructor for the Image class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getImageName()  
      java.util.Map<java.lang.String,​java.lang.String> getMetadata()  
      java.lang.String getPath()  
      java.util.List<java.lang.String> getTags()  
      void setImageName​(java.lang.String imageName)  
      void setPath​(java.lang.String path)  
      void setTags​(java.util.List<java.lang.String> tags)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • path

        private java.lang.String path
      • imageName

        private java.lang.String imageName
      • tags

        private java.util.List<java.lang.String> tags
      • metadata

        private java.util.Map<java.lang.String,​java.lang.String> metadata
    • Constructor Detail

      • ImageData

        public ImageData​(java.lang.String absolutePath,
                         java.util.List<java.lang.String> tags,
                         java.lang.String name)
                  throws com.drew.imaging.ImageProcessingException,
                         java.io.IOException
        This is a constructor for the Image class.
        Parameters:
        absolutePath - The absolute path to the image for the class to represent
        tags - User-defined tags to describe image, set null for no tags
        Throws:
        com.drew.imaging.ImageProcessingException - If filetype is unknown
        java.io.IOException - If file could not be found
      • ImageData

        public ImageData()
    • Method Detail

      • getImageName

        public java.lang.String getImageName()
      • setImageName

        public void setImageName​(java.lang.String imageName)
      • getTags

        public java.util.List<java.lang.String> getTags()
      • setTags

        public void setTags​(java.util.List<java.lang.String> tags)
      • getPath

        public java.lang.String getPath()
      • setPath

        public void setPath​(java.lang.String path)
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()