Class FileName

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

public final class FileName extends Object
The <gcx:FileName> element, which may be used as a substitute of <gco:CharacterString>. This is used for the URI 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 src attribute, which is the file path.
    private String
    A human-readable description of the filename.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Returns the file path, or null if none.

    Methods inherited from class java.lang.Object

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

    • src

      private String src
      The value of the src attribute, which is the file path.
    • value

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

    • FileName

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

      public FileName(String uri)
      Creates a new <gml:FileName> for the given URI.
      Parameters:
      uri - the string representation of the URI.
  • Method Details

    • toString

      public String toString()
      Returns the file path, 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 file path, or null if none.