Package help
Class ImageLocation
- java.lang.Object
-
- help.ImageLocation
-
public class ImageLocation extends java.lang.ObjectA class that represents the original location of an IMG tag along with its location resolution within the help system.Some images are represented by 'in memory' or 'runtime' values that do not have a valid url.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageLocationcreateInvalidRuntimeLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc)static ImageLocationcreateLocalLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc, java.net.URI resolvedUri, java.nio.file.Path resolvedPath)static ImageLocationcreateRemoteLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc, java.net.URI resolvedUri)static ImageLocationcreateRuntimeLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc, java.net.URI resolvedUri, java.nio.file.Path resolvedPath)java.lang.StringgetImageSrc()java.nio.file.PathgetResolvedPath()java.net.URIgetResolvedUri()java.nio.file.PathgetSourceFile()booleanisInvalidRuntimeImage()booleanisRemote()booleanisRuntime()java.lang.StringtoString()
-
-
-
Method Detail
-
createLocalLocation
public static ImageLocation createLocalLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc, java.net.URI resolvedUri, java.nio.file.Path resolvedPath)
-
createRuntimeLocation
public static ImageLocation createRuntimeLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc, java.net.URI resolvedUri, java.nio.file.Path resolvedPath)
-
createInvalidRuntimeLocation
public static ImageLocation createInvalidRuntimeLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc)
-
createRemoteLocation
public static ImageLocation createRemoteLocation(java.nio.file.Path sourceFile, java.lang.String imageSrc, java.net.URI resolvedUri)
-
getSourceFile
public java.nio.file.Path getSourceFile()
-
getImageSrc
public java.lang.String getImageSrc()
-
getResolvedPath
public java.nio.file.Path getResolvedPath()
-
getResolvedUri
public java.net.URI getResolvedUri()
-
isRemote
public boolean isRemote()
-
isRuntime
public boolean isRuntime()
-
isInvalidRuntimeImage
public boolean isInvalidRuntimeImage()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-