|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.xmi.util.DefaultEcoreBuilder
public class DefaultEcoreBuilder
Default implementation of XML Schema to Ecore builder.
Field Summary | |
---|---|
protected ExtendedMetaData |
extendedMetaData
|
protected static java.lang.Class<?> |
XSD_ECORE_BUILDER_CLASS
|
protected static java.lang.reflect.Constructor<?> |
XSD_ECORE_BUILDER_CONSTRUCTOR
|
protected static java.lang.reflect.Method |
XSD_ECORE_BUILDER_GENERATE_RESOURCES_METHOD
|
Constructor Summary | |
---|---|
DefaultEcoreBuilder(ExtendedMetaData extendedMetaData)
|
Method Summary | |
---|---|
java.util.Collection<? extends Resource> |
generate(java.util.Collection<URI> uris)
Given XML Schema location URIs this method creates corresponding Ecore model(s) |
java.util.Collection<? extends Resource> |
generate(java.util.Map<java.lang.String,URI> targetNamespaceToURI)
Given a map of XML Schema targetNamespaces (String) to XML Schema location URIs, this method generates corresponding Ecore model(s). |
java.util.Collection<? extends Resource> |
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 |
---|
protected static final java.lang.Class<?> XSD_ECORE_BUILDER_CLASS
protected static final java.lang.reflect.Constructor<?> XSD_ECORE_BUILDER_CONSTRUCTOR
protected static final java.lang.reflect.Method XSD_ECORE_BUILDER_GENERATE_RESOURCES_METHOD
protected ExtendedMetaData extendedMetaData
Constructor Detail |
---|
public DefaultEcoreBuilder(ExtendedMetaData extendedMetaData)
Method Detail |
---|
public void setExtendedMetaData(ExtendedMetaData extendedMetaData)
EcoreBuilder
setExtendedMetaData
in interface EcoreBuilder
public java.util.Collection<? extends Resource> generate(URI uri) throws java.lang.Exception
EcoreBuilder
generate
in interface EcoreBuilder
uri
- - location of the XML Schema files.
java.lang.Exception
URI
public java.util.Collection<? extends Resource> generate(java.util.Map<java.lang.String,URI> targetNamespaceToURI) throws java.lang.Exception
EcoreBuilder
generate
in interface EcoreBuilder
targetNamespaceToURI
- - a map of XML Schema targetNamespaces to XML Schema location URIs
java.lang.Exception
URI
public java.util.Collection<? extends Resource> generate(java.util.Collection<URI> uris) throws java.lang.Exception
EcoreBuilder
generate
in interface EcoreBuilder
uris
- - locations of the XML Schema files.
java.lang.Exception
URI
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |