Package net.sf.saxon.lib
Class StandardURIChecker
- java.lang.Object
-
- net.sf.saxon.lib.StandardURIChecker
-
- All Implemented Interfaces:
URIChecker
public class StandardURIChecker extends Object implements URIChecker
This class checks whether a string is a valid URI. Different checking rules can be chosen by including a different URIChecker in theConversionRulesused when the value is checked.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardURIChecker()Protected constructor to allow subclassing
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckThoroughly(URI uri)static StandardURICheckergetInstance()booleanisValidURI(String value)Validate a string to determine whether it is a valid URIstatic voidmain(String[] args)booleanpassesAdditionalChecks(URI uri)
-
-
-
Method Detail
-
getInstance
public static StandardURIChecker getInstance()
-
isValidURI
public boolean isValidURI(String value)
Validate a string to determine whether it is a valid URI- Specified by:
isValidURIin interfaceURIChecker- Parameters:
value- the string to be checked- Returns:
- true if the string is considered to be a valid URI
-
passesAdditionalChecks
public boolean passesAdditionalChecks(URI uri)
-
checkThoroughly
public void checkThoroughly(URI uri) throws URISyntaxException
- Throws:
URISyntaxException
-
main
public static void main(String[] args)
-
-