Package eu.webtoolkit.jwt
Class WDataInfo
- java.lang.Object
-
- eu.webtoolkit.jwt.WAbstractDataInfo
-
- eu.webtoolkit.jwt.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDataUri()Returns the data in data URI format.java.lang.StringgetFilePath()Returns a path to a file containing the data.java.lang.StringgetUrl()Returns the URL of the data.booleanhasDataUri()Returns whether this can return the data in data URI format.booleanhasFilePath()Returns whether this contains a file path.booleanhasUrl()Returns whether this contains a url.voidsetDataUri(java.lang.String dataUri)Sets the data formated as data URI.voidsetFilePath(java.lang.String filePath)Sets the file path.voidsetUrl(java.lang.String url)Sets the URL.-
Methods inherited from class eu.webtoolkit.jwt.WAbstractDataInfo
getName
-
-
-
-
Constructor Detail
-
WDataInfo
public WDataInfo()
Creates an emptyWDataInfo.
-
WDataInfo
public WDataInfo(java.lang.String url, java.lang.String filePath)
-
-
Method Detail
-
setFilePath
public void setFilePath(java.lang.String filePath)
Sets the file path.
-
getFilePath
public java.lang.String getFilePath()
Returns a path to a file containing the data.Throws if the file path is set to an empty string.
- Overrides:
getFilePathin classWAbstractDataInfo- See Also:
hasFilePath()
-
setUrl
public void setUrl(java.lang.String url)
Sets the URL.
-
getUrl
public java.lang.String getUrl()
Returns the URL of the data.Throws if the URL is set to an empty string.
- Overrides:
getUrlin classWAbstractDataInfo- See Also:
hasUrl()
-
setDataUri
public void setDataUri(java.lang.String dataUri)
Sets the data formated as data URI.
-
getDataUri
public java.lang.String getDataUri()
Returns the data in data URI format.Throws if the data URI is set to an empty string.
- Overrides:
getDataUriin classWAbstractDataInfo- See Also:
hasDataUri()
-
hasFilePath
public boolean hasFilePath()
Returns whether this contains a file path.This returns whether
getFilePath()returns a non-empty string.- Overrides:
hasFilePathin classWAbstractDataInfo- See Also:
getFilePath()
-
hasUrl
public boolean hasUrl()
Returns whether this contains a url.This returns whether
getUrl()returns a non-empty string.- Overrides:
hasUrlin classWAbstractDataInfo- See Also:
getUrl()
-
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:
hasDataUriin classWAbstractDataInfo- See Also:
getDataUri()
-
-