org.deri.wsmo4j.io.parser.xml
Class XMLExprParser

java.lang.Object
  extended by org.deri.wsmo4j.io.parser.xml.XMLExprParser

public class XMLExprParser
extends Object

Author:
retkru
See Also:
LogExprParserImpl

Constructor Summary
XMLExprParser(org.wsmo.factory.WsmoFactory factory, org.wsmo.factory.LogicalExpressionFactory leFactory, org.wsmo.factory.DataFactory df)
           
 
Method Summary
 org.omwg.logicalexpression.LogicalExpression evaluateXML(Element exprNode)
          Recursively builds logical expressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLExprParser

public XMLExprParser(org.wsmo.factory.WsmoFactory factory,
                     org.wsmo.factory.LogicalExpressionFactory leFactory,
                     org.wsmo.factory.DataFactory df)
Method Detail

evaluateXML

public org.omwg.logicalexpression.LogicalExpression evaluateXML(Element exprNode)
                                                         throws org.wsmo.wsml.ParserException
Recursively builds logical expressions

Parameters:
exprNode - SableCC Node that will be parsed, it expects a Node of the type "PLogExpr"
Returns:
logical expression object model
Throws:
org.wsmo.wsml.ParserException - in case exprNode is an invalid node or in case a wrong element name for a term is submitted to the evaluateXMLTerm method
See Also:
LogExprParserImpl.parse(Object)


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.