Class FileImpl

java.lang.Object
com.priint.pubserver.metadata.xml.FileImpl
All Implemented Interfaces:
File, Serializable

public class FileImpl extends Object implements Serializable, File
See Also:
  • Constructor Details

    • FileImpl

      public FileImpl()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: File

      Gets the name of this file.

      Gets the name of this file. The name is the relative path of the file within the meta data archive.

      Specified by:
      getName in interface File
      Returns:
      name of the file
    • setName

      public void setName(String name)
      Description copied from interface: File

      Sets the name of this file.

      Sets the name of this file. The name must be the relative path of the file within the meta data archive.

      Specified by:
      setName in interface File
      Parameters:
      name - the new name
    • getMimetype

      public String getMimetype()
      Description copied from interface: File

      Gets the mime type of this file.

      Gets the mime type of this file in the common format media-type/subtype-identifier, e.g. image/jpeg or application/xml.

      Specified by:
      getMimetype in interface File
      Returns:
      mime type of this file
    • setMimetype

      public void setMimetype(String mimetype)
      Description copied from interface: File

      Sets the mime type of this file.

      Sets the mime type of this file. The type must be provided in the common format media-type/subtype-identifier, e.g. image/jpeg or application/xml.

      Specified by:
      setMimetype in interface File
      Parameters:
      mimetype - mime type for this file
    • getResolution

      public double getResolution()
      Description copied from interface: File

      Gets the resolution of this file.

      Gets the resolution of this file in dpi. If the file has no resolution (e.g. XML files), this attribute may be omitted or just be set to 0.0

      Specified by:
      getResolution in interface File
      Returns:
      resolution of this file in dpi
    • setResolution

      public void setResolution(double resolution)
      Description copied from interface: File

      Sets the resolution of this file.

      Sets the resolution of this file in dpi. If the file has no resolution (e.g. XML files), this attribute may be omitted or just be set to 0.0

      Specified by:
      setResolution in interface File
      Parameters:
      resolution - resolution for this file in dpi