Class AbsoluteIri
java.lang.Object
com.networknt.schema.AbsoluteIri
The absolute IRI is an IRI without the fragment.
absolute-IRI = scheme ":" ihier-part [ "?" iquery ]
This does not attempt to validate whether the value really conforms to an absolute IRI format as in earlier drafts the IDs are not defined as such.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the scheme of the IRI.static StringReturns the scheme of the IRI.protected StringReturns the scheme and authority components of the IRI.protected static StringgetSchemeAuthority(String iri) Returns the scheme and authority components of the IRI.inthashCode()private static booleanisAbsoluteIri(String iri) Determines if the iri is absolute or relative.static AbsoluteIriConstructs a new IRI given the value.protected static StringConstructs a new IRI by parsing the given string and then resolving it against this IRI.static StringConstructs a new IRI by parsing the given string and then resolving it against this IRI.toString()
-
Field Details
-
value
-
-
Constructor Details
-
AbsoluteIri
-
-
Method Details
-
of
Constructs a new IRI given the value.- Parameters:
iri- the value- Returns:
- the new absolute IRI
-
resolve
Constructs a new IRI by parsing the given string and then resolving it against this IRI.- Parameters:
iri- to resolve- Returns:
- the new absolute IRI
-
getScheme
-
getSchemeAuthority
Returns the scheme and authority components of the IRI.- Returns:
- the scheme and authority components
-
isAbsoluteIri
Determines if the iri is absolute or relative.- Parameters:
iri- to determine- Returns:
- true if absolute
-
resolve
-
parent
-
getSchemeAuthority
-
getScheme
-
toString
-
hashCode
-
equals
-