Package help.validator.model
Class IMG
- java.lang.Object
-
- help.validator.model.IMG
-
-
Constructor Summary
Constructors Constructor Description IMG(HelpModuleLocation help, java.nio.file.Path sourceFile, java.lang.String imgSrc, int lineNumber)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IMG other)java.nio.file.PathgetHelpPath()java.nio.file.PathgetImageFile()intgetLineNumber()java.nio.file.PathgetSourceFile()java.lang.StringgetSrcAttribute()booleanisInvalid()booleanisRemote()booleanisRuntime()java.lang.StringtoString()
-
-
-
Constructor Detail
-
IMG
public IMG(HelpModuleLocation help, java.nio.file.Path sourceFile, java.lang.String imgSrc, int lineNumber) throws java.net.URISyntaxException
Constructor- Parameters:
help- the help module containing the file containing this IMG referencesourceFile- the source file containing this IMG referenceimgSrc- the IMG SRC attribute pulled from the HTML filelineNumber- the line number of the IMG tag- Throws:
java.net.URISyntaxException
-
-
Method Detail
-
getSourceFile
public java.nio.file.Path getSourceFile()
-
getSrcAttribute
public java.lang.String getSrcAttribute()
-
isRemote
public boolean isRemote()
-
isRuntime
public boolean isRuntime()
-
isInvalid
public boolean isInvalid()
-
getImageFile
public java.nio.file.Path getImageFile()
-
getHelpPath
public java.nio.file.Path getHelpPath()
-
getLineNumber
public int getLineNumber()
-
compareTo
public int compareTo(IMG other)
- Specified by:
compareToin interfacejava.lang.Comparable<IMG>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-