public class LEMSDocumentReader extends Object implements ILEMSDocumentReader
Constructor and Description |
---|
LEMSDocumentReader() |
Modifier and Type | Method and Description |
---|---|
static ILEMSRunConfiguration |
getLEMSRunConfiguration(ILEMSDocument lemsDocument) |
static String |
getTarget(ILEMSDocument lemsDocument) |
ILEMSDocument |
readModel(File modelFile) |
ILEMSDocument |
readModel(String modelContent) |
ILEMSDocument |
readModel(URL modelURL)
Read a LEMS model from a URL into an object
|
public ILEMSDocument readModel(URL modelURL) throws IOException, ContentError
ILEMSDocumentReader
readModel
in interface ILEMSDocumentReader
modelURL
- the URL of the model to readIOException
ContentError
public ILEMSDocument readModel(String modelContent) throws IOException, ContentError
readModel
in interface ILEMSDocumentReader
IOException
ContentError
public static ILEMSRunConfiguration getLEMSRunConfiguration(ILEMSDocument lemsDocument) throws ContentError, ParseError
ContentError
ParseError
public static String getTarget(ILEMSDocument lemsDocument) throws ContentError, ParseError
ContentError
ParseError
public ILEMSDocument readModel(File modelFile) throws IOException, ContentError
readModel
in interface ILEMSDocumentReader
IOException
ContentError
Copyright © 2019. All rights reserved.