public final class NUPNReader extends Object
This class provides useful methods to parse NUPN
It can also load this NUPN toolinfo model from XML files that only contain the
This class is not thread-safe.
Constructor and Description |
---|
NUPNReader() |
Modifier and Type | Method and Description |
---|---|
static NUPNToolspecificType |
loadNUPNToolInfoAsToolspecificType(String nupnXmlToolInfo)
Returns the root model object of a NUPN
ToolspecificType type. |
static org.eclipse.emf.ecore.EObject |
loadNUPNToolInfoFromFile(File nupnXmlToolInfoFile)
Returns the root model object and there you have it, all you need is to
cast it to the right EObject based on your model, in this case
ToolspecificType . |
static org.eclipse.emf.ecore.EObject |
loaNUPNToolInfo(String nupnXmlToolInfo)
Returns the root model object of a NUPN
|
public static org.eclipse.emf.ecore.EObject loaNUPNToolInfo(String nupnXmlToolInfo) throws IOException
The section must begin with the
nupnXmlToolInfo
- the NUPN toolspecific section in PNML, as a String
(returned by PNML Framework's ToolInfo#getFormattedXMLBuffer().toString()).IOException
#loadToolInfoAsToolspecificType(String)}
public static NUPNToolspecificType loadNUPNToolInfoAsToolspecificType(String nupnXmlToolInfo) throws IOException
ToolspecificType
type.
The section must begin with the
nupnXmlToolInfo
- the NUPN toolspecific section in PNML, as a String
(returned by PNML Framework's ToolInfo#getFormattedXMLBuffer().toString()).ToolspecificType
IOException
#loaNUPNToolInfo(String)}
public static org.eclipse.emf.ecore.EObject loadNUPNToolInfoFromFile(File nupnXmlToolInfoFile) throws IOException
ToolspecificType
.nupnXmlToolInfoFile
- IOException
Copyright © 2009–2016 Univ. Paris Ouest, and Univ. Pierre et Marie Curie / CNRS UMR 7606 (LIP6). All rights reserved.