edu.stanford.smi.protegex.owl.model.classparser.compact
Class CompactParserUtil

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.model.classparser.compact.CompactParserUtil

public class CompactParserUtil
extends Object

Author:
Holger Knublauch

Field Summary
private static Map characterMap
           
private static CompactOWLClassDisplay display
           
 
Constructor Summary
CompactParserUtil()
           
 
Method Summary
static String getParseableString(String str)
           
static String preprocess(OWLModel owlModel, String text)
          Detects usages of xsd: types as expression fillers, and makes sure that they start with xsd:.
static String preprocessFiller(OWLModel owlModel, String text)
           
static void setCharacterMap(Map map)
           
static void setUseDefaultCharacterMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

private static final CompactOWLClassDisplay display

characterMap

private static Map characterMap
Constructor Detail

CompactParserUtil

public CompactParserUtil()
Method Detail

setCharacterMap

public static void setCharacterMap(Map map)

setUseDefaultCharacterMap

public static void setUseDefaultCharacterMap()

getParseableString

public static String getParseableString(String str)

preprocess

public static String preprocess(OWLModel owlModel,
                                String text)
Detects usages of xsd: types as expression fillers, and makes sure that they start with xsd:. This is needed to simplify the grammar which grew historically. Eventually this should be cleaned up.

Parameters:
owlModel - the OWLModel
text - the text to preprocess
Returns:
the next text or the same if no xsd: types were found

preprocessFiller

public static String preprocessFiller(OWLModel owlModel,
                                      String text)