Package com.networknt.schema
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the scheme of the IRI.static String
Returns the scheme of the IRI.protected String
Returns the scheme and authority components of the IRI.protected static String
getSchemeAuthority
(String iri) Returns the scheme and authority components of the IRI.int
hashCode()
static AbsoluteIri
Constructs a new IRI given the value.protected static String
Constructs a new IRI by parsing the given string and then resolving it against this IRI.static String
Constructs a new IRI by parsing the given string and then resolving it against this IRI.toString()
-
Constructor Details
-
AbsoluteIri
Constructs a new IRI given the value.- Parameters:
value
- String
-
-
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
Gets the scheme of the IRI.- Returns:
- the scheme
-
getSchemeAuthority
Returns the scheme and authority components of the IRI.- Returns:
- the scheme and authority components
-
resolve
Constructs a new IRI by parsing the given string and then resolving it against this IRI.- Parameters:
parent
- the parent absolute IRIiri
- to resolve- Returns:
- the new absolute IRI
-
parent
-
getSchemeAuthority
Returns the scheme and authority components of the IRI.- Parameters:
iri
- to parse- Returns:
- the scheme and authority components
-
getScheme
Returns the scheme of the IRI.- Parameters:
iri
- to parse- Returns:
- the scheme
-
toString
-
hashCode
public int hashCode() -
equals
-