Search in sources :

Example 11 with WSDataModelE

use of org.talend.mdm.repository.model.mdmserverobject.WSDataModelE in project tmdm-studio-se by Talend.

the class NewDataModelAction method newBlankDataModel.

private WSDataModelE newBlankDataModel(String key) {
    WSDataModelE dataModel = MdmserverobjectFactory.eINSTANCE.createWSDataModelE();
    dataModel.setName(key);
    // 
    String defaultXSD = // $NON-NLS-1$
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + // $NON-NLS-1$
    "<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"/>";
    dataModel.setXsdSchema(defaultXSD);
    // 
    return dataModel;
}
Also used : WSDataModelE(org.talend.mdm.repository.model.mdmserverobject.WSDataModelE)

Aggregations

WSDataModelE (org.talend.mdm.repository.model.mdmserverobject.WSDataModelE)11 WSDataModelItem (org.talend.mdm.repository.model.mdmproperties.WSDataModelItem)4 XSDSchema (org.eclipse.xsd.XSDSchema)3 File (java.io.File)2 FileInputStream (java.io.FileInputStream)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 ItemState (org.talend.core.model.properties.ItemState)2 ImportExchangeOptionsDialog (com.amalto.workbench.dialogs.ImportExchangeOptionsDialog)1 XtentisException (com.amalto.workbench.utils.XtentisException)1 WSConceptKey (com.amalto.workbench.webservices.WSConceptKey)1 WSDataModel (com.amalto.workbench.webservices.WSDataModel)1 FileFilter (java.io.FileFilter)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 ArrayList (java.util.ArrayList)1 CoreException (org.eclipse.core.runtime.CoreException)1 URI (org.eclipse.emf.common.util.URI)1 EObject (org.eclipse.emf.ecore.EObject)1