org.camunda.bpm.model.xml.impl.parser
Class AbstractModelParser

java.lang.Object
  extended by org.camunda.bpm.model.xml.impl.parser.AbstractModelParser

public abstract class AbstractModelParser
extends Object

Author:
Daniel Meyer

Field Summary
protected  Schema schema
           
protected  SchemaFactory schemaFactory
           
 
Constructor Summary
protected AbstractModelParser()
           
 
Method Summary
protected  void configureFactory(DocumentBuilderFactory dbf)
          allows subclasses to configure the DocumentBuilderFactory.
protected abstract  ModelInstance createModelInstance(DomDocument document)
           
 ModelInstance getEmptyModel()
           
 ModelInstance parseModelFromStream(InputStream inputStream)
           
 void validateModel(DomDocument document)
          Validate DOM document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemaFactory

protected SchemaFactory schemaFactory

schema

protected Schema schema
Constructor Detail

AbstractModelParser

protected AbstractModelParser()
Method Detail

configureFactory

protected void configureFactory(DocumentBuilderFactory dbf)
allows subclasses to configure the DocumentBuilderFactory.

Parameters:
dbf - the factory to configure

parseModelFromStream

public ModelInstance parseModelFromStream(InputStream inputStream)

getEmptyModel

public ModelInstance getEmptyModel()

validateModel

public void validateModel(DomDocument document)
Validate DOM document

Parameters:
document - the DOM document to validate

createModelInstance

protected abstract ModelInstance createModelInstance(DomDocument document)


Copyright © 2014 camunda services GmbH. All rights reserved.