Package help.validator.model
Class HREF
- java.lang.Object
-
- help.validator.model.HREF
-
-
Constructor Summary
Constructors Constructor Description HREF(HelpModuleLocation help, java.nio.file.Path sourceFile, java.lang.String href, int lineNum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(HREF other)java.lang.StringgetAnchorName()java.lang.StringgetHelpPath()intgetLineNumber()java.nio.file.PathgetReferenceFileHelpPath()The relative help path to the destination of this HREFjava.lang.StringgetRefString()java.nio.file.PathgetSourceFile()booleanisLocalAnchor()booleanisRemote()booleanisURL()java.lang.StringtoString()
-
-
-
Constructor Detail
-
HREF
public HREF(HelpModuleLocation help, java.nio.file.Path sourceFile, java.lang.String href, int lineNum) throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
-
-
Method Detail
-
isURL
public boolean isURL()
-
isLocalAnchor
public boolean isLocalAnchor()
-
getSourceFile
public java.nio.file.Path getSourceFile()
-
isRemote
public boolean isRemote()
-
getAnchorName
public java.lang.String getAnchorName()
-
getRefString
public java.lang.String getRefString()
-
getReferenceFileHelpPath
public java.nio.file.Path getReferenceFileHelpPath()
The relative help path to the destination of this HREF
-
getHelpPath
public java.lang.String getHelpPath()
-
compareTo
public int compareTo(HREF other)
- Specified by:
compareToin interfacejava.lang.Comparable<HREF>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLineNumber
public int getLineNumber()
-
-