gate.gui.ontology
Class Utils

java.lang.Object
  extended by gate.gui.ontology.Utils

public class Utils
extends Object

This class provides various static utility methods which are used by the ontology editor.

Author:
niraj

Constructor Summary
Utils()
           
 
Method Summary
static List getDetailsToAdd(Object object)
          This method returns the details to be added.
static boolean isValidNameSpace(String s)
          Checks whether the provided name space is valid name space.
static boolean isValidOntologyResourceName(String s)
          Checks whether the provided resource name is a valid resource name In this version, the resource name must match the following java regular expression
.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

isValidNameSpace

public static boolean isValidNameSpace(String s)
Checks whether the provided name space is valid name space. In this version, the namespace must match the following java regular expression.
"[a-zA-Z]+(:)(/)+[a-zA-Z0-9\\-]+((\\.)[a-zA-Z0-9\\-]+)+((/)[a-zA-Z0-9\\.\\-_]+)*(#|/)"


isValidOntologyResourceName

public static boolean isValidOntologyResourceName(String s)
Checks whether the provided resource name is a valid resource name In this version, the resource name must match the following java regular expression
. "[a-zA-Z0-9_-]+"


getDetailsToAdd

public static List getDetailsToAdd(Object object)
This method returns the details to be added.