Class MimeFileType

java.lang.Object
org.apache.sis.internal.jaxb.gcx.MimeFileType

public final class MimeFileType extends Object
The <gcx:MimeFileType> element, which may be used as a substitute of <gco:CharacterString>. This is used in DefaultBrowseGraphic. Example:
Since:
0.4
Version:
0.4
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The value of the type attribute, which is the mime type.
    private String
    A human-readable description of the mime type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor for JAXB only.
    Creates a new <gml:MimeFileType> for the given type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the MIME type, or null if none.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • type

      private String type
      The value of the type attribute, which is the mime type.
    • value

      private String value
      A human-readable description of the mime type. If type is null, then this will be taken as the mime type.
  • Constructor Details

    • MimeFileType

      public MimeFileType()
      Empty constructor for JAXB only.
    • MimeFileType

      public MimeFileType(String type)
      Creates a new <gml:MimeFileType> for the given type.
      Parameters:
      type - the MIME type.
  • Method Details

    • toString

      public String toString()
      Returns the MIME type, or null if none.
      Note: Returning null is usually not recommended for a toString() method, but this class is for internal usage only.
      Overrides:
      toString in class Object
      Returns:
      the MIME type, or null if none.