public class URIUtil extends Object
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 . |
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)
Copyright © 2001-2016 Aduna. All Rights Reserved.