org.mulgara.jena.shared.impl
Class Util

java.lang.Object
  extended by org.mulgara.jena.shared.impl.Util

public class Util
extends Object


Constructor Summary
Util()
           
 
Method Summary
static boolean notNameChar(char ch)
          answer true iff this is not a legal NCName character, ie, is a possible split-point start.
static int splitNamespace(String uri)
          Given an absolute URI, determine the split point between the namespace part and the localname part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

notNameChar

public static boolean notNameChar(char ch)
answer true iff this is not a legal NCName character, ie, is a possible split-point start.


splitNamespace

public static int splitNamespace(String uri)
Given an absolute URI, determine the split point between the namespace part and the localname part. If there is no valid localname part then the length of the string is returned. The algorithm tries to find the longest NCName at the end of the uri, not immediately preceeded by the first colon in the string.

Parameters:
uri -
Returns:
the index of the first character of the localname


Copyright © 2011. All Rights Reserved.