kaos.core.util
Class NamespaceValidator

java.lang.Object
  extended by kaos.core.util.NamespaceValidator

public abstract class NamespaceValidator
extends java.lang.Object


Field Summary
static java.lang.String URI_PREFIX
           
 
Constructor Summary
NamespaceValidator()
           
 
Method Summary
static java.lang.String validateURI(java.lang.String uri)
          Checks whether the given URI conforms to the format [scheme:prefix#localname].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_PREFIX

public static final java.lang.String URI_PREFIX
See Also:
Constant Field Values
Constructor Detail

NamespaceValidator

public NamespaceValidator()
Method Detail

validateURI

public static java.lang.String validateURI(java.lang.String uri)
Checks whether the given URI conforms to the format [scheme:prefix#localname]. If not, default namespace values [urn:KAoS#] are used to modify the input URI and the conforming URI is returned.

Parameters:
name - - the URI to be validated
Returns:
- the input URI modified using default namespace values if necessary