org.wsmo.wsml
Interface Parser


public interface Parser

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
not attributable

Field Summary
static String CACHE_LOGICALEXPRESSION_STRING
           
static String CLEAR_MODEL
           
 
Method Summary
 List<Object> getErrors()
          This method returns a List containing errors that occured during the parsing.
 List<Object> getWarnings()
          This method returns a List containing warnings that occured during the parsing.
 Set<String> listKeywords()
          List known keywords.
 TopEntity[] parse(Reader src)
          Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.
 TopEntity[] parse(Reader src, Map options)
          Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.
 TopEntity[] parse(StringBuffer src)
          Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.
 TopEntity[] parse(StringBuffer src, Map options)
          Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.
 

Field Detail

CLEAR_MODEL

static final String CLEAR_MODEL
See Also:
Constant Field Values

CACHE_LOGICALEXPRESSION_STRING

static final String CACHE_LOGICALEXPRESSION_STRING
See Also:
Constant Field Values
Method Detail

parse

TopEntity[] parse(Reader src)
                  throws IOException,
                         ParserException,
                         InvalidModelException
Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.

Parameters:
src - The reader to read from
Returns:
a top level WSMO entity found in the input
Throws:
IOException
ParserException
InvalidModelException

parse

TopEntity[] parse(Reader src,
                  Map options)
                  throws IOException,
                         ParserException,
                         InvalidModelException
Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.

Parameters:
src - The reader to read from
options - an optional Map with user supplied options specific to this parse operation
Returns:
a top level WSMO entity found in the input
Throws:
IOException
ParserException
InvalidModelException

parse

TopEntity[] parse(StringBuffer src)
                  throws ParserException,
                         InvalidModelException
Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.

Parameters:
src - The string buffer to read from
Returns:
top level WSMO entity found in the input
Throws:
ParserException
InvalidModelException

parse

TopEntity[] parse(StringBuffer src,
                  Map options)
                  throws ParserException,
                         InvalidModelException
Parses the input data consisted of Ontology, Goal, Mediator or WebServices definitions.

Parameters:
src - The string buffer to read from
options - an optional Map with user supplied options specific to this parse operation
Returns:
top level WSMO entity found in the input
Throws:
ParserException
InvalidModelException

listKeywords

Set<String> listKeywords()
List known keywords.

Returns:
set of known keywords

getWarnings

List<Object> getWarnings()
This method returns a List containing warnings that occured during the parsing.

Returns:
List of collected warnings

getErrors

List<Object> getErrors()
This method returns a List containing errors that occured during the parsing.

Returns:
List of collected errors


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