public abstract class AbstractModelParser extends Object
Modifier and Type | Field and Description |
---|---|
protected Schema |
schema |
protected SchemaFactory |
schemaFactory |
Modifier | Constructor and Description |
---|---|
protected |
AbstractModelParser() |
Modifier and Type | Method and Description |
---|---|
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
|
protected SchemaFactory schemaFactory
protected Schema schema
protected void configureFactory(DocumentBuilderFactory dbf)
DocumentBuilderFactory
.dbf
- the factory to configurepublic ModelInstance parseModelFromStream(InputStream inputStream)
public ModelInstance getEmptyModel()
public void validateModel(DomDocument document)
document
- the DOM document to validateprotected abstract ModelInstance createModelInstance(DomDocument document)
Copyright © 2015. All rights reserved.