public class ProtectedXmlModelFactory
extends ro.isdc.wro.model.factory.AbstractWroModelFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
The alias for this model factory used by spi provider.
|
protected ro.isdc.wro.model.resource.locator.factory.UriLocatorFactory |
locatorFactory
Used to locate imports;
|
protected ro.isdc.wro.model.WroModel |
model
The model being created.
|
protected Set<String> |
processedImports
Used to detect recursive import processing.
|
protected static String |
TAG_IMPORT
Import tag used in xml.
|
| Constructor and Description |
|---|
ProtectedXmlModelFactory()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ro.isdc.wro.model.WroModel |
create() |
protected Document |
createDocument() |
protected ro.isdc.wro.model.WroModel |
createImportedModel(String modelLocation) |
protected String |
getDefaultModelFilename() |
protected void |
parseGroups()
Parse the document and creates groups which are added to the provided model.
|
protected void |
processGroups(Document document)
Initialize the map
|
protected void |
processImports(Document document) |
ProtectedXmlModelFactory |
setValidateXml(boolean validateXml)
Allows disable the xml validation (which is true by default.
|
public static final String ALIAS
protected static final String TAG_IMPORT
@Inject protected ro.isdc.wro.model.resource.locator.factory.UriLocatorFactory locatorFactory
protected final Set<String> processedImports
protected ro.isdc.wro.model.WroModel model
public ro.isdc.wro.model.WroModel create()
protected Document createDocument()
Document of the xml containing model representation.protected void processGroups(Document document)
protected void processImports(Document document)
protected ro.isdc.wro.model.WroModel createImportedModel(String modelLocation)
modelLocation - the path where the model is located.WroModel created from provided modelLocation.protected void parseGroups()
document - to parse.protected String getDefaultModelFilename()
getDefaultModelFilename in class ro.isdc.wro.model.factory.AbstractWroModelFactorypublic ProtectedXmlModelFactory setValidateXml(boolean validateXml)
Copyright © 2012–2013 CodeLutin. All rights reserved.