Package nu.validator.datatype
Class IriRef
java.lang.Object
nu.validator.datatype.AbstractDatatype
nu.validator.datatype.IriRef
- All Implemented Interfaces:
org.relaxng.datatype.Datatype
- Direct Known Subclasses:
ImageCandidateURL
,Iri
,IriRefHttpOrHttps
,Refresh
public class IriRef extends AbstractDatatype
-
Nested Class Summary
Nested classes/interfaces inherited from class nu.validator.datatype.AbstractDatatype
AbstractDatatype.CharSequenceWithOffset
-
Field Summary
Fields Modifier and Type Field Description static IriRef
THE_INSTANCE
The singleton instance. -
Constructor Summary
Constructors Modifier Constructor Description protected
IriRef()
-
Method Summary
Modifier and Type Method Description void
checkValid(java.lang.CharSequence literal)
java.lang.String
getName()
protected boolean
isAbsolute()
protected boolean
mustBeHttpOrHttps()
protected boolean
reportValue()
protected static java.lang.String
trimHtmlLeadingSpaces(java.lang.String str)
protected static java.lang.String
trimHtmlSpaces(java.lang.String str)
protected static java.lang.String
trimHtmlTrailingSpaces(java.lang.String str)
Methods inherited from class nu.validator.datatype.AbstractDatatype
checkValid, createStreamingValidator, createValue, getIdType, isAsciiDigit, isContextDependent, isValid, isWhitespace, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, sameValue, split, toAsciiLowerCase, toAsciiLowerCase, toAsciiUpperCase, toAsciiUpperCase, valueHashCode
-
Field Details
-
THE_INSTANCE
The singleton instance.
-
-
Constructor Details
-
IriRef
protected IriRef()
-
-
Method Details
-
checkValid
public void checkValid(java.lang.CharSequence literal) throws org.relaxng.datatype.DatatypeException- Specified by:
checkValid
in classAbstractDatatype
- Throws:
org.relaxng.datatype.DatatypeException
-
isAbsolute
protected boolean isAbsolute() -
reportValue
protected boolean reportValue() -
trimHtmlSpaces
protected static final java.lang.String trimHtmlSpaces(java.lang.String str) -
trimHtmlLeadingSpaces
protected static final java.lang.String trimHtmlLeadingSpaces(java.lang.String str) -
trimHtmlTrailingSpaces
protected static final java.lang.String trimHtmlTrailingSpaces(java.lang.String str) -
mustBeHttpOrHttps
protected boolean mustBeHttpOrHttps() -
getName
public java.lang.String getName()- Specified by:
getName
in classAbstractDatatype
-