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

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.model.classparser.compact.CompactOWLClassParser
All Implemented Interfaces:
OWLClassParser

public class CompactOWLClassParser
extends Object
implements OWLClassParser

Author:
Holger Knublauch

Constructor Summary
CompactOWLClassParser()
           
 
Method Summary
 void checkClass(OWLModel owlModel, String expression)
          Performs a test of a given expression and throws an Exception if the expression is currently invalid.
 void checkHasValueFiller(OWLModel owlModel, String expression)
           
 void checkQuantifierFiller(OWLModel owlModel, String expression)
           
 RDFSClass parseClass(OWLModel owlModel, String expression)
           
 Object parseHasValueFiller(OWLModel owlModel, String expression)
           
 RDFResource parseQuantifierFiller(OWLModel owlModel, String expression)
           
private  OWLClassParseException wrapException(ParseException ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompactOWLClassParser

public CompactOWLClassParser()
Method Detail

checkClass

public void checkClass(OWLModel owlModel,
                       String expression)
                throws OWLClassParseException
Description copied from interface: OWLClassParser
Performs a test of a given expression and throws an Exception if the expression is currently invalid.

Specified by:
checkClass in interface OWLClassParser
Parameters:
owlModel - the OWLModel to operate on
expression - the expression
Throws:
OWLClassParseException - if expression cannot be parsed

checkHasValueFiller

public void checkHasValueFiller(OWLModel owlModel,
                                String expression)
                         throws OWLClassParseException
Specified by:
checkHasValueFiller in interface OWLClassParser
Throws:
OWLClassParseException

checkQuantifierFiller

public void checkQuantifierFiller(OWLModel owlModel,
                                  String expression)
                           throws OWLClassParseException
Specified by:
checkQuantifierFiller in interface OWLClassParser
Throws:
OWLClassParseException

parseClass

public RDFSClass parseClass(OWLModel owlModel,
                            String expression)
                     throws OWLClassParseException
Specified by:
parseClass in interface OWLClassParser
Throws:
OWLClassParseException

parseHasValueFiller

public Object parseHasValueFiller(OWLModel owlModel,
                                  String expression)
                           throws OWLClassParseException
Specified by:
parseHasValueFiller in interface OWLClassParser
Throws:
OWLClassParseException

parseQuantifierFiller

public RDFResource parseQuantifierFiller(OWLModel owlModel,
                                         String expression)
                                  throws OWLClassParseException
Specified by:
parseQuantifierFiller in interface OWLClassParser
Throws:
OWLClassParseException

wrapException

private OWLClassParseException wrapException(ParseException ex)