Package org.lemsml.jlems.api
Class LEMSDocumentReader
- java.lang.Object
-
- org.lemsml.jlems.api.LEMSDocumentReader
-
- All Implemented Interfaces:
ILEMSDocumentReader
public class LEMSDocumentReader extends java.lang.Object implements ILEMSDocumentReader
-
-
Constructor Summary
Constructors Constructor Description LEMSDocumentReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ILEMSRunConfiguration
getLEMSRunConfiguration(ILEMSDocument lemsDocument)
static java.lang.String
getTarget(ILEMSDocument lemsDocument)
ILEMSDocument
readModel(java.io.File modelFile)
ILEMSDocument
readModel(java.lang.String modelContent)
ILEMSDocument
readModel(java.net.URL modelURL)
Read a LEMS model from a URL into an object
-
-
-
Method Detail
-
readModel
public ILEMSDocument readModel(java.net.URL modelURL) throws java.io.IOException, ContentError
Description copied from interface:ILEMSDocumentReader
Read a LEMS model from a URL into an object- Specified by:
readModel
in interfaceILEMSDocumentReader
- Parameters:
modelURL
- the URL of the model to read- Returns:
- the lems model
- Throws:
java.io.IOException
ContentError
-
readModel
public ILEMSDocument readModel(java.lang.String modelContent) throws java.io.IOException, ContentError
- Specified by:
readModel
in interfaceILEMSDocumentReader
- Throws:
java.io.IOException
ContentError
-
getLEMSRunConfiguration
public static ILEMSRunConfiguration getLEMSRunConfiguration(ILEMSDocument lemsDocument) throws ContentError, ParseError
- Throws:
ContentError
ParseError
-
getTarget
public static java.lang.String getTarget(ILEMSDocument lemsDocument) throws ContentError, ParseError
- Throws:
ContentError
ParseError
-
readModel
public ILEMSDocument readModel(java.io.File modelFile) throws java.io.IOException, ContentError
- Specified by:
readModel
in interfaceILEMSDocumentReader
- Throws:
java.io.IOException
ContentError
-
-