Class WDataInfo


public class WDataInfo extends WAbstractDataInfo
A class that stores informations about data.

This is a barebone version of WAbstractDataInfo. It simply stores the information given to it.

  • Constructor Details

  • Method Details

    • setFilePath

      public void setFilePath(String filePath)
      Sets the file path.
    • getFilePath

      public String getFilePath()
      Returns a path to a file containing the data.

      Throws if the file path is set to an empty string.

      Overrides:
      getFilePath in class WAbstractDataInfo
      See Also:
    • setUrl

      public void setUrl(String url)
      Sets the URL.
    • getUrl

      public String getUrl()
      Returns the URL of the data.

      Throws if the URL is set to an empty string.

      Overrides:
      getUrl in class WAbstractDataInfo
      See Also:
    • setDataUri

      public void setDataUri(String dataUri)
      Sets the data formated as data URI.
    • getDataUri

      public String getDataUri()
      Returns the data in data URI format.

      Throws if the data URI is set to an empty string.

      Overrides:
      getDataUri in class WAbstractDataInfo
      See Also:
    • hasFilePath

      public boolean hasFilePath()
      Returns whether this contains a file path.

      This returns whether getFilePath() returns a non-empty string.

      Overrides:
      hasFilePath in class WAbstractDataInfo
      See Also:
    • hasUrl

      public boolean hasUrl()
      Returns whether this contains a url.

      This returns whether getUrl() returns a non-empty string.

      Overrides:
      hasUrl in class WAbstractDataInfo
      See Also:
    • hasDataUri

      public boolean hasDataUri()
      Returns whether this can return the data in data URI format.

      This returns whether getDataUri() returns a non-empty string.

      Overrides:
      hasDataUri in class WAbstractDataInfo
      See Also: