Class TargetFormat

  • All Implemented Interfaces:
    Format

    public class TargetFormat
    extends java.lang.Object
    implements Format
    Represents the target file format.
    • Constructor Detail

      • TargetFormat

        public TargetFormat​(java.lang.String extension,
                            TargetFormatType type,
                            java.lang.String mimetype)
        Instantiates a new target format.
        Parameters:
        extension - the extension
        type - the type
        mimetype - the mimetype
    • Method Detail

      • add

        public TargetFormat add​(java.lang.String mimetype)
        Adds the mimetyoe.
        Parameters:
        mimetype - the mimetype to add
        Returns:
        the target format
      • getType

        public TargetFormatType getType()
        Getter for the target format type.
        Returns:
        TargetFormatType instance.
      • getMimetypes

        public java.util.Set<java.lang.String> getMimetypes()
        Specified by:
        getMimetypes in interface Format
        Returns:
        all possible MIME-Types as Set of Sting representations.
        See Also:
        Format.getMimetypes()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()