public class Model extends Object
Constructor and Description |
---|
Model()
Create a new and empty model
|
Model(File xmlFileWithModel)
Create model based on xml file
|
Model(SosImportConfigurationDocument.SosImportConfiguration sosImpConf)
Create model based on an existing one
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName() |
boolean |
laxValidate() |
boolean |
registerProvider(StepModel sm) |
boolean |
removeProvider(StepModel sm) |
boolean |
save(File file) |
void |
updateModel()
Updates the model.
|
boolean |
validate()
Should be called after final step to validate the final model.
|
public Model()
public Model(File xmlFileWithModel) throws org.apache.xmlbeans.XmlException, IOException
xmlFileWithModel
- the file containing the Model
org.apache.xmlbeans.XmlException
- thrown while parsing the file → Model
file is not valid.IOException
- having any problems while reading filepublic Model(SosImportConfigurationDocument.SosImportConfiguration sosImpConf)
sosImpConf
- public String getFileName()
public boolean registerProvider(StepModel sm)
public boolean removeProvider(StepModel sm)
public boolean save(File file) throws IOException
IOException
public void updateModel()
public boolean validate()
public boolean laxValidate()
Copyright © 2011–2019 52°North. All rights reserved.