org.eclipse.emf.ecore.xmi.util
Class DefaultEcoreBuilder

java.lang.Object
  extended byorg.eclipse.emf.ecore.xmi.util.DefaultEcoreBuilder
All Implemented Interfaces:
EcoreBuilder

public class DefaultEcoreBuilder
extends Object
implements EcoreBuilder

Default implementation of XML Schema to Ecore builder. org.eclipse.xsd.ecore.XSDEcoreBuilder


Field Summary
protected  ExtendedMetaData extendedMetaData
           
protected static Class XSD_ECORE_BUILDER_CLASS
           
protected static Constructor XSD_ECORE_BUILDER_CONSTRUCTOR
           
protected static Method XSD_ECORE_BUILDER_GENERATE_RESOURCES_METHOD
           
 
Constructor Summary
DefaultEcoreBuilder(ExtendedMetaData extendedMetaData)
           
 
Method Summary
 Collection generate(Collection uris)
          Given XML Schema location URIs this method creates corresponding Ecore model(s)
 Collection generate(Map targetNamespaceToURI)
          Given a map of XML Schema targetNamespaces (String) to XML Schema location URIs, this method generates corresponding Ecore model(s).
 Collection generate(URI uri)
          Given an XML schema location URI this method creates corresponding Ecore model(s)
 void setExtendedMetaData(ExtendedMetaData extendedMetaData)
          Sets extended meta data to register generated Ecore models.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_ECORE_BUILDER_CLASS

protected static final Class XSD_ECORE_BUILDER_CLASS

XSD_ECORE_BUILDER_CONSTRUCTOR

protected static final Constructor XSD_ECORE_BUILDER_CONSTRUCTOR

XSD_ECORE_BUILDER_GENERATE_RESOURCES_METHOD

protected static final Method XSD_ECORE_BUILDER_GENERATE_RESOURCES_METHOD

extendedMetaData

protected ExtendedMetaData extendedMetaData
Constructor Detail

DefaultEcoreBuilder

public DefaultEcoreBuilder(ExtendedMetaData extendedMetaData)
Method Detail

setExtendedMetaData

public void setExtendedMetaData(ExtendedMetaData extendedMetaData)
Description copied from interface: EcoreBuilder
Sets extended meta data to register generated Ecore models. Note the same extended meta data should be used for loading/saving an instance document.

Specified by:
setExtendedMetaData in interface EcoreBuilder
Parameters:
extendedMetaData -

generate

public Collection generate(URI uri)
                    throws Exception
Description copied from interface: EcoreBuilder
Given an XML schema location URI this method creates corresponding Ecore model(s)

Specified by:
generate in interface EcoreBuilder
Parameters:
uri - - location of the XML Schema files.
Returns:
Collection of EPackage(s)
Throws:
Exception
See Also:
URI

generate

public Collection generate(Map targetNamespaceToURI)
                    throws Exception
Description copied from interface: EcoreBuilder
Given a map of XML Schema targetNamespaces (String) to XML Schema location URIs, this method generates corresponding Ecore model(s).

Specified by:
generate in interface EcoreBuilder
Parameters:
targetNamespaceToURI - - a map of XML Schema targetNamespaces to XML Schema location URIs
Returns:
Collection of EPackage(s)
Throws:
Exception
See Also:
URI

generate

public Collection generate(Collection uris)
                    throws Exception
Description copied from interface: EcoreBuilder
Given XML Schema location URIs this method creates corresponding Ecore model(s)

Specified by:
generate in interface EcoreBuilder
Parameters:
uris - - locations of the XML Schema files.
Returns:
Collection of EPackage(s)
Throws:
Exception
See Also:
URI

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.