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  SchemaFactory schemaFactory
           
protected  Map<String,Schema> schemas
           
 
Constructor Summary
protected AbstractModelParser()
           
 
Method Summary
protected  void addSchema(String namespaceURI, Schema schema)
           
protected  void configureFactory(DocumentBuilderFactory dbf)
          allows subclasses to configure the DocumentBuilderFactory.
protected abstract  ModelInstance createModelInstance(DomDocument document)
           
protected  Schema createSchema(String location, ClassLoader classLoader)
           
 ModelInstance getEmptyModel()
           
protected  Schema getSchema(DomDocument document)
           
 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

schemas

protected Map<String,Schema> schemas
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

getSchema

protected Schema getSchema(DomDocument document)

addSchema

protected void addSchema(String namespaceURI,
                         Schema schema)

createSchema

protected Schema createSchema(String location,
                              ClassLoader classLoader)

createModelInstance

protected abstract ModelInstance createModelInstance(DomDocument document)


Copyright © 2015 camunda services GmbH. All rights reserved.