public abstract class AbstractModelParser extends Object
Type | Property and Description |
---|---|
protected String |
resolveAccessExternalSchema |
Modifier and Type | Field and 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 |
Modifier | Constructor and Description |
---|---|
protected |
AbstractModelParser() |
Modifier and Type | Method and Description |
---|---|
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) |
protected String |
resolveAccessExternalSchemaProperty() |
void |
validateModel(DomDocument document)
Validate DOM document
|
protected String resolveAccessExternalSchemaProperty
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
protected SchemaFactory schemaFactory
protected void configureFactory(DocumentBuilderFactory dbf)
DocumentBuilderFactory
.dbf
- the factory to configureprotected String resolveAccessExternalSchemaProperty()
public ModelInstance parseModelFromStream(InputStream inputStream)
public ModelInstance getEmptyModel()
public void validateModel(DomDocument document)
document
- the DOM document to validateprotected Schema getSchema(DomDocument document)
protected Schema createSchema(String location, ClassLoader classLoader)
protected abstract ModelInstance createModelInstance(DomDocument document)
Copyright © 2019. All rights reserved.