org.scribble.protocol.parser
Class DefaultProtocolParserManager

java.lang.Object
  extended by org.scribble.protocol.parser.DefaultProtocolParserManager
All Implemented Interfaces:
ProtocolParserManager

public class DefaultProtocolParserManager
extends Object
implements ProtocolParserManager

This class represents the default implementation of the ProtocolProtocolManager interface.


Constructor Summary
DefaultProtocolParserManager()
          This is the default constructor.
 
Method Summary
 List<ProtocolParser> getParsers()
          This method returns the list of protocol parsers.
 ProtocolModel parse(ProtocolContext context, org.scribble.common.resource.Content content, org.scribble.common.logging.Journal journal)
          This method parses the supplied content to create a protocol model.
 void setParsers(List<ProtocolParser> parsers)
          This method sets the list of protocol parsers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProtocolParserManager

public DefaultProtocolParserManager()
This is the default constructor.

Method Detail

parse

public ProtocolModel parse(ProtocolContext context,
                           org.scribble.common.resource.Content content,
                           org.scribble.common.logging.Journal journal)
                    throws IOException
This method parses the supplied content to create a protocol model. Any issues are reported to the supplied journal. The protocol context is optionally used by the parser to locate additional artifacts required to construct the protocol model.

Specified by:
parse in interface ProtocolParserManager
Parameters:
context - The protocol context
content - The content to be parsed
journal - The journal for reporting issues
Returns:
The protocol model
Throws:
IOException - Failed to retrieve content to be parsed

getParsers

public List<ProtocolParser> getParsers()
This method returns the list of protocol parsers.

Specified by:
getParsers in interface ProtocolParserManager
Returns:
The list of protocol parsers

setParsers

public void setParsers(List<ProtocolParser> parsers)
This method sets the list of protocol parsers.

Specified by:
setParsers in interface ProtocolParserManager
Parameters:
parsers - The list of protocol parsers


Copyright © 2008-Present Scribble.org. All Rights Reserved.