org.jboss.soa.esb.listeners.config.model
Class ModelParser

java.lang.Object
  extended by org.jboss.soa.esb.listeners.config.model.ModelParser

public class ModelParser
extends java.lang.Object

Handle parsing of different schemas into model adapter. Kevin Conner


Constructor Summary
ModelParser()
           
 
Method Summary
static ModelParser getParser()
          Get the model parser singleton.
 ModelAdapter parse(java.io.Reader config)
          Get a model adapter from the input.
 boolean validate(java.io.Reader config)
          Validate a model from the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelParser

public ModelParser()
Method Detail

getParser

public static ModelParser getParser()
Get the model parser singleton.

Returns:
The model parser singleton.

parse

public ModelAdapter parse(java.io.Reader config)
                   throws ModelException
Get a model adapter from the input.

Parameters:
config - The configuration input.
Returns:
The appropriate model adapter.
Throws:
ModelException

validate

public boolean validate(java.io.Reader config)
Validate a model from the input.

Parameters:
config - The configuration input.
Returns:
true if valid, false otherwise.