| Constructor and Description |
|---|
URIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getLocalNameIndex(String uri)
Finds the index of the first local name character in an (non-relative) URI.
|
static boolean |
isCorrectURISplit(String namespace,
String localName)
Checks whether the URI consisting of the specified namespace and local name has been split correctly according to
the URI splitting rules specified in
URI. |
static boolean |
isValidURIReference(String uriRef)
Verifies that the supplied string is a valid RDF (1.0) URI reference, as defined in
section 6.4 of the RDF
Concepts and Abstract Syntax specification (RDF 1.0 Recommendation of February 10, 2004).
|
public static int getLocalNameIndex(String uri)
IllegalArgumentException.uri - A URI string.IllegalArgumentException - If the supplied URI string doesn't contain any of the separator characters.
Every legal (non-relative) URI contains at least one ':' character to seperate
the scheme from the rest of the URI.public static boolean isCorrectURISplit(String namespace, String localName)
URI.namespace - The URI's namespace, must not be null.localName - The URI's local name, must not be null.URI,
getLocalNameIndex(String)public static boolean isValidURIReference(String uriRef)
An RDF URI reference is valid if it is a Unicode string that:
uriRef - a string representing an RDF URI reference.true iff the supplied string is a syntactically valid RDF URI reference, false
otherwise.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.