|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.nrl.parser.model.xsd.XSDModelLoader
public class XSDModelLoader
The main XML Schema model loader class. Call load(File)
to load a file and its
includes and imports as an NRL model or load(Resource, File)
if you already
have a handle on the EMF resource containing the schema.
Field Summary |
---|
Fields inherited from interface net.sourceforge.nrl.parser.model.xsd.IXSDUserData |
---|
CONTAINING_TYPE, NAMESPACE, SUBSTITUTABLE, SUBSTITUTION_FOR |
Constructor Summary | |
---|---|
XSDModelLoader()
|
Method Summary | |
---|---|
List<String> |
getWarnings()
Return the list of warning strings created during the last load operation. |
IPackage |
load(File file)
Load a model contained in the specified file. |
IPackage |
load(org.eclipse.emf.ecore.resource.Resource res,
File file)
Load with no options. |
IPackage |
load(org.eclipse.emf.ecore.resource.Resource res,
File file,
Map<?,?> options)
Load using an ECore resource and an option map. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSDModelLoader()
Method Detail |
---|
public List<String> getWarnings()
public IPackage load(File file) throws Exception
The method currently also ignores all ClassNotFoundException and PackageNotFoundException errors, to ignore problems where a profile is not found.
file
- the file to load
Exception
public IPackage load(org.eclipse.emf.ecore.resource.Resource res, File file) throws Exception
Exception
public IPackage load(org.eclipse.emf.ecore.resource.Resource res, File file, Map<?,?> options) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |