Class AbstractModelParser
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.parser.AbstractModelParser
-
- Direct Known Subclasses:
BpmnParser
,CmmnParser
,DmnParser
public abstract class AbstractModelParser extends Object
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
JAXP_ACCESS_EXTERNAL_SCHEMA
protected static String
JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
protected static String
JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
protected SchemaFactory
schemaFactory
protected Map<String,Schema>
schemas
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractModelParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSchema(String namespaceURI, Schema schema)
protected void
configureFactory(DocumentBuilderFactory dbf)
allows subclasses to configure theDocumentBuilderFactory
.protected abstract ModelInstance
createModelInstance(DomDocument document)
protected Schema
createSchema(String location, ClassLoader classLoader)
ModelInstance
getEmptyModel()
protected Schema
getSchema(DomDocument document)
ModelInstance
parseModelFromStream(InputStream inputStream)
protected String
resolveAccessExternalSchemaProperty()
void
validateModel(DomDocument document)
Validate DOM document
-
-
-
Field Detail
-
JAXP_ACCESS_EXTERNAL_SCHEMA
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA
- See Also:
- Constant Field Values
-
JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
- See Also:
- Constant Field Values
-
schemaFactory
protected SchemaFactory schemaFactory
-
-
Method Detail
-
configureFactory
protected void configureFactory(DocumentBuilderFactory dbf)
allows subclasses to configure theDocumentBuilderFactory
.- Parameters:
dbf
- the factory to configure
-
resolveAccessExternalSchemaProperty
protected String resolveAccessExternalSchemaProperty()
-
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)
-
createSchema
protected Schema createSchema(String location, ClassLoader classLoader)
-
createModelInstance
protected abstract ModelInstance createModelInstance(DomDocument document)
-
-