Class ValidationUtilities.HyperlinkValidationHelper
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.ValidationUtilities.HyperlinkValidationHelper
-
- Enclosing class:
- ValidationUtilities
public static class ValidationUtilities.HyperlinkValidationHelper extends java.lang.Object
A helper class for external hyperlink validation.
-
-
Constructor Summary
Constructors Constructor Description HyperlinkValidationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getValidProtocolsAsString()
static boolean
isFormatValid(java.lang.String string)
static boolean
isProtocolValid(java.lang.String string)
-
-
-
Method Detail
-
isProtocolValid
public static final boolean isProtocolValid(java.lang.String string)
- Returns:
- does given string start with a valid external hyperlink protocol
-
isFormatValid
public static final boolean isFormatValid(java.lang.String string)
- Returns:
- does given string contain a hyperlink value in a proper format
-
getValidProtocolsAsString
public static final java.lang.String getValidProtocolsAsString()
-
-