### Eclipse Workspace Patch 1.0 #P org.jboss.tools.smooks.ui Index: plugin.xml =================================================================== --- plugin.xml (revision 20973) +++ plugin.xml (working copy) @@ -6,6 +6,7 @@ point="org.eclipse.ui.editors"> Index: src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java (working copy) @@ -3,16 +3,13 @@ import org.jboss.tools.smooks.model.dbrouting.Executor; import org.jboss.tools.smooks.model.esbrouting.RouteBean; import org.jboss.tools.smooks.model.fileRouting.OutputStream; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; import org.jboss.tools.smooks.model.jmsrouting12.JMS12Router; public class FragmentRouting11ActionGrouper extends AbstractSmooksActionGrouper { @Override protected boolean canAdd(Object value) { - if (value instanceof JmsRouter) { - return true; - } + if (value instanceof JMS12Router) { return true; } Index: src/org/jboss/tools/smooks/configuration/editors/wizard/ViewerInitorStore.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/wizard/ViewerInitorStore.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/wizard/ViewerInitorStore.java (working copy) @@ -17,14 +17,12 @@ import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.jboss.tools.smooks.configuration.editors.GraphicsConstants; -import org.jboss.tools.smooks.configuration.editors.csv.CSVInputDataWizard; import org.jboss.tools.smooks.configuration.editors.csv12.CSV12InputDataWizard; import org.jboss.tools.smooks.configuration.editors.edi.EDIDataWizard; import org.jboss.tools.smooks.configuration.editors.edireader12.EDIReader12DataWizard; import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanContentProvider; import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanStrucutredDataWizard; import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanlabelProvider; -import org.jboss.tools.smooks.configuration.editors.json.JsonDataWizard; import org.jboss.tools.smooks.configuration.editors.json12.Json12DataWizard; import org.jboss.tools.smooks.configuration.editors.xml.XMLStructuredDataContentProvider; import org.jboss.tools.smooks.configuration.editors.xml.XMLStructuredDataLabelProvider; @@ -152,15 +150,15 @@ String iconPath = null; String typeID = SmooksModelUtils.INPUT_TYPE_JSON_1_1; - jsonViewerInitor.setName(name); - jsonViewerInitor.setDescription(description); - jsonViewerInitor.setWizardIconPath(iconPath); - jsonViewerInitor.setTypeID(typeID); - jsonViewerInitor.setLabelProvider(new XMLStructuredDataLabelProvider()); - jsonViewerInitor.setTreeContentProvider(new XMLStructuredDataContentProvider()); - jsonViewerInitor.setStructuredDataLoadWizard(new JsonDataWizard()); +// jsonViewerInitor.setName(name); +// jsonViewerInitor.setDescription(description); +// jsonViewerInitor.setWizardIconPath(iconPath); +// jsonViewerInitor.setTypeID(typeID); +// jsonViewerInitor.setLabelProvider(new XMLStructuredDataLabelProvider()); +// jsonViewerInitor.setTreeContentProvider(new XMLStructuredDataContentProvider()); +// jsonViewerInitor.setStructuredDataLoadWizard(new JsonDataWizard()); // jsonViewerInitor.setWizardIconPath(GraphicsConstants.IMAGE_JAVA_FILE); - map.put(typeID, jsonViewerInitor); +// map.put(typeID, jsonViewerInitor); // for json 1.2 BaseViewerInitor json12ViewerInitor = new BaseViewerInitor(); @@ -234,21 +232,21 @@ map.put(typeID, xsdViewerInitor); // for Csv 1.1 - BaseViewerInitor csvViewerInitor = new BaseViewerInitor(); - name = "CSV"; //$NON-NLS-1$ - description = "Select CSV data file as the input data."; //$NON-NLS-1$ - iconPath = null; - typeID = SmooksModelUtils.INPUT_TYPE_CSV; - - csvViewerInitor.setName(name); - csvViewerInitor.setDescription(description); - csvViewerInitor.setWizardIconPath(iconPath); - csvViewerInitor.setTypeID(typeID); - csvViewerInitor.setLabelProvider(new XMLStructuredDataLabelProvider()); - csvViewerInitor.setTreeContentProvider(new XMLStructuredDataContentProvider()); - csvViewerInitor.setStructuredDataLoadWizard(new CSVInputDataWizard()); - csvViewerInitor.setWizardIconPath(GraphicsConstants.IMAGE_CSV_FILE); - map.put(typeID, csvViewerInitor); +// BaseViewerInitor csvViewerInitor = new BaseViewerInitor(); +// name = "CSV"; //$NON-NLS-1$ +// description = "Select CSV data file as the input data."; //$NON-NLS-1$ +// iconPath = null; +// typeID = SmooksModelUtils.INPUT_TYPE_CSV; +// +// csvViewerInitor.setName(name); +// csvViewerInitor.setDescription(description); +// csvViewerInitor.setWizardIconPath(iconPath); +// csvViewerInitor.setTypeID(typeID); +// csvViewerInitor.setLabelProvider(new XMLStructuredDataLabelProvider()); +// csvViewerInitor.setTreeContentProvider(new XMLStructuredDataContentProvider()); +// csvViewerInitor.setStructuredDataLoadWizard(new CSVInputDataWizard()); +// csvViewerInitor.setWizardIconPath(GraphicsConstants.IMAGE_CSV_FILE); +// map.put(typeID, csvViewerInitor); // for Csv 1.2 BaseViewerInitor csv12ViewerInitor = new BaseViewerInitor(); Index: src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java (working copy) @@ -22,10 +22,12 @@ import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.ui.IEditorActionBarContributor; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IEditorSite; import org.eclipse.ui.PartInitException; +import org.eclipse.ui.part.MultiPageEditorActionBarContributor; import org.eclipse.ui.views.properties.IPropertySheetPage; import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor; import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; @@ -104,19 +106,18 @@ } private void addProcessGraphicalEditor() { - processPage = new SmooksProcessGraphicalEditor(this, "process", Messages.SmooksMultiFormEditor_processpage_name, this); //$NON-NLS-1$ + processPage = new SmooksProcessGraphicalEditor(this, + "process", Messages.SmooksMultiFormEditor_processpage_name, this); //$NON-NLS-1$ addSourceSynchronizeListener(processPage); addValidateListener(processPage); addSmooksEditorInitListener(processPage); try { - int index = this.addPage(processPage ); + int index = this.addPage(processPage); setPageText(index, Messages.SmooksMultiFormEditor_processtabel_label); } catch (PartInitException e) { e.printStackTrace(); } } - - // private void addSmooksGraphicalEditor() { // graphicalPage = new SmooksGraphicalEditorPart(this); @@ -129,34 +130,53 @@ // } // } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.forms.editor.FormEditor#getActiveEditor() */ @Override public IEditorPart getActiveEditor() { int index = getActivePage(); if (index != -1) { - IEditorPart part = getEditor(index); - if(part == null){ -// if(index == 0){ -// part = processPage; -// } -// if(index == 1){ -// part = configurationPage; -// } + IEditorPart part = getEditor(index); + if (part == null) { + // if(index == 0){ + // part = processPage; + // } + // if(index == 1){ + // part = configurationPage; + // } } return part; } return null; } - /* (non-Javadoc) - * @see org.jboss.tools.smooks.editor.AbstractSmooksFormEditor#init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput) + protected void pageChange(int newPageIndex) { + super.pageChange(newPageIndex); + IEditorPart activeEditor = getEditor(newPageIndex); + if (activeEditor == null) { + if (newPageIndex == 0) { + IEditorActionBarContributor contributor = getEditorSite().getActionBarContributor(); + if (contributor != null && contributor instanceof MultiPageEditorActionBarContributor) { + ((MultiPageEditorActionBarContributor) contributor).setActivePage(processPage); + } + } + } + } + + /* + * (non-Javadoc) + * + * @see + * org.jboss.tools.smooks.editor.AbstractSmooksFormEditor#init(org.eclipse + * .ui.IEditorSite, org.eclipse.ui.IEditorInput) */ @Override public void init(IEditorSite site, IEditorInput input) throws PartInitException { super.init(site, input); -// site.setSelectionProvider(this); + // site.setSelectionProvider(this); } public Object getAdapter(Class adapter) { @@ -164,13 +184,13 @@ tabbedPropertySheetPage = new TabbedPropertySheetPage(this); return tabbedPropertySheetPage; } - - if(adapter == GraphicalViewer.class){ - if(this.processPage != null){ + + if (adapter == GraphicalViewer.class) { + if (this.processPage != null) { Object activeEditorPart = processPage.getActiveEditorPage(); - if(activeEditorPart != null && activeEditorPart instanceof IEditorPart){ - if(activeEditorPart instanceof GraphicalEditor){ - return ((IEditorPart)activeEditorPart).getAdapter(adapter); + if (activeEditorPart != null && activeEditorPart instanceof IEditorPart) { + if (activeEditorPart instanceof GraphicalEditor) { + return ((IEditorPart) activeEditorPart).getAdapter(adapter); } } } @@ -185,7 +205,8 @@ // } private SmooksConfigurationOverviewPage createSmooksConfigurationOverviewPage() { - return new SmooksConfigurationOverviewPage(this, "options_page", Messages.SmooksMultiFormEditor_optinepage_name, this); //$NON-NLS-1$ + return new SmooksConfigurationOverviewPage(this, + "options_page", Messages.SmooksMultiFormEditor_optinepage_name, this); //$NON-NLS-1$ } @Override Index: src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java (working copy) @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.json; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.forms.widgets.FormToolkit; -import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; -import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; -import org.jboss.tools.smooks.editor.ISmooksModelProvider; - -/** - * @author Dart Peng (dpeng@redhat.com) Date Apr 10, 2009 - */ -public class KeyMapUICreator extends PropertyUICreator { - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator# - * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit, - * org.eclipse.swt.widgets.Composite, - * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object, - * org.eclipse.emf.ecore.EAttribute) - */ - public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent, - IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature, - ISmooksModelProvider formEditor, IEditorPart part) { - - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor,part); - } - -} \ No newline at end of file Index: src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java (working copy) @@ -1,95 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.json; - -import java.util.List; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.forms.widgets.FormToolkit; -import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; -import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; -import org.jboss.tools.smooks.editor.ISmooksModelProvider; - -/** - * @author Dart Peng (dpeng@redhat.com) Date Apr 10, 2009 - */ -public class JsonReaderUICreator extends PropertyUICreator { - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator# - * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit, - * org.eclipse.swt.widgets.Composite, - * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object, - * org.eclipse.emf.ecore.EAttribute) - */ - public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent, - IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature, - ISmooksModelProvider formEditor, IEditorPart part) { -// if (feature == JsonPackage.eINSTANCE.getJsonReader_ArrayElementName()) { -// } -// if (feature == JsonPackage.eINSTANCE.getJsonReader_Encoding()) { -// } -// if (feature == JsonPackage.eINSTANCE.getJsonReader_IllegalElementNameCharReplacement()) { -// } -// if (feature == JsonPackage.eINSTANCE.getJsonReader_KeyPrefixOnNumeric()) { -// } -// if (feature == JsonPackage.eINSTANCE.getJsonReader_KeyWhitspaceReplacement()) { -// } -// if (feature == JsonPackage.eINSTANCE.getJsonReader_NullValueReplacement()) { -// } -// if (feature == JsonPackage.eINSTANCE.getJsonReader_RootName()) { -// } - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor, part); - } - - @Override - public List createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, - FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart editorPart) { -// if (model instanceof JsonReader) { -// EObject keyMap = ((JsonReader) model).getKeyMap(); -// if (keyMap != null) { -// Group group = new Group(parent, SWT.NONE); -// group.setText(Messages.JsonReaderUICreator_KeysMapLabel); -// group.setBackground(ColorConstants.white); -// FillLayout fl = new FillLayout(); -// group.setLayout(fl); -// -// ModelChildrenTablePanelCreator creator = new ModelChildrenTablePanelCreator(formEditor, keyMap, -// toolkit, editorPart) { -// -// @Override -// protected EStructuralFeature getChildrenFeature() { -// return JsonPackage.Literals.KEY_MAP__KEY; -// } -// -// @Override -// protected EObject newChildModel() { -// return JsonFactory.eINSTANCE.createKey(); -// } -// }; -// creator.createChildrenTablePanel(group); -// GridData gd = new GridData(GridData.FILL_HORIZONTAL); -// gd.heightHint = 200; -// gd.horizontalSpan = 2; -// group.setLayoutData(gd); -// } -// } - - return super.createExtendUIOnBottom(editingdomain, toolkit, parent, model, formEditor, editorPart); - } - -} \ No newline at end of file Index: src/org/jboss/tools/smooks/configuration/editors/json/messages.properties =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/messages.properties (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/messages.properties (working copy) @@ -1,5 +0,0 @@ -JsonDataPathWizardPage_WizardDes=Select a JSON data file -JsonDataPathWizardPage_WIzardTitle=JSON file selection -JsonDataWizard_PageText=JSON Input Data Selection -JsonDataWizard_WizardTitle=JSON Input Data Wizard -#JsonReaderUICreator_KeysMapLabel=Keys Map Index: src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java (working copy) @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.json; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.forms.widgets.FormToolkit; -import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; -import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; -import org.jboss.tools.smooks.editor.ISmooksModelProvider; - -/** - * @author Dart Peng (dpeng@redhat.com) Date Apr 10, 2009 - */ -public class KeyUICreator extends PropertyUICreator { - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator# - * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit, - * org.eclipse.swt.widgets.Composite, - * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object, - * org.eclipse.emf.ecore.EAttribute) - */ - public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent, IItemPropertyDescriptor propertyDescriptor, Object model, - EAttribute feature, ISmooksModelProvider formEditor,IEditorPart part) { -// if (feature == JsonPackage.eINSTANCE.getKey_Value()) { -// } -// if (feature == JsonPackage.eINSTANCE.getKey_From()) { -// } -// if (feature == JsonPackage.eINSTANCE.getKey_To()) { -// } - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor,part); - } - -} \ No newline at end of file Index: src/org/jboss/tools/smooks/configuration/editors/json/JsonDataPathWizardPage.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/JsonDataPathWizardPage.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/JsonDataPathWizardPage.java (working copy) @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.json; - -import java.util.List; - -import org.eclipse.jface.viewers.ViewerFilter; -import org.jboss.tools.smooks.configuration.editors.xml.AbstractFileSelectionWizardPage; - -/** - * @author Dart (dpeng@redhat.com) - * - */ -public class JsonDataPathWizardPage extends AbstractFileSelectionWizardPage { - - public JsonDataPathWizardPage(String pageName, boolean multiSelect, Object[] initSelections, - List filters) { - super(pageName, multiSelect, initSelections, filters); - } - - public JsonDataPathWizardPage(String pageName, String[] fileExtensionNames) { - super(pageName, fileExtensionNames); - this.setTitle(Messages.JsonDataPathWizardPage_WIzardTitle); - this.setDescription(Messages.JsonDataPathWizardPage_WizardDes); - } - - - - /* (non-Javadoc) - * @see org.jboss.tools.smooks.configuration.editors.xml.AbstractFileSelectionWizardPage#loadedTheObject(java.lang.String) - */ - @Override - protected Object loadedTheObject(String path) throws Exception { - return null; - } - - @Override - protected void changeWizardPageStatus() { - super.changeWizardPageStatus(); - } - - @Override - public boolean canFlipToNextPage() { - return super.canFlipToNextPage(); -// String filePath = this.getFilePath(); -// try { -// filePath = SmooksUIUtils.parseFilePath(filePath); -// if(filePath == null) return false; -// return new File(filePath).exists(); -// } catch (InvocationTargetException e) { -// return false; -// } - } -} Index: src/org/jboss/tools/smooks/configuration/editors/json/JsonDataWizard.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/JsonDataWizard.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/JsonDataWizard.java (working copy) @@ -1,302 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.json; - -import java.util.Iterator; -import java.util.List; -import java.util.Properties; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IEditorSite; -import org.eclipse.ui.IFileEditorInput; -import org.eclipse.ui.INewWizard; -import org.eclipse.ui.IWorkbench; -import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor; -import org.jboss.tools.smooks.configuration.editors.json.JsonDataConfiguraitonWizardPage.KeyValueModel; -import org.jboss.tools.smooks.configuration.editors.uitls.JsonInputDataParser; -import org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard; -import org.jboss.tools.smooks.model.smooks.DocumentRoot; -import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; -import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils; - -/** - * @author Dart (dpeng@redhat.com) - * - */ -public class JsonDataWizard extends Wizard implements IStructuredDataSelectionWizard, INewWizard { - - private JsonDataPathWizardPage pathPage = null; - - private JsonDataConfiguraitonWizardPage configPage = null; - - private SmooksResourceListType resourceList; - - private EditingDomain editingDomain; - - private IContainer folder = null; - - public JsonDataWizard() { - super(); - this.setWindowTitle(Messages.JsonDataWizard_WizardTitle); - } - - public boolean canFinish() { - if (pathPage != null) { - return pathPage.isPageComplete(); - } - if (configPage != null && pathPage != null) { - if (configPage.isPageComplete() && pathPage.isPageComplete()) - return true; - } - return false; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.wizard.Wizard#addPages() - */ - @Override - public void addPages() { - super.addPages(); - if (pathPage == null) { - pathPage = new JsonDataPathWizardPage(Messages.JsonDataWizard_PageText, new String[] { "jsn" }); //$NON-NLS-1$ - if (folder != null) { - pathPage.setInitSelections(new Object[] { folder }); - } - } - // if (configPage == null) { - // configPage = new - // JsonDataConfiguraitonWizardPage("Json data configuration page"); - // configPage.setSmooksResourceList(resourceList); - // } - this.addPage(pathPage); - // this.addPage(configPage); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.wizard.Wizard#performFinish() - */ - @Override - public boolean performFinish() { - if (editingDomain == null || resourceList == null) { - return true; - } - if (configPage != null && configPage.isCreateJsonReader()) { -// List keyMapList = configPage.getKeyValueList(); -// -// JsonReader reader = JsonFactory.eINSTANCE.createJsonReader(); -// if (keyMapList != null && !keyMapList.isEmpty()) { -// KeyMap map = JsonFactory.eINSTANCE.createKeyMap(); -// for (Iterator iterator = keyMapList.iterator(); iterator.hasNext();) { -// KeyValueModel keyValueModel = (KeyValueModel) iterator.next(); -// String key = keyValueModel.getKey(); -// String value = keyValueModel.getValue(); -// Key k = JsonFactory.eINSTANCE.createKey(); -// k.setFrom(key); -// k.setTo(value); -// map.getKey().add(k); -// } -// reader.setKeyMap(map); -// } -// -// String aen = configPage.getArrayElementName(); -// if (aen != null && aen.length() != 0) { -// reader.setArrayElementName(aen); -// } -// -// String rn = configPage.getRootName(); -// if (rn != null && rn.length() != 0) { -// reader.setRootName(rn); -// } -// -// String encoding = configPage.getEncoding(); -// if (encoding != null && encoding.length() != 0) { -// reader.setEncoding(encoding); -// } -// -// String sr = configPage.getKeyWhitspaceReplacement(); -// if (sr != null && sr.length() != 0) { -// reader.setKeyWhitspaceReplacement(sr); -// } -// -// String pon = configPage.getKeyPrefixOnNumeric(); -// if (pon != null && pon.length() != 0) { -// reader.setKeyPrefixOnNumeric(pon); -// } -// -// String nvr = configPage.getNullValueReplacement(); -// if (nvr != null && nvr.length() != 0) { -// reader.setNullValueReplacement(nvr); -// } -// -// String ier = configPage.getIllegalElementNameCharReplacement(); -// if (ier != null && ier.length() != 0) { -// reader.setIllegalElementNameCharReplacement(ier); -// } -// Command command = AddCommand.create(editingDomain, resourceList, -// SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil -// .createEntry(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, reader)); -// editingDomain.getCommandStack().execute(command); - } - return true; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, - * org.eclipse.jface.viewers.IStructuredSelection) - */ - public void init(IWorkbench workbench, IStructuredSelection selection) { - // TODO Auto-generated method stub - - } - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.wizard. - * IStructuredDataSelectionWizard#getInputDataTypeID() - */ - public String getInputDataTypeID() { - // TODO Auto-generated method stub - return SmooksModelUtils.INPUT_TYPE_JSON_1_1; - } - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.wizard. - * IStructuredDataSelectionWizard#getProperties() - */ - public Properties getProperties() { - Properties properties = new Properties(); - fillProperties(properties); - return properties; - } - - private void fillProperties(Properties p) { - if (configPage != null) { - - boolean createJsonReader = configPage.isCreateJsonReader(); - boolean useJsonReader = configPage.isUseAvailabelReader(); - if (createJsonReader || useJsonReader) { - p.setProperty(JsonInputDataParser.LINK_JSON_READER, "true"); //$NON-NLS-1$ - return; - } - - List keyMapList = configPage.getKeyValueList(); - for (Iterator iterator = keyMapList.iterator(); iterator.hasNext();) { - KeyValueModel keyValueModel = (KeyValueModel) iterator.next(); - String key = keyValueModel.getKey(); - String value = keyValueModel.getValue(); - p.setProperty(JsonInputDataParser.KEY + key, value); - } - - String aen = configPage.getArrayElementName(); - if (aen != null && aen.length() != 0) { - p.setProperty(JsonInputDataParser.ARRAY_ELEMENT_NAME, aen); - } - - String rn = configPage.getRootName(); - if (rn != null && rn.length() != 0) { - p.setProperty(JsonInputDataParser.ROOT_NAME, rn); - } - - String encoding = configPage.getEncoding(); - if (encoding != null && encoding.length() != 0) { - p.setProperty(JsonInputDataParser.ENCODING2, encoding); - } - - String sr = configPage.getKeyWhitspaceReplacement(); - if (sr != null && sr.length() != 0) { - p.setProperty(JsonInputDataParser.SPACE_REPLACE, sr); - } - - String pon = configPage.getKeyPrefixOnNumeric(); - if (pon != null && pon.length() != 0) { - p.setProperty(JsonInputDataParser.PREFIX_ON_NUMERIC, pon); - } - - String nvr = configPage.getNullValueReplacement(); - if (nvr != null && nvr.length() != 0) { - p.setProperty(JsonInputDataParser.NULL_REPLACE, nvr); - } - - String ier = configPage.getIllegalElementNameCharReplacement(); - if (ier != null && ier.length() != 0) { - p.setProperty(JsonInputDataParser.ILLEGAL_REPLACE, ier); - } - } - } - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.wizard. - * IStructuredDataSelectionWizard#getReturnData() - */ - public Object getReturnData() { - // TODO Auto-generated method stub - return null; - } - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.wizard. - * IStructuredDataSelectionWizard#getStructuredDataSourcePath() - */ - public String getStructuredDataSourcePath() { - if (pathPage != null) { - return pathPage.getFilePath(); - } - return null; - } - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.wizard. - * IStructuredDataSelectionWizard#init(org.eclipse.ui.IEditorSite, - * org.eclipse.ui.IEditorInput) - */ - public void init(IEditorSite site, IEditorInput input) { - IEditorPart editorPart = site.getWorkbenchWindow().getActivePage().findEditor(input); - if (editorPart != null && editorPart instanceof SmooksMultiFormEditor) { - SmooksMultiFormEditor formEditor = (SmooksMultiFormEditor) editorPart; - Object smooksModel = formEditor.getSmooksModel(); - if (smooksModel instanceof DocumentRoot) { - resourceList = ((DocumentRoot) smooksModel).getSmooksResourceList(); - } - editingDomain = formEditor.getEditingDomain(); - } - folder = ((IFileEditorInput) input).getFile().getParent(); - if (pathPage != null && folder != null) { - pathPage.setInitSelections(new Object[] { folder }); - } - if (configPage != null) { - configPage.setSmooksResourceList(resourceList); - } - } - - public void complate(SmooksMultiFormEditor formEditor) { - - } -} Index: src/org/jboss/tools/smooks/configuration/editors/json/JsonDataConfiguraitonWizardPage.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/JsonDataConfiguraitonWizardPage.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/JsonDataConfiguraitonWizardPage.java (working copy) @@ -1,729 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.json; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.viewers.CellEditor; -import org.eclipse.jface.viewers.ICellModifier; -import org.eclipse.jface.viewers.IStructuredContentProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.ITableLabelProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.TextCellEditor; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.events.SelectionListener; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Item; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.swt.widgets.Text; -import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; - -/** - * @author Dart (dpeng@redhat.com) - * - */ -public class JsonDataConfiguraitonWizardPage extends WizardPage { - - private String rootName = null; - - private String arrayElementName = "element"; //$NON-NLS-1$ - - private String keyWhitspaceReplacement = "-"; //$NON-NLS-1$ - - private String keyPrefixOnNumeric; - - private String illegalElementNameCharReplacement; - - private String nullValueReplacement = ""; //$NON-NLS-1$ - - private String encoding = "UTF-8"; //$NON-NLS-1$ - - private Text rootNameText; - - private Text arrayElementNameText; - - private Text keyWhitspaceReplacementText; - - private Text keyPrefixOnNumericText; - - private Text illegalElementNameCharReplacementText; - - private Text nullValueReplacementText; - - private Text encodingText; - - private TableViewer keyMapViewer; - - private ArrayList keyValueList; - - private Button addButton; - - private Button removeButton; - - private Button createJsonReaderButton; - - protected boolean createJsonReader = true; - - private Button newReaderConfigButton; - - private Button useAvailableReaderConfigButton; - - private SmooksResourceListType resourceList; - - private boolean hasReader = false; - - private boolean useAvailabelReader = false; - - private Composite configComposite; - - private Composite keyMapComposite; - - - - private void initValue() { - hasReader = false; -// if (SmooksUIUtils.hasReaderAlready(JsonReaderImpl.class, resourceList) -// || SmooksUIUtils.hasReaderAlready(JsonReader.class, resourceList)) { -// hasReader = true; -// } - - useAvailabelReader= false; - - rootName = null; - - createJsonReader = true; - - arrayElementName = "element"; //$NON-NLS-1$ - - keyWhitspaceReplacement = "-"; //$NON-NLS-1$ - - keyPrefixOnNumeric = null; - - illegalElementNameCharReplacement = null; - nullValueReplacement = ""; //$NON-NLS-1$ - encoding = "UTF-8"; //$NON-NLS-1$ - if (keyValueList != null) { - keyValueList.clear(); - } else { - keyValueList = new ArrayList(); - } - - if (hasReader) { - useAvailabelReader = true; - createJsonReader = false; - } - - } - - /* - * (non-Javadoc) - * - * @see - * org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets - * .Composite) - */ - public void createControl(Composite parent) { - initValue(); - Composite mainComposite = new Composite(parent, SWT.NONE); - GridLayout layout = new GridLayout(); - layout.numColumns = 2; - mainComposite.setLayout(layout); - GridData gd = new GridData(GridData.FILL_BOTH); - gd.grabExcessHorizontalSpace = true; - gd.grabExcessVerticalSpace = true; - mainComposite.setLayoutData(gd); - - Composite radioButtonComposite = new Composite(mainComposite, SWT.NONE); - gd = new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan = 2; - radioButtonComposite.setLayoutData(gd); - - GridLayout rgl = new GridLayout(); - rgl.numColumns = 2; - rgl.marginHeight = 0; - rgl.marginWidth = 0; - radioButtonComposite.setLayout(rgl); - - Composite spaceComposite = new Composite(mainComposite, SWT.NONE); - gd = new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan = 2; - gd.heightHint = 20; - spaceComposite.setLayoutData(gd); - - newReaderConfigButton = new Button(radioButtonComposite, SWT.RADIO); - newReaderConfigButton.setText("Create new JSON reader configurations"); //$NON-NLS-1$ - newReaderConfigButton.setSelection(true); - - useAvailableReaderConfigButton = new Button(radioButtonComposite, SWT.RADIO); - useAvailableReaderConfigButton.setText("Use available JSON reader configurations"); //$NON-NLS-1$ - - configComposite = new Composite(mainComposite, SWT.NONE); - gd = new GridData(GridData.FILL_BOTH); - gd.horizontalSpan = 2; - configComposite.setLayoutData(gd); - - GridLayout cgl = new GridLayout(); - cgl.marginHeight = 0; - cgl.marginWidth = 0; - cgl.numColumns = 2; - configComposite.setLayout(cgl); - - gd = new GridData(GridData.FILL_HORIZONTAL); - Label rootnameLabel = new Label(configComposite, SWT.NONE); - rootnameLabel.setText("Root Element Name"); //$NON-NLS-1$ - rootNameText = new Text(configComposite, SWT.BORDER); - rootNameText.setLayoutData(gd); - - Label arrayElementNameLabel = new Label(configComposite, SWT.NONE); - arrayElementNameLabel.setText("Array Element Name"); //$NON-NLS-1$ - arrayElementNameText = new Text(configComposite, SWT.BORDER); - arrayElementNameText.setLayoutData(gd); - arrayElementNameText.setText(arrayElementName); - - Label keyWhitspaceReplacementLabel = new Label(configComposite, SWT.NONE); - keyWhitspaceReplacementLabel.setText("Space Replacement"); //$NON-NLS-1$ - keyWhitspaceReplacementText = new Text(configComposite, SWT.BORDER); - keyWhitspaceReplacementText.setLayoutData(gd); - if (keyWhitspaceReplacement == null) { - keyWhitspaceReplacement = ""; //$NON-NLS-1$ - } - keyWhitspaceReplacementText.setText(keyWhitspaceReplacement); - - Label keyPrefixOnNumeric = new Label(configComposite, SWT.NONE); - keyPrefixOnNumeric.setText("Prefix On Numeric"); //$NON-NLS-1$ - keyPrefixOnNumericText = new Text(configComposite, SWT.BORDER); - keyPrefixOnNumericText.setLayoutData(gd); - - Label illegalElementNameCharReplacementLabel = new Label(configComposite, SWT.NONE); - illegalElementNameCharReplacementLabel.setText("IllegalChar Replacement"); //$NON-NLS-1$ - illegalElementNameCharReplacementText = new Text(configComposite, SWT.BORDER); - illegalElementNameCharReplacementText.setLayoutData(gd); - - Label nullValueReplacementlabel = new Label(configComposite, SWT.NONE); - nullValueReplacementlabel.setText("NullValue Replacement"); //$NON-NLS-1$ - nullValueReplacementText = new Text(configComposite, SWT.BORDER); - nullValueReplacementText.setLayoutData(gd); - nullValueReplacementText.setText(nullValueReplacement); - - Label encodingLabel = new Label(configComposite, SWT.NONE); - encodingLabel.setText("Encoding"); //$NON-NLS-1$ - encodingText = new Text(configComposite, SWT.BORDER); - encodingText.setLayoutData(gd); - encodingText.setText(encoding); - - Label keyMapLabel = new Label(configComposite, SWT.NONE); - keyMapLabel.setText("Key Map:"); //$NON-NLS-1$ - gd = new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan = 2; - keyMapLabel.setLayoutData(gd); - - gd = new GridData(GridData.FILL_BOTH); - gd.horizontalSpan = 2; - - keyMapComposite = new Composite(configComposite, SWT.NONE); - keyMapComposite.setLayoutData(gd); - - GridLayout kgl = new GridLayout(); - kgl.numColumns = 2; - keyMapComposite.setLayout(kgl); - - gd = new GridData(GridData.FILL_BOTH); - - keyMapViewer = new TableViewer(keyMapComposite, SWT.BORDER | SWT.MULTI); - keyMapViewer.getControl().setLayoutData(gd); - keyMapViewer.getTable().setHeaderVisible(true); - keyMapViewer.getTable().setLinesVisible(true); - keyMapViewer.setContentProvider(new KeyMapContentProvider()); - keyMapViewer.setLabelProvider(new KeyMapLabelProvider()); - - CellEditor keyCellEditor = new TextCellEditor(keyMapViewer.getTable(), SWT.BORDER); - - CellEditor valueCellEditor = new TextCellEditor(keyMapViewer.getTable(), SWT.BORDER); - - keyMapViewer.setCellEditors(new CellEditor[] { keyCellEditor, valueCellEditor }); - - keyMapViewer.setColumnProperties(new String[] { "key", "value" }); //$NON-NLS-1$ //$NON-NLS-2$ - - keyMapViewer.setCellModifier(new ICellModifier() { - - public void modify(Object element, String property, Object value) { - Object el = null; - if (element instanceof Item) { - el = ((Item) element).getData(); - } - if (el == null) - return; - if (el instanceof KeyValueModel && value instanceof String) { - if (property.equals("key")) { //$NON-NLS-1$ - ((KeyValueModel) el).setKey(value.toString()); - } - if (property.equals("value")) { //$NON-NLS-1$ - ((KeyValueModel) el).setValue(value.toString()); - } - keyMapViewer.refresh(el); - } - } - - public Object getValue(Object element, String property) { - // Object el = null; - // if(element instanceof Item){ - // el = ((Item)element).getData(); - // } - // if(el == null) return null; - if (element instanceof KeyValueModel) { - if (property.equals("key")) { //$NON-NLS-1$ - return ((KeyValueModel) element).getKey(); - } - if (property.equals("value")) { //$NON-NLS-1$ - return ((KeyValueModel) element).getValue(); - } - } - - return null; - } - - public boolean canModify(Object element, String property) { - // Object el = null; - // if(element instanceof Item){ - // el = ((Item)element).getData(); - // } - // if(el == null) return false; - if (element instanceof KeyValueModel) { - if (property.equals("key") || property.equals("value")) { //$NON-NLS-1$ //$NON-NLS-2$ - return true; - } - } - return false; - } - }); - - TableColumn keyColumn = new TableColumn(keyMapViewer.getTable(), SWT.BORDER); - keyColumn.setWidth(150); - keyColumn.setText("Key"); //$NON-NLS-1$ - - TableColumn replaceColumn = new TableColumn(keyMapViewer.getTable(), SWT.BORDER); - replaceColumn.setWidth(150); - replaceColumn.setText("Replace"); //$NON-NLS-1$ - - keyMapViewer.setInput(keyValueList); - - Composite buttonComposite = new Composite(keyMapComposite, SWT.NONE); - gd = new GridData(GridData.FILL_VERTICAL); - buttonComposite.setLayoutData(gd); - - GridLayout bgl = new GridLayout(); - buttonComposite.setLayout(bgl); - - gd = new GridData(GridData.FILL_HORIZONTAL); - - addButton = new Button(buttonComposite, SWT.NONE); - addButton.setLayoutData(gd); - addButton.setText("Add"); //$NON-NLS-1$ - - removeButton = new Button(buttonComposite, SWT.NONE); - removeButton.setLayoutData(gd); - removeButton.setText("Remove"); //$NON-NLS-1$ - - createJsonReaderButton = new Button(configComposite, SWT.CHECK); - createJsonReaderButton.setText("Create a JSON Reader"); //$NON-NLS-1$ - - gd = new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan = 2; - createJsonReaderButton.setLayoutData(gd); - createJsonReaderButton.setSelection(createJsonReader); - - if (hasReader) { - createJsonReaderButton.setEnabled(false); - newReaderConfigButton.setSelection(false); - useAvailableReaderConfigButton.setSelection(true); - setConfigCompositeStates(false); -// configComposite.setEnabled(false); - } - hookControls(); - changePageStatus(); - this.setControl(mainComposite); - } - - private void setConfigCompositeStates(boolean enabled){ - configComposite.setEnabled(enabled); - Control[] controls = configComposite.getChildren(); - for (int i = 0; i < controls.length; i++) { - Control c = controls[i]; - if(c == createJsonReaderButton){ - if(hasReader){ - c.setEnabled(false); - continue; - } - } - if(c == keyMapComposite){ - Control[] cs = ((Composite)c).getChildren(); - for (int j = 0; j < cs.length; j++) { - Control cc = cs[j]; - cc.setEnabled(enabled); - } - } - c.setEnabled(enabled); - } - } - - private void hookControls() { - - newReaderConfigButton.addSelectionListener(new SelectionListener() { - - public void widgetSelected(SelectionEvent e) { - if (newReaderConfigButton.getSelection()) { - useAvailabelReader = false; - changePageStatus(); - setConfigCompositeStates(true); - } - } - - public void widgetDefaultSelected(SelectionEvent e) { - // TODO Auto-generated method stub - - } - }); - - useAvailableReaderConfigButton.addSelectionListener(new SelectionListener() { - - public void widgetSelected(SelectionEvent e) { - if (useAvailableReaderConfigButton.getSelection()) { - useAvailabelReader = true; - changePageStatus(); - setConfigCompositeStates(false); - } - } - - public void widgetDefaultSelected(SelectionEvent e) { - - } - }); - - addButton.addSelectionListener(new SelectionListener() { - - public void widgetSelected(SelectionEvent e) { - keyValueList.add(new KeyValueModel("key", "value")); //$NON-NLS-1$ //$NON-NLS-2$ - keyMapViewer.refresh(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - } - }); - - removeButton.addSelectionListener(new SelectionListener() { - - public void widgetSelected(SelectionEvent e) { - IStructuredSelection selection = (IStructuredSelection) keyMapViewer.getSelection(); - List selections = selection.toList(); - for (Iterator iterator = selections.iterator(); iterator.hasNext();) { - Object object = (Object) iterator.next(); - keyValueList.remove(object); - } - keyMapViewer.refresh(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - // TODO Auto-generated method stub - - } - }); - - createJsonReaderButton.addSelectionListener(new SelectionListener() { - - public void widgetSelected(SelectionEvent e) { - createJsonReader = createJsonReaderButton.getSelection(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - - } - }); - - encodingText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - encoding = encodingText.getText(); - changePageStatus(); - } - }); - - nullValueReplacementText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - nullValueReplacement = nullValueReplacementText.getText(); - changePageStatus(); - } - }); - - illegalElementNameCharReplacementText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - illegalElementNameCharReplacement = illegalElementNameCharReplacementText.getText(); - changePageStatus(); - } - }); - - keyPrefixOnNumericText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - keyPrefixOnNumeric = keyPrefixOnNumericText.getText(); - changePageStatus(); - } - }); - - keyWhitspaceReplacementText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - keyWhitspaceReplacement = keyWhitspaceReplacementText.getText(); - changePageStatus(); - } - }); - - arrayElementNameText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - arrayElementName = arrayElementNameText.getText(); - changePageStatus(); - } - }); - - rootNameText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - rootName = rootNameText.getText(); - changePageStatus(); - } - }); - } - - private void changePageStatus() { - String error = null; - if (useAvailabelReader) { - setErrorMessage(null); - setPageComplete(true); - return; - } - rootName = rootNameText.getText(); - if (rootName == null || rootName.length() == 0) { - error = "Root Name can't be null"; //$NON-NLS-1$ - } - - arrayElementName = arrayElementNameText.getText(); - if (arrayElementName == null || arrayElementName.length() == 0) { - error = "Array Element Name can't be null"; //$NON-NLS-1$ - } - - // if (keyWhitspaceReplacement == null - // || keyWhitspaceReplacement.length() == 0) { - // error = "Space replacement string can't be null"; - // } - - encoding = encodingText.getText(); - if (encoding == null || encoding.length() == 0) { - error = "Encoding can't be null"; //$NON-NLS-1$ - } - - setErrorMessage(error); - setPageComplete(error == null); - } - - public JsonDataConfiguraitonWizardPage(String pageName, String title, ImageDescriptor titleImage) { - super(pageName, title, titleImage); - } - - public JsonDataConfiguraitonWizardPage(String pageName) { - super(pageName); - this.setTitle("JSON Reader configurations"); //$NON-NLS-1$ - this.setDescription("Set the configurations for parsing JSON file."); //$NON-NLS-1$ - } - - public String getRootName() { - return rootName; - } - - public void setRootName(String rootName) { - this.rootName = rootName; - } - - public String getArrayElementName() { - return arrayElementName; - } - - public void setArrayElementName(String arrayElementName) { - this.arrayElementName = arrayElementName; - } - - public String getKeyWhitspaceReplacement() { - return keyWhitspaceReplacement; - } - - public void setKeyWhitspaceReplacement(String keyWhitspaceReplacement) { - this.keyWhitspaceReplacement = keyWhitspaceReplacement; - } - - public String getKeyPrefixOnNumeric() { - return keyPrefixOnNumeric; - } - - public void setKeyPrefixOnNumeric(String keyPrefixOnNumeric) { - this.keyPrefixOnNumeric = keyPrefixOnNumeric; - } - - public String getIllegalElementNameCharReplacement() { - return illegalElementNameCharReplacement; - } - - public void setIllegalElementNameCharReplacement(String illegalElementNameCharReplacement) { - this.illegalElementNameCharReplacement = illegalElementNameCharReplacement; - } - - public String getNullValueReplacement() { - return nullValueReplacement; - } - - public void setNullValueReplacement(String nullValueReplacement) { - this.nullValueReplacement = nullValueReplacement; - } - - // public Map getKeyMap() { - // return keyMap; - // } - // - // public void setKeyMap(Map keyMap) { - // this.keyMap = keyMap; - // } - - - - public String getEncoding() { - return encoding; - } - - - public boolean isUseAvailabelReader() { - return useAvailabelReader; - } - - public void setUseAvailabelReader(boolean useAvailabelReader) { - this.useAvailabelReader = useAvailabelReader; - } - - public SmooksResourceListType getSmooksResourceList() { - return resourceList; - } - - public void setSmooksResourceList(SmooksResourceListType resourceList) { - this.resourceList = resourceList; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public ArrayList getKeyValueList() { - return keyValueList; - } - - public void setKeyValueList(ArrayList keyValueList) { - this.keyValueList = keyValueList; - } - - public boolean isCreateJsonReader() { - return createJsonReader; - } - - public void setCreateJsonReader(boolean createJsonReader) { - this.createJsonReader = createJsonReader; - } - - private class KeyMapLabelProvider extends LabelProvider implements ITableLabelProvider { - - public Image getColumnImage(Object element, int columnIndex) { - return null; - } - - public String getColumnText(Object element, int columnIndex) { - if (element instanceof KeyValueModel) { - switch (columnIndex) { - case 0: - return ((KeyValueModel) element).getKey(); - case 1: - return ((KeyValueModel) element).getValue(); - } - } - return getText(element); - } - - } - - private class KeyMapContentProvider implements IStructuredContentProvider { - - public Object[] getElements(Object inputElement) { - if (inputElement instanceof List) { - return ((List) inputElement).toArray(); - } - // TODO Auto-generated method stub - return new Object[] {}; - } - - public void dispose() { - - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - // TODO Auto-generated method stub - - } - - } - - public class KeyValueModel { - private String key; - private String value; - - public KeyValueModel(String key, String value) { - this.key = key; - this.value = value; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - } -} Index: src/org/jboss/tools/smooks/configuration/editors/json/Messages.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/json/Messages.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/json/Messages.java (working copy) @@ -1,19 +0,0 @@ -package org.jboss.tools.smooks.configuration.editors.json; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - private static final String BUNDLE_NAME = "org.jboss.tools.smooks.configuration.editors.json.messages"; //$NON-NLS-1$ - public static String JsonDataPathWizardPage_WizardDes; - public static String JsonDataPathWizardPage_WIzardTitle; - public static String JsonDataWizard_PageText; - public static String JsonDataWizard_WizardTitle; -/* public static String JsonReaderUICreator_KeysMapLabel; */ - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - private Messages() { - } -} Index: src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java (working copy) @@ -1,17 +1,12 @@ package org.jboss.tools.smooks.configuration.editors; -import org.eclipse.jface.action.*; -import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.action.IAction; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IWorkbenchActionConstants; -import org.eclipse.ui.PlatformUI; import org.eclipse.ui.actions.ActionFactory; -import org.eclipse.ui.ide.IDE; -import org.eclipse.ui.ide.IDEActionFactory; import org.eclipse.ui.part.MultiPageEditorActionBarContributor; -import org.eclipse.ui.texteditor.ITextEditor; import org.eclipse.ui.texteditor.ITextEditorActionConstants; +import org.jboss.tools.smooks.graphical.actions.ISmooksActionProvider; /** * Manages the installation/deinstallation of global actions for multi-page editors. @@ -20,21 +15,21 @@ */ public class SmooksMultiPageEditorContributor extends MultiPageEditorActionBarContributor { private IEditorPart activeEditorPart; - private Action sampleAction; /** * Creates a multi-page contributor. */ public SmooksMultiPageEditorContributor() { super(); - createActions(); } - /** - * Returns the action registed with the given text editor. - * @return IAction or null if editor is null. - */ - protected IAction getAction(ITextEditor editor, String actionID) { - return (editor == null ? null : editor.getAction(actionID)); + + + protected IAction getAction(IEditorPart editor , String actionID){ + if(editor instanceof ISmooksActionProvider){ + return ((ISmooksActionProvider)editor).getAction(actionID); + } + return null; } + /* (non-JavaDoc) * Method declared in AbstractMultiPageEditorActionBarContributor. */ @@ -42,16 +37,13 @@ public void setActivePage(IEditorPart part) { if (activeEditorPart == part) return; - activeEditorPart = part; - IActionBars actionBars = getActionBars(); if (actionBars != null) { - - ITextEditor editor = (part instanceof ITextEditor) ? (ITextEditor) part : null; + + IEditorPart editor = activeEditorPart; - actionBars.setGlobalActionHandler( - ActionFactory.DELETE.getId(), + actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), getAction(editor, ITextEditorActionConstants.DELETE)); actionBars.setGlobalActionHandler( ActionFactory.UNDO.getId(), @@ -59,45 +51,27 @@ actionBars.setGlobalActionHandler( ActionFactory.REDO.getId(), getAction(editor, ITextEditorActionConstants.REDO)); - actionBars.setGlobalActionHandler( - ActionFactory.CUT.getId(), - getAction(editor, ITextEditorActionConstants.CUT)); - actionBars.setGlobalActionHandler( - ActionFactory.COPY.getId(), - getAction(editor, ITextEditorActionConstants.COPY)); - actionBars.setGlobalActionHandler( - ActionFactory.PASTE.getId(), - getAction(editor, ITextEditorActionConstants.PASTE)); - actionBars.setGlobalActionHandler( - ActionFactory.SELECT_ALL.getId(), - getAction(editor, ITextEditorActionConstants.SELECT_ALL)); - actionBars.setGlobalActionHandler( - ActionFactory.FIND.getId(), - getAction(editor, ITextEditorActionConstants.FIND)); - actionBars.setGlobalActionHandler( - IDEActionFactory.BOOKMARK.getId(), - getAction(editor, IDEActionFactory.BOOKMARK.getId())); actionBars.updateActionBars(); } } - private void createActions() { - sampleAction = new Action() { - public void run() { - MessageDialog.openInformation(null, "Configuration Plug-in", "Sample Action Executed"); //$NON-NLS-1$ //$NON-NLS-2$ - } - }; - sampleAction.setText("Sample Action"); //$NON-NLS-1$ - sampleAction.setToolTipText("Sample Action tool tip"); //$NON-NLS-1$ - sampleAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages(). - getImageDescriptor(IDE.SharedImages.IMG_OBJS_TASK_TSK)); - } - public void contributeToMenu(IMenuManager manager) { - IMenuManager menu = new MenuManager("Editor &Menu"); //$NON-NLS-1$ - manager.prependToGroup(IWorkbenchActionConstants.MB_ADDITIONS, menu); - menu.add(sampleAction); - } - public void contributeToToolBar(IToolBarManager manager) { - manager.add(new Separator()); - manager.add(sampleAction); - } +// private void createActions() { +// sampleAction = new Action() { +// public void run() { +// MessageDialog.openInformation(null, "Configuration Plug-in", "Sample Action Executed"); //$NON-NLS-1$ //$NON-NLS-2$ +// } +// }; +// sampleAction.setText("Sample Action"); //$NON-NLS-1$ +// sampleAction.setToolTipText("Sample Action tool tip"); //$NON-NLS-1$ +// sampleAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages(). +// getImageDescriptor(IDE.SharedImages.IMG_OBJS_TASK_TSK)); +// } +// public void contributeToMenu(IMenuManager manager) { +// IMenuManager menu = new MenuManager("Editor &Menu"); //$NON-NLS-1$ +// manager.prependToGroup(IWorkbenchActionConstants.MB_ADDITIONS, menu); +// menu.add(sampleAction); +// } +// public void contributeToToolBar(IToolBarManager manager) { +// manager.add(new Separator()); +// manager.add(sampleAction); +// } } Index: src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java (working copy) @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.jboss.tools.smooks.configuration.editors.edireader; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.forms.widgets.FormToolkit; -import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; -import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; -import org.jboss.tools.smooks.editor.ISmooksModelProvider; - -/** - * @author Dart Peng (dpeng@redhat.com) Date Apr 10, 2009 - */ -public class EDIReaderUICreator extends PropertyUICreator { - - public EDIReaderUICreator() { - } - - /* - * (non-Javadoc) - * - * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator# - * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit, - * org.eclipse.swt.widgets.Composite, - * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object, - * org.eclipse.emf.ecore.EAttribute) - */ - public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent, - IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature, - ISmooksModelProvider formEditor, IEditorPart part) { -// if (feature == EdiPackage.eINSTANCE.getEDIReader_Encoding()) { -// } -// if (feature == EdiPackage.eINSTANCE.getEDIReader_MappingModel()) { -// return SmooksUIUtils.createFileSelectionTextFieldEditor(null, parent, null, toolkit, propertyDescriptor, -// model, SmooksUIUtils.VALUE_TYPE_VALUE, EDIMapFormEditor.EDITOR_ID, null); -// } - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor, part); - } - - @Override - public boolean isFileSelectionFeature(EAttribute attribute) { - // if (attribute == EdiPackage.eINSTANCE.getEDIReader_MappingModel()) { - // return true; - // } - return super.isFileSelectionFeature(attribute); - } - -} \ No newline at end of file Index: src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java (working copy) @@ -170,8 +170,6 @@ import org.jboss.tools.smooks.model.javabean12.BeanType; import org.jboss.tools.smooks.model.javabean12.Javabean12Package; import org.jboss.tools.smooks.model.javabean12.ValueType; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; import org.jboss.tools.smooks.model.jmsrouting12.JMS12Router; import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Package; import org.jboss.tools.smooks.model.json12.Json12Package; @@ -2836,10 +2834,6 @@ return true; } - // for bean ref id : - if (JmsroutingPackage.Literals.JMS_ROUTER__BEAN_ID == feature) { - return true; - } if (Jmsrouting12Package.Literals.JMS12_ROUTER__BEAN_ID == feature) { return true; } @@ -2876,9 +2870,6 @@ if (GroovyPackage.Literals.GROOVY__EXECUTE_ON_ELEMENT == feature) { return true; } - if (JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT == feature) { - return true; - } if (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR == feature) { return true; } @@ -2985,9 +2976,6 @@ if (model == null) { return null; } - if (model instanceof JmsRouter) { - return JmsroutingPackage.Literals.JMS_ROUTER__BEAN_ID; - } if (model instanceof JMS12Router) { return Jmsrouting12Package.Literals.JMS12_ROUTER__BEAN_ID; } @@ -3025,9 +3013,6 @@ if (model instanceof GroovyUICreator) { return GroovyPackage.Literals.GROOVY__EXECUTE_ON_ELEMENT_NS; } - if (model instanceof JmsRouter) { - return JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT_NS; - } if (model instanceof ResourceConfigType) { return SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR_NAMESPACE; } @@ -3073,9 +3058,6 @@ if (model instanceof GroovyUICreator) { return GroovyPackage.Literals.GROOVY__EXECUTE_ON_ELEMENT; } - if (model instanceof JmsRouter) { - return JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT; - } if (model instanceof ResourceConfigType) { return SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR; Index: src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java =================================================================== --- src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java (revision 20973) +++ src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java (working copy) @@ -40,6 +40,7 @@ import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; import org.eclipse.jface.action.SubContributionItem; +import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.ISelectionProvider; @@ -86,11 +87,14 @@ /** * This is the action bar contributor for the Smooks model editor. + * * @deprecated * @generated */ public class SmooksActionBarContributor extends EditingDomainActionBarContributor implements ISelectionChangedListener { + private IAction testAction = null; + protected ISelection selection; /** * This keeps track of the active editor. - * The Resource associated with the package. - * - * @see org.jboss.tools.smooks.model.csv.util.CsvResourceFactoryImpl - * @generated - */ -public class CsvResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public CsvResourceImpl(URI uri) { - super(uri); - } - -} //CsvResourceImpl Index: src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java (working copy) @@ -1,184 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.util; - -import java.util.Map; - -import org.eclipse.emf.common.util.DiagnosticChain; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.EObjectValidator; -import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; - - -/** - * - * The Validator for the model. - * - * @see org.jboss.tools.smooks.model.csv.CsvPackage - * @generated - */ -public class CsvValidator extends EObjectValidator { - /** - * The cached model package - * - * - * @generated - */ - public static final CsvValidator INSTANCE = new CsvValidator(); - - /** - * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package. - * - * - * @see org.eclipse.emf.common.util.Diagnostic#getSource() - * @see org.eclipse.emf.common.util.Diagnostic#getCode() - * @generated - */ - public static final String DIAGNOSTIC_SOURCE = "csv"; //$NON-NLS-1$ - - /** - * A constant with a fixed name that can be used as the base value for additional hand written constants. - * - * - * @generated - */ - private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; - - /** - * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. - * - * - * @generated - */ - protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; - - /** - * The cached base package validator. - * - * - * @generated - */ - protected XMLTypeValidator xmlTypeValidator; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public CsvValidator() { - super(); - xmlTypeValidator = XMLTypeValidator.INSTANCE; - } - - /** - * Returns the package of this validator switch. - * - * - * @generated - */ - @Override - protected EPackage getEPackage() { - return CsvPackage.eINSTANCE; - } - - /** - * Calls validateXXX for the corresponding classifier of the model. - * - * - * @generated - */ - @Override - protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) { - switch (classifierID) { - case CsvPackage.CSV_DOCUMENT_ROOT: - return validateCsvDocumentRoot((CsvDocumentRoot)value, diagnostics, context); - case CsvPackage.CSV_READER: - return validateCsvReader((CsvReader)value, diagnostics, context); - case CsvPackage.CHAR: - return validateChar((String)value, diagnostics, context); - default: - return true; - } - } - - /** - * - * - * @generated - */ - public boolean validateCsvDocumentRoot(CsvDocumentRoot csvDocumentRoot, DiagnosticChain diagnostics, Map context) { - return validate_EveryDefaultConstraint(csvDocumentRoot, diagnostics, context); - } - - /** - * - * - * @generated - */ - public boolean validateCsvReader(CsvReader csvReader, DiagnosticChain diagnostics, Map context) { - return validate_EveryDefaultConstraint(csvReader, diagnostics, context); - } - - /** - * - * - * @generated - */ - public boolean validateChar(String char_, DiagnosticChain diagnostics, Map context) { - boolean result = validateChar_MinLength(char_, diagnostics, context); - if (result || diagnostics != null) result &= validateChar_MaxLength(char_, diagnostics, context); - return result; - } - - /** - * Validates the MinLength constraint of 'Char'. - * - * - * @generated - */ - public boolean validateChar_MinLength(String char_, DiagnosticChain diagnostics, Map context) { - int length = char_.length(); - boolean result = length >= 1; - if (!result && diagnostics != null) - reportMinLengthViolation(CsvPackage.Literals.CHAR, char_, length, 1, diagnostics, context); - return result; - } - - /** - * Validates the MaxLength constraint of 'Char'. - * - * - * @generated - */ - public boolean validateChar_MaxLength(String char_, DiagnosticChain diagnostics, Map context) { - int length = char_.length(); - boolean result = length <= 1; - if (!result && diagnostics != null) - reportMaxLengthViolation(CsvPackage.Literals.CHAR, char_, length, 1, diagnostics, context); - return result; - } - - /** - * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - // TODO - // Specialize this to return a resource locator for messages specific to this validator. - // Ensure that you remove @generated or mark it @generated NOT - return super.getResourceLocator(); - } - -} //CsvValidator Index: src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java (working copy) @@ -1,56 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.jboss.tools.smooks.model.csv.util.CsvResourceImpl - * @generated - */ -public class CsvResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public CsvResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - XMLResource result = new CsvResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); - return result; - } - -} //CsvResourceFactoryImpl Index: src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java (working copy) @@ -1,218 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; -import org.jboss.tools.smooks.model.smooks.AbstractReader; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; - - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.jboss.tools.smooks.model.csv.CsvPackage - * @generated - */ -public class CsvAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static CsvPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public CsvAdapterFactory() { - if (modelPackage == null) { - modelPackage = CsvPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected CsvSwitch modelSwitch = - new CsvSwitch() { - @Override - public Adapter caseCsvDocumentRoot(CsvDocumentRoot object) { - return createCsvDocumentRootAdapter(); - } - @Override - public Adapter caseCsvReader(CsvReader object) { - return createCsvReaderAdapter(); - } - @Override - public Adapter caseAnyType(AnyType object) { - return createAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractAnyType(AbstractAnyType object) { - return createAbstractAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) { - return createAbstractResourceConfigAdapter(); - } - @Override - public Adapter caseAbstractReader(AbstractReader object) { - return createAbstractReaderAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot Document Root}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot - * @generated - */ - public Adapter createCsvDocumentRootAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.csv.CsvReader Reader}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.csv.CsvReader - * @generated - */ - public Adapter createCsvReaderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.xml.type.AnyType - * @generated - */ - public Adapter createAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link common.AbstractAnyType Abstract Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see common.AbstractAnyType - * @generated - */ - public Adapter createAbstractAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractResourceConfig Abstract Resource Config}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractResourceConfig - * @generated - */ - public Adapter createAbstractResourceConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractReader Abstract Reader}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractReader - * @generated - */ - public Adapter createAbstractReaderAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //CsvAdapterFactory Index: src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java (working copy) @@ -1,54 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.util; - - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.jboss.tools.smooks.model.csv.CsvPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class CsvXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public CsvXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - CsvPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the CsvResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new CsvResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new CsvResourceFactoryImpl()); - } - return registrations; - } - -} //CsvXMLProcessor Index: src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java (working copy) @@ -1,221 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; -import org.jboss.tools.smooks.model.smooks.AbstractReader; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; - - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.jboss.tools.smooks.model.csv.CsvPackage - * @generated - */ -public class CsvSwitch { - /** - * The cached model package - * - * - * @generated - */ - protected static CsvPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public CsvSwitch() { - if (modelPackage == null) { - modelPackage = CsvPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case CsvPackage.CSV_DOCUMENT_ROOT: { - CsvDocumentRoot csvDocumentRoot = (CsvDocumentRoot)theEObject; - T result = caseCsvDocumentRoot(csvDocumentRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CsvPackage.CSV_READER: { - CsvReader csvReader = (CsvReader)theEObject; - T result = caseCsvReader(csvReader); - if (result == null) result = caseAbstractReader(csvReader); - if (result == null) result = caseAbstractResourceConfig(csvReader); - if (result == null) result = caseAbstractAnyType(csvReader); - if (result == null) result = caseAnyType(csvReader); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Document Root'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Document Root'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCsvDocumentRoot(CsvDocumentRoot object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Reader'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Reader'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCsvReader(CsvReader object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAnyType(AnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAnyType(AbstractAnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Resource Config'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Resource Config'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractResourceConfig(AbstractResourceConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Reader'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Reader'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractReader(AbstractReader object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} //CsvSwitch Index: src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java (working copy) @@ -1,171 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.provider; - - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvFactory; -import org.jboss.tools.smooks.model.csv.CsvPackage; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot} object. - * - * - * @generated - */ -public class CsvDocumentRootItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public CsvDocumentRootItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns CsvDocumentRoot.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/CsvDocumentRoot")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_CsvDocumentRoot_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(CsvDocumentRoot.class)) { - case CsvPackage.CSV_DOCUMENT_ROOT__READER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, - CsvFactory.eINSTANCE.createCsvReader())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Csv1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java (working copy) @@ -1,226 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.provider; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.jboss.tools.smooks.model.csv.util.CsvAdapterFactory; - - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class CsvItemProviderAdapterFactory extends CsvAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public CsvItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot} instances. - * - * - * @generated - */ - protected CsvDocumentRootItemProvider csvDocumentRootItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot}. - * - * - * @generated - */ - @Override - public Adapter createCsvDocumentRootAdapter() { - if (csvDocumentRootItemProvider == null) { - csvDocumentRootItemProvider = new CsvDocumentRootItemProvider(this); - } - - return csvDocumentRootItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.csv.CsvReader} instances. - * - * - * @generated - */ - protected CsvReaderItemProvider csvReaderItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.csv.CsvReader}. - * - * - * @generated - */ - @Override - public Adapter createCsvReaderAdapter() { - if (csvReaderItemProvider == null) { - csvReaderItemProvider = new CsvReaderItemProvider(this); - } - - return csvReaderItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (csvDocumentRootItemProvider != null) csvDocumentRootItemProvider.dispose(); - if (csvReaderItemProvider != null) csvReaderItemProvider.dispose(); - } - -} Index: src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java (working copy) @@ -1,256 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; -import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider; - - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.csv.CsvReader} object. - * - * - * @generated - */ -public class CsvReaderItemProvider - extends AbstractReaderItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public CsvReaderItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addEncodingPropertyDescriptor(object); - addFieldsPropertyDescriptor(object); - addQuotePropertyDescriptor(object); - addSeparatorPropertyDescriptor(object); - addSkipLinesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Encoding feature. - * - * - * @generated - */ - protected void addEncodingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CsvReader_encoding_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CsvReader_encoding_feature", "_UI_CsvReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CsvPackage.Literals.CSV_READER__ENCODING, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Fields feature. - * - * - * @generated - */ - protected void addFieldsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CsvReader_fields_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CsvReader_fields_feature", "_UI_CsvReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CsvPackage.Literals.CSV_READER__FIELDS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Quote feature. - * - * - * @generated - */ - protected void addQuotePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CsvReader_quote_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CsvReader_quote_feature", "_UI_CsvReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CsvPackage.Literals.CSV_READER__QUOTE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Separator feature. - * - * - * @generated - */ - protected void addSeparatorPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CsvReader_separator_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CsvReader_separator_feature", "_UI_CsvReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CsvPackage.Literals.CSV_READER__SEPARATOR, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Skip Lines feature. - * - * - * @generated - */ - protected void addSkipLinesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CsvReader_skipLines_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CsvReader_skipLines_feature", "_UI_CsvReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CsvPackage.Literals.CSV_READER__SKIP_LINES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns CsvReader.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/CsvReader")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return "CSV"; //$NON-NLS-1$ -// String label = ((CsvReader)object).getTargetProfile(); -// return label == null || label.length() == 0 ? -// getString("_UI_CsvReader_type") : -// getString("_UI_CsvReader_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(CsvReader.class)) { - case CsvPackage.CSV_READER__ENCODING: - case CsvPackage.CSV_READER__FIELDS: - case CsvPackage.CSV_READER__QUOTE: - case CsvPackage.CSV_READER__SEPARATOR: - case CsvPackage.CSV_READER__SKIP_LINES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Csv1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java (working copy) @@ -1,93 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the Csv-1 edit plugin. - * - * - * @generated - */ -public final class Csv1EditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final Csv1EditPlugin INSTANCE = new Csv1EditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public Csv1EditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} Index: src/org/jboss/tools/smooks/model/csv/CsvFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/CsvFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/CsvFactory.java (working copy) @@ -1,55 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.jboss.tools.smooks.model.csv.CsvPackage - * @generated - */ -public interface CsvFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - CsvFactory eINSTANCE = org.jboss.tools.smooks.model.csv.impl.CsvFactoryImpl.init(); - - /** - * Returns a new object of class 'Document Root'. - * - * - * @return a new object of class 'Document Root'. - * @generated - */ - CsvDocumentRoot createCsvDocumentRoot(); - - /** - * Returns a new object of class 'Reader'. - * - * - * @return a new object of class 'Reader'. - * @generated - */ - CsvReader createCsvReader(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - CsvPackage getCsvPackage(); - -} //CsvFactory Index: src/org/jboss/tools/smooks/model/csv/CsvReader.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/CsvReader.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/CsvReader.java (working copy) @@ -1,290 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv; - -import java.math.BigInteger; - -import org.jboss.tools.smooks.model.smooks.AbstractReader; - -/** - * - * A representation of the model object 'Reader'. - * - * - * - * CSV Reader - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.csv.CsvReader#getEncoding Encoding}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvReader#getFields Fields}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote Quote}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvReader#getSeparator Separator}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines Skip Lines}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader() - * @model extendedMetaData="name='reader' kind='empty'" - * @generated - */ -public interface CsvReader extends AbstractReader { - /** - * Returns the value of the 'Encoding' attribute. - * The default value is "UTF-8". - * - * - * - * - * The encoding of the input stream. Default of 'UTF-8' - * - * - * @return the value of the 'Encoding' attribute. - * @see #isSetEncoding() - * @see #unsetEncoding() - * @see #setEncoding(String) - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Encoding() - * @model default="UTF-8" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='encoding'" - * @generated - */ - String getEncoding(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getEncoding Encoding}' attribute. - * - * - * @param value the new value of the 'Encoding' attribute. - * @see #isSetEncoding() - * @see #unsetEncoding() - * @see #getEncoding() - * @generated - */ - void setEncoding(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getEncoding Encoding}' attribute. - * - * - * @see #isSetEncoding() - * @see #getEncoding() - * @see #setEncoding(String) - * @generated - */ - void unsetEncoding(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getEncoding Encoding}' attribute is set. - * - * - * @return whether the value of the 'Encoding' attribute is set. - * @see #unsetEncoding() - * @see #getEncoding() - * @see #setEncoding(String) - * @generated - */ - boolean isSetEncoding(); - - /** - * Returns the value of the 'Fields' attribute. - * - * - * - * - * Comma separated list of CSV record field names - * - * - * @return the value of the 'Fields' attribute. - * @see #setFields(String) - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Fields() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='fields'" - * @generated - */ - String getFields(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getFields Fields}' attribute. - * - * - * @param value the new value of the 'Fields' attribute. - * @see #getFields() - * @generated - */ - void setFields(String value); - - /** - * Returns the value of the 'Quote' attribute. - * The default value is "\"". - * - * - * - * - * Quote character. Default of '"'. - * - * - * @return the value of the 'Quote' attribute. - * @see #isSetQuote() - * @see #unsetQuote() - * @see #setQuote(String) - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Quote() - * @model default="\"" unsettable="true" dataType="csv.Char" - * extendedMetaData="kind='attribute' name='quote'" - * @generated - */ - String getQuote(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote Quote}' attribute. - * - * - * @param value the new value of the 'Quote' attribute. - * @see #isSetQuote() - * @see #unsetQuote() - * @see #getQuote() - * @generated - */ - void setQuote(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote Quote}' attribute. - * - * - * @see #isSetQuote() - * @see #getQuote() - * @see #setQuote(String) - * @generated - */ - void unsetQuote(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote Quote}' attribute is set. - * - * - * @return whether the value of the 'Quote' attribute is set. - * @see #unsetQuote() - * @see #getQuote() - * @see #setQuote(String) - * @generated - */ - boolean isSetQuote(); - - /** - * Returns the value of the 'Separator' attribute. - * The default value is ",". - * - * - * - * - * Field separator character. Default of ','. - * - * - * @return the value of the 'Separator' attribute. - * @see #isSetSeparator() - * @see #unsetSeparator() - * @see #setSeparator(String) - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Separator() - * @model default="," unsettable="true" dataType="csv.Char" - * extendedMetaData="kind='attribute' name='separator'" - * @generated - */ - String getSeparator(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSeparator Separator}' attribute. - * - * - * @param value the new value of the 'Separator' attribute. - * @see #isSetSeparator() - * @see #unsetSeparator() - * @see #getSeparator() - * @generated - */ - void setSeparator(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSeparator Separator}' attribute. - * - * - * @see #isSetSeparator() - * @see #getSeparator() - * @see #setSeparator(String) - * @generated - */ - void unsetSeparator(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSeparator Separator}' attribute is set. - * - * - * @return whether the value of the 'Separator' attribute is set. - * @see #unsetSeparator() - * @see #getSeparator() - * @see #setSeparator(String) - * @generated - */ - boolean isSetSeparator(); - - /** - * Returns the value of the 'Skip Lines' attribute. - * The default value is "0". - * - * - * - * - * Number of lines to skip before processing starts. Default of 0. - * - * - * @return the value of the 'Skip Lines' attribute. - * @see #isSetSkipLines() - * @see #unsetSkipLines() - * @see #setSkipLines(BigInteger) - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_SkipLines() - * @model default="0" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Integer" - * extendedMetaData="kind='attribute' name='skipLines'" - * @generated - */ - BigInteger getSkipLines(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines Skip Lines}' attribute. - * - * - * @param value the new value of the 'Skip Lines' attribute. - * @see #isSetSkipLines() - * @see #unsetSkipLines() - * @see #getSkipLines() - * @generated - */ - void setSkipLines(BigInteger value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines Skip Lines}' attribute. - * - * - * @see #isSetSkipLines() - * @see #getSkipLines() - * @see #setSkipLines(BigInteger) - * @generated - */ - void unsetSkipLines(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines Skip Lines}' attribute is set. - * - * - * @return whether the value of the 'Skip Lines' attribute is set. - * @see #unsetSkipLines() - * @see #getSkipLines() - * @see #setSkipLines(BigInteger) - * @generated - */ - boolean isSetSkipLines(); - -} // CsvReader Index: src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java (working copy) @@ -1,162 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.emf.ecore.xml.type.XMLTypeFactory; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvFactory; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; - - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class CsvFactoryImpl extends EFactoryImpl implements CsvFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static CsvFactory init() { - try { - CsvFactory theCsvFactory = (CsvFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn.org/xsd/smooks/csv-1.1.xsd"); //$NON-NLS-1$ - if (theCsvFactory != null) { - return theCsvFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new CsvFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public CsvFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case CsvPackage.CSV_DOCUMENT_ROOT: return createCsvDocumentRoot(); - case CsvPackage.CSV_READER: return createCsvReader(); - default: - throw new IllegalArgumentException(Messages.CsvFactoryImpl_Error_Invalid_Class_Classifier + eClass.getName() + Messages.CsvFactoryImpl_Error_Invalid_Classifier); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case CsvPackage.CHAR: - return createCharFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException(Messages.CsvFactoryImpl_Error_Datatype_Invalid + eDataType.getName() + Messages.CsvFactoryImpl_Error_Invalid_Classifier); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case CsvPackage.CHAR: - return convertCharToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException(Messages.CsvFactoryImpl_Error_Datatype_Invalid + eDataType.getName() + Messages.CsvFactoryImpl_Error_Invalid_Classifier); - } - } - - /** - * - * - * @generated - */ - public CsvDocumentRoot createCsvDocumentRoot() { - CsvDocumentRootImpl csvDocumentRoot = new CsvDocumentRootImpl(); - return csvDocumentRoot; - } - - /** - * - * - * @generated - */ - public CsvReader createCsvReader() { - CsvReaderImpl csvReader = new CsvReaderImpl(); - return csvReader; - } - - /** - * - * - * @generated - */ - public String createCharFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); - } - - /** - * - * - * @generated - */ - public String convertCharToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); - } - - /** - * - * - * @generated - */ - public CsvPackage getCsvPackage() { - return (CsvPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static CsvPackage getPackage() { - return CsvPackage.eINSTANCE; - } - -} //CsvFactoryImpl Index: src/org/jboss/tools/smooks/model/csv/impl/Messages.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/impl/Messages.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/impl/Messages.java (working copy) @@ -1,17 +0,0 @@ -package org.jboss.tools.smooks.model.csv.impl; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - private static final String BUNDLE_NAME = "org.jboss.tools.smooks.model.csv.impl.messages"; //$NON-NLS-1$ - public static String CsvFactoryImpl_Error_Datatype_Invalid; - public static String CsvFactoryImpl_Error_Invalid_Class_Classifier; - public static String CsvFactoryImpl_Error_Invalid_Classifier; - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - private Messages() { - } -} Index: src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java (working copy) @@ -1,453 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EValidator; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.jboss.tools.smooks.model.common.CommonPackage; -import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvFactory; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; -import org.jboss.tools.smooks.model.csv.util.CsvValidator; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; -import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl; - - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class CsvPackageImpl extends EPackageImpl implements CsvPackage { - /** - * - * - * @generated - */ - private EClass csvDocumentRootEClass = null; - - /** - * - * - * @generated - */ - private EClass csvReaderEClass = null; - - /** - * - * - * @generated - */ - private EDataType charEDataType = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.jboss.tools.smooks.model.csv.CsvPackage#eNS_URI - * @see #init() - * @generated - */ - private CsvPackageImpl() { - super(eNS_URI, CsvFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *

Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *

Invocation of this method will not affect any packages that have - * already been initialized. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static CsvPackage init() { - if (isInited) return (CsvPackage)EPackage.Registry.INSTANCE.getEPackage(CsvPackage.eNS_URI); - - // Obtain or create and register package - CsvPackageImpl theCsvPackage = (CsvPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CsvPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CsvPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - - // Create package meta-data objects - theCsvPackage.createPackageContents(); - theSmooksPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - - // Initialize created meta-data - theCsvPackage.initializePackageContents(); - theSmooksPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - - // Register package validator - EValidator.Registry.INSTANCE.put - (theCsvPackage, - new EValidator.Descriptor() { - public EValidator getEValidator() { - return CsvValidator.INSTANCE; - } - }); - - // Mark meta-data to indicate it can't be changed - theCsvPackage.freeze(); - - return theCsvPackage; - } - - /** - * - * - * @generated - */ - public EClass getCsvDocumentRoot() { - return csvDocumentRootEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getCsvDocumentRoot_Mixed() { - return (EAttribute)csvDocumentRootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getCsvDocumentRoot_XMLNSPrefixMap() { - return (EReference)csvDocumentRootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getCsvDocumentRoot_XSISchemaLocation() { - return (EReference)csvDocumentRootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getCsvDocumentRoot_Reader() { - return (EReference)csvDocumentRootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getCsvReader() { - return csvReaderEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getCsvReader_Encoding() { - return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getCsvReader_Fields() { - return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getCsvReader_Quote() { - return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getCsvReader_Separator() { - return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getCsvReader_SkipLines() { - return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EDataType getChar() { - return charEDataType; - } - - /** - * - * - * @generated - */ - public CsvFactory getCsvFactory() { - return (CsvFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - csvDocumentRootEClass = createEClass(CSV_DOCUMENT_ROOT); - createEAttribute(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__MIXED); - createEReference(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - createEReference(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - createEReference(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__READER); - - csvReaderEClass = createEClass(CSV_READER); - createEAttribute(csvReaderEClass, CSV_READER__ENCODING); - createEAttribute(csvReaderEClass, CSV_READER__FIELDS); - createEAttribute(csvReaderEClass, CSV_READER__QUOTE); - createEAttribute(csvReaderEClass, CSV_READER__SEPARATOR); - createEAttribute(csvReaderEClass, CSV_READER__SKIP_LINES); - - // Create data types - charEDataType = createEDataType(CHAR); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI); - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - csvReaderEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader()); - - // Initialize classes and features; add operations and parameters - initEClass(csvDocumentRootEClass, CsvDocumentRoot.class, "CsvDocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getCsvDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getCsvDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getCsvDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getCsvDocumentRoot_Reader(), this.getCsvReader(), null, "reader", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(csvReaderEClass, CsvReader.class, "CsvReader", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getCsvReader_Encoding(), theXMLTypePackage.getString(), "encoding", "UTF-8", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getCsvReader_Fields(), theXMLTypePackage.getString(), "fields", null, 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getCsvReader_Quote(), this.getChar(), "quote", "\"", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getCsvReader_Separator(), this.getChar(), "separator", ",", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getCsvReader_SkipLines(), theXMLTypePackage.getInteger(), "skipLines", "0", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - // Initialize data types - initEDataType(charEDataType, String.class, "Char", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * - * - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (charEDataType, - source, - new String[] { - "name", "char", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#string", //$NON-NLS-1$ //$NON-NLS-2$ - "length", "1" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (csvDocumentRootEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvDocumentRoot_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvDocumentRoot_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvDocumentRoot_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvDocumentRoot_Reader(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "reader", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (csvReaderEClass, - source, - new String[] { - "name", "reader", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvReader_Encoding(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "encoding" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvReader_Fields(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "fields" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvReader_Quote(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "quote" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvReader_Separator(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "separator" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getCsvReader_SkipLines(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "skipLines" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //CsvPackageImpl Index: src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java (working copy) @@ -1,286 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.csv.CsvDocumentRoot; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; - -/** - * - * An implementation of the model object 'Document Root'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getReader Reader}
  • - *
- *

- * - * @generated - */ -public class CsvDocumentRootImpl extends EObjectImpl implements CsvDocumentRoot { - /** - * The cached value of the '{@link #getMixed() Mixed}' attribute list. - * - * - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map. - * - * - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap; - - /** - * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map. - * - * - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation; - - /** - * - * - * @generated - */ - protected CsvDocumentRootImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return CsvPackage.Literals.CSV_DOCUMENT_ROOT; - } - - /** - * - * - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, CsvPackage.CSV_DOCUMENT_ROOT__MIXED); - } - return mixed; - } - - /** - * - * - * @generated - */ - public EMap getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap; - } - - /** - * - * - * @generated - */ - public EMap getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation; - } - - /** - * - * - * @generated - */ - public CsvReader getReader() { - return (CsvReader)getMixed().get(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetReader(CsvReader newReader, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, newReader, msgs); - } - - /** - * - * - * @generated - */ - public void setReader(CsvReader newReader) { - ((FeatureMap.Internal)getMixed()).set(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, newReader); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case CsvPackage.CSV_DOCUMENT_ROOT__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); - case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); - case CsvPackage.CSV_DOCUMENT_ROOT__READER: - return basicSetReader(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case CsvPackage.CSV_DOCUMENT_ROOT__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - if (coreType) return getXMLNSPrefixMap(); - else return getXMLNSPrefixMap().map(); - case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - if (coreType) return getXSISchemaLocation(); - else return getXSISchemaLocation().map(); - case CsvPackage.CSV_DOCUMENT_ROOT__READER: - return getReader(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case CsvPackage.CSV_DOCUMENT_ROOT__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue); - return; - case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue); - return; - case CsvPackage.CSV_DOCUMENT_ROOT__READER: - setReader((CsvReader)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case CsvPackage.CSV_DOCUMENT_ROOT__MIXED: - getMixed().clear(); - return; - case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case CsvPackage.CSV_DOCUMENT_ROOT__READER: - setReader((CsvReader)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case CsvPackage.CSV_DOCUMENT_ROOT__MIXED: - return mixed != null && !mixed.isEmpty(); - case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case CsvPackage.CSV_DOCUMENT_ROOT__READER: - return getReader() != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //CsvDocumentRootImpl Index: src/org/jboss/tools/smooks/model/csv/impl/messages.properties =================================================================== --- src/org/jboss/tools/smooks/model/csv/impl/messages.properties (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/impl/messages.properties (working copy) @@ -1,3 +0,0 @@ -CsvFactoryImpl_Error_Datatype_Invalid=The datatype ' -CsvFactoryImpl_Error_Invalid_Class_Classifier=The class ' -CsvFactoryImpl_Error_Invalid_Classifier=' is not a valid classifier Index: src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java (working copy) @@ -1,519 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv.impl; - -import java.math.BigInteger; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.csv.CsvPackage; -import org.jboss.tools.smooks.model.csv.CsvReader; -import org.jboss.tools.smooks.model.smooks.impl.AbstractReaderImpl; - - -/** - * - * An implementation of the model object 'Reader'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getEncoding Encoding}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getFields Fields}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getQuote Quote}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getSeparator Separator}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getSkipLines Skip Lines}
  • - *
- *

- * - * @generated - */ -public class CsvReaderImpl extends AbstractReaderImpl implements CsvReader { - /** - * The default value of the '{@link #getEncoding() Encoding}' attribute. - * - * - * @see #getEncoding() - * @generated - * @ordered - */ - protected static final String ENCODING_EDEFAULT = "UTF-8"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getEncoding() Encoding}' attribute. - * - * - * @see #getEncoding() - * @generated - * @ordered - */ - protected String encoding = ENCODING_EDEFAULT; - - /** - * This is true if the Encoding attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean encodingESet; - - /** - * The default value of the '{@link #getFields() Fields}' attribute. - * - * - * @see #getFields() - * @generated - * @ordered - */ - protected static final String FIELDS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFields() Fields}' attribute. - * - * - * @see #getFields() - * @generated - * @ordered - */ - protected String fields = FIELDS_EDEFAULT; - - /** - * The default value of the '{@link #getQuote() Quote}' attribute. - * - * - * @see #getQuote() - * @generated - * @ordered - */ - protected static final String QUOTE_EDEFAULT = "\""; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getQuote() Quote}' attribute. - * - * - * @see #getQuote() - * @generated - * @ordered - */ - protected String quote = QUOTE_EDEFAULT; - - /** - * This is true if the Quote attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean quoteESet; - - /** - * The default value of the '{@link #getSeparator() Separator}' attribute. - * - * - * @see #getSeparator() - * @generated - * @ordered - */ - protected static final String SEPARATOR_EDEFAULT = ","; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getSeparator() Separator}' attribute. - * - * - * @see #getSeparator() - * @generated - * @ordered - */ - protected String separator = SEPARATOR_EDEFAULT; - - /** - * This is true if the Separator attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean separatorESet; - - /** - * The default value of the '{@link #getSkipLines() Skip Lines}' attribute. - * - * - * @see #getSkipLines() - * @generated - * @ordered - */ - protected static final BigInteger SKIP_LINES_EDEFAULT = new BigInteger("0"); //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getSkipLines() Skip Lines}' attribute. - * - * - * @see #getSkipLines() - * @generated - * @ordered - */ - protected BigInteger skipLines = SKIP_LINES_EDEFAULT; - - /** - * This is true if the Skip Lines attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean skipLinesESet; - - /** - * - * - * @generated - */ - protected CsvReaderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return CsvPackage.Literals.CSV_READER; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return encoding; - } - - /** - * - * - * @generated - */ - public void setEncoding(String newEncoding) { - String oldEncoding = encoding; - encoding = newEncoding; - boolean oldEncodingESet = encodingESet; - encodingESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__ENCODING, oldEncoding, encoding, !oldEncodingESet)); - } - - /** - * - * - * @generated - */ - public void unsetEncoding() { - String oldEncoding = encoding; - boolean oldEncodingESet = encodingESet; - encoding = ENCODING_EDEFAULT; - encodingESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CsvPackage.CSV_READER__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetEncoding() { - return encodingESet; - } - - /** - * - * - * @generated - */ - public String getFields() { - return fields; - } - - /** - * - * - * @generated - */ - public void setFields(String newFields) { - String oldFields = fields; - fields = newFields; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__FIELDS, oldFields, fields)); - } - - /** - * - * - * @generated - */ - public String getQuote() { - return quote; - } - - /** - * - * - * @generated - */ - public void setQuote(String newQuote) { - String oldQuote = quote; - quote = newQuote; - boolean oldQuoteESet = quoteESet; - quoteESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__QUOTE, oldQuote, quote, !oldQuoteESet)); - } - - /** - * - * - * @generated - */ - public void unsetQuote() { - String oldQuote = quote; - boolean oldQuoteESet = quoteESet; - quote = QUOTE_EDEFAULT; - quoteESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CsvPackage.CSV_READER__QUOTE, oldQuote, QUOTE_EDEFAULT, oldQuoteESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetQuote() { - return quoteESet; - } - - /** - * - * - * @generated - */ - public String getSeparator() { - return separator; - } - - /** - * - * - * @generated - */ - public void setSeparator(String newSeparator) { - String oldSeparator = separator; - separator = newSeparator; - boolean oldSeparatorESet = separatorESet; - separatorESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__SEPARATOR, oldSeparator, separator, !oldSeparatorESet)); - } - - /** - * - * - * @generated - */ - public void unsetSeparator() { - String oldSeparator = separator; - boolean oldSeparatorESet = separatorESet; - separator = SEPARATOR_EDEFAULT; - separatorESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CsvPackage.CSV_READER__SEPARATOR, oldSeparator, SEPARATOR_EDEFAULT, oldSeparatorESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetSeparator() { - return separatorESet; - } - - /** - * - * - * @generated - */ - public BigInteger getSkipLines() { - return skipLines; - } - - /** - * - * - * @generated - */ - public void setSkipLines(BigInteger newSkipLines) { - BigInteger oldSkipLines = skipLines; - skipLines = newSkipLines; - boolean oldSkipLinesESet = skipLinesESet; - skipLinesESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__SKIP_LINES, oldSkipLines, skipLines, !oldSkipLinesESet)); - } - - /** - * - * - * @generated - */ - public void unsetSkipLines() { - BigInteger oldSkipLines = skipLines; - boolean oldSkipLinesESet = skipLinesESet; - skipLines = SKIP_LINES_EDEFAULT; - skipLinesESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CsvPackage.CSV_READER__SKIP_LINES, oldSkipLines, SKIP_LINES_EDEFAULT, oldSkipLinesESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetSkipLines() { - return skipLinesESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case CsvPackage.CSV_READER__ENCODING: - return getEncoding(); - case CsvPackage.CSV_READER__FIELDS: - return getFields(); - case CsvPackage.CSV_READER__QUOTE: - return getQuote(); - case CsvPackage.CSV_READER__SEPARATOR: - return getSeparator(); - case CsvPackage.CSV_READER__SKIP_LINES: - return getSkipLines(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case CsvPackage.CSV_READER__ENCODING: - setEncoding((String)newValue); - return; - case CsvPackage.CSV_READER__FIELDS: - setFields((String)newValue); - return; - case CsvPackage.CSV_READER__QUOTE: - setQuote((String)newValue); - return; - case CsvPackage.CSV_READER__SEPARATOR: - setSeparator((String)newValue); - return; - case CsvPackage.CSV_READER__SKIP_LINES: - setSkipLines((BigInteger)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case CsvPackage.CSV_READER__ENCODING: - unsetEncoding(); - return; - case CsvPackage.CSV_READER__FIELDS: - setFields(FIELDS_EDEFAULT); - return; - case CsvPackage.CSV_READER__QUOTE: - unsetQuote(); - return; - case CsvPackage.CSV_READER__SEPARATOR: - unsetSeparator(); - return; - case CsvPackage.CSV_READER__SKIP_LINES: - unsetSkipLines(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case CsvPackage.CSV_READER__ENCODING: - return isSetEncoding(); - case CsvPackage.CSV_READER__FIELDS: - return FIELDS_EDEFAULT == null ? fields != null : !FIELDS_EDEFAULT.equals(fields); - case CsvPackage.CSV_READER__QUOTE: - return isSetQuote(); - case CsvPackage.CSV_READER__SEPARATOR: - return isSetSeparator(); - case CsvPackage.CSV_READER__SKIP_LINES: - return isSetSkipLines(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (encoding: "); //$NON-NLS-1$ - if (encodingESet) result.append(encoding); else result.append(""); //$NON-NLS-1$ - result.append(", fields: "); //$NON-NLS-1$ - result.append(fields); - result.append(", quote: "); //$NON-NLS-1$ - if (quoteESet) result.append(quote); else result.append(""); //$NON-NLS-1$ - result.append(", separator: "); //$NON-NLS-1$ - if (separatorESet) result.append(separator); else result.append(""); //$NON-NLS-1$ - result.append(", skipLines: "); //$NON-NLS-1$ - if (skipLinesESet) result.append(skipLines); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //CsvReaderImpl Index: src/org/jboss/tools/smooks/model/csv/CsvPackage.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/CsvPackage.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/CsvPackage.java (working copy) @@ -1,490 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * Smooks CSV Reader Configuration - * - * @see org.jboss.tools.smooks.model.csv.CsvFactory - * @model kind="package" - * @generated - */ -public interface CsvPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "csv"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.milyn.org/xsd/smooks/csv-1.1.xsd"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "csv"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - CsvPackage eINSTANCE = org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl.init(); - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl - * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvDocumentRoot() - * @generated - */ - int CSV_DOCUMENT_ROOT = 0; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int CSV_DOCUMENT_ROOT__MIXED = 0; - - /** - * The feature id for the 'XMLNS Prefix Map' map. - * - * - * @generated - * @ordered - */ - int CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; - - /** - * The feature id for the 'XSI Schema Location' map. - * - * - * @generated - * @ordered - */ - int CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; - - /** - * The feature id for the 'Reader' containment reference. - * - * - * @generated - * @ordered - */ - int CSV_DOCUMENT_ROOT__READER = 3; - - /** - * The number of structural features of the 'Document Root' class. - * - * - * @generated - * @ordered - */ - int CSV_DOCUMENT_ROOT_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl Reader}' class. - * - * - * @see org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl - * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvReader() - * @generated - */ - int CSV_READER = 1; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int CSV_READER__MIXED = SmooksPackage.ABSTRACT_READER__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int CSV_READER__ANY = SmooksPackage.ABSTRACT_READER__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int CSV_READER__ANY_ATTRIBUTE = SmooksPackage.ABSTRACT_READER__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Target Profile' attribute. - * - * - * @generated - * @ordered - */ - int CSV_READER__TARGET_PROFILE = SmooksPackage.ABSTRACT_READER__TARGET_PROFILE; - - /** - * The feature id for the 'Encoding' attribute. - * - * - * @generated - * @ordered - */ - int CSV_READER__ENCODING = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Fields' attribute. - * - * - * @generated - * @ordered - */ - int CSV_READER__FIELDS = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Quote' attribute. - * - * - * @generated - * @ordered - */ - int CSV_READER__QUOTE = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Separator' attribute. - * - * - * @generated - * @ordered - */ - int CSV_READER__SEPARATOR = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Skip Lines' attribute. - * - * - * @generated - * @ordered - */ - int CSV_READER__SKIP_LINES = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Reader' class. - * - * - * @generated - * @ordered - */ - int CSV_READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 5; - - /** - * The meta object id for the 'Char' data type. - * - * - * @see java.lang.String - * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getChar() - * @generated - */ - int CHAR = 2; - - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot Document Root}'. - * - * - * @return the meta object for class 'Document Root'. - * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot - * @generated - */ - EClass getCsvDocumentRoot(); - - /** - * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getMixed Mixed}'. - * - * - * @return the meta object for the attribute list 'Mixed'. - * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getMixed() - * @see #getCsvDocumentRoot() - * @generated - */ - EAttribute getCsvDocumentRoot_Mixed(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}'. - * - * - * @return the meta object for the map 'XMLNS Prefix Map'. - * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXMLNSPrefixMap() - * @see #getCsvDocumentRoot() - * @generated - */ - EReference getCsvDocumentRoot_XMLNSPrefixMap(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXSISchemaLocation XSI Schema Location}'. - * - * - * @return the meta object for the map 'XSI Schema Location'. - * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXSISchemaLocation() - * @see #getCsvDocumentRoot() - * @generated - */ - EReference getCsvDocumentRoot_XSISchemaLocation(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader Reader}'. - * - * - * @return the meta object for the containment reference 'Reader'. - * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader() - * @see #getCsvDocumentRoot() - * @generated - */ - EReference getCsvDocumentRoot_Reader(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.csv.CsvReader Reader}'. - * - * - * @return the meta object for class 'Reader'. - * @see org.jboss.tools.smooks.model.csv.CsvReader - * @generated - */ - EClass getCsvReader(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.csv.CsvReader#getEncoding Encoding}'. - * - * - * @return the meta object for the attribute 'Encoding'. - * @see org.jboss.tools.smooks.model.csv.CsvReader#getEncoding() - * @see #getCsvReader() - * @generated - */ - EAttribute getCsvReader_Encoding(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.csv.CsvReader#getFields Fields}'. - * - * - * @return the meta object for the attribute 'Fields'. - * @see org.jboss.tools.smooks.model.csv.CsvReader#getFields() - * @see #getCsvReader() - * @generated - */ - EAttribute getCsvReader_Fields(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote Quote}'. - * - * - * @return the meta object for the attribute 'Quote'. - * @see org.jboss.tools.smooks.model.csv.CsvReader#getQuote() - * @see #getCsvReader() - * @generated - */ - EAttribute getCsvReader_Quote(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSeparator Separator}'. - * - * - * @return the meta object for the attribute 'Separator'. - * @see org.jboss.tools.smooks.model.csv.CsvReader#getSeparator() - * @see #getCsvReader() - * @generated - */ - EAttribute getCsvReader_Separator(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines Skip Lines}'. - * - * - * @return the meta object for the attribute 'Skip Lines'. - * @see org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines() - * @see #getCsvReader() - * @generated - */ - EAttribute getCsvReader_SkipLines(); - - /** - * Returns the meta object for data type '{@link java.lang.String Char}'. - * - * - * @return the meta object for data type 'Char'. - * @see java.lang.String - * @model instanceClass="java.lang.String" - * extendedMetaData="name='char' baseType='http://www.eclipse.org/emf/2003/XMLType#string' length='1'" - * @generated - */ - EDataType getChar(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - CsvFactory getCsvFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl - * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvDocumentRoot() - * @generated - */ - EClass CSV_DOCUMENT_ROOT = eINSTANCE.getCsvDocumentRoot(); - - /** - * The meta object literal for the 'Mixed' attribute list feature. - * - * - * @generated - */ - EAttribute CSV_DOCUMENT_ROOT__MIXED = eINSTANCE.getCsvDocumentRoot_Mixed(); - - /** - * The meta object literal for the 'XMLNS Prefix Map' map feature. - * - * - * @generated - */ - EReference CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getCsvDocumentRoot_XMLNSPrefixMap(); - - /** - * The meta object literal for the 'XSI Schema Location' map feature. - * - * - * @generated - */ - EReference CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getCsvDocumentRoot_XSISchemaLocation(); - - /** - * The meta object literal for the 'Reader' containment reference feature. - * - * - * @generated - */ - EReference CSV_DOCUMENT_ROOT__READER = eINSTANCE.getCsvDocumentRoot_Reader(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl Reader}' class. - * - * - * @see org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl - * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvReader() - * @generated - */ - EClass CSV_READER = eINSTANCE.getCsvReader(); - - /** - * The meta object literal for the 'Encoding' attribute feature. - * - * - * @generated - */ - EAttribute CSV_READER__ENCODING = eINSTANCE.getCsvReader_Encoding(); - - /** - * The meta object literal for the 'Fields' attribute feature. - * - * - * @generated - */ - EAttribute CSV_READER__FIELDS = eINSTANCE.getCsvReader_Fields(); - - /** - * The meta object literal for the 'Quote' attribute feature. - * - * - * @generated - */ - EAttribute CSV_READER__QUOTE = eINSTANCE.getCsvReader_Quote(); - - /** - * The meta object literal for the 'Separator' attribute feature. - * - * - * @generated - */ - EAttribute CSV_READER__SEPARATOR = eINSTANCE.getCsvReader_Separator(); - - /** - * The meta object literal for the 'Skip Lines' attribute feature. - * - * - * @generated - */ - EAttribute CSV_READER__SKIP_LINES = eINSTANCE.getCsvReader_SkipLines(); - - /** - * The meta object literal for the 'Char' data type. - * - * - * @see java.lang.String - * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getChar() - * @generated - */ - EDataType CHAR = eINSTANCE.getChar(); - - } - -} //CsvPackage Index: src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java =================================================================== --- src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java (revision 20973) +++ src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java (working copy) @@ -1,118 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.csv; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.util.FeatureMap; - -/** - * - * A representation of the model object 'Document Root'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader Reader}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot() - * @model extendedMetaData="name='' kind='mixed'" - * @generated - */ -public interface CsvDocumentRoot extends EObject { - /** - * Returns the value of the 'Mixed' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * - *

- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Mixed' attribute list. - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot_Mixed() - * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='elementWildcard' name=':mixed'" - * @generated - */ - FeatureMap getMixed(); - - /** - * Returns the value of the 'XMLNS Prefix Map' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XMLNS Prefix Map' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XMLNS Prefix Map' map. - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot_XMLNSPrefixMap() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xmlns:prefix'" - * @generated - */ - EMap getXMLNSPrefixMap(); - - /** - * Returns the value of the 'XSI Schema Location' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XSI Schema Location' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XSI Schema Location' map. - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot_XSISchemaLocation() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" - * @generated - */ - EMap getXSISchemaLocation(); - - /** - * Returns the value of the 'Reader' containment reference. - * - * - * - * - * CSV Reader Configuration - * The CSV reader reads and validates a CSV stream and converts it to SAX events that Smooks - * can process. - * - * - * @return the value of the 'Reader' containment reference. - * @see #setReader(CsvReader) - * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot_Reader() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='reader' namespace='##targetNamespace' affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader'" - * @generated - */ - CsvReader getReader(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader Reader}' containment reference. - * - * - * @param value the new value of the 'Reader' containment reference. - * @see #getReader() - * @generated - */ - void setReader(CsvReader value); - -} // CsvDocumentRoot Index: src/org/jboss/tools/smooks/model/json/JsonPackage.java =================================================================== --- src/org/jboss/tools/smooks/model/json/JsonPackage.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/JsonPackage.java (working copy) @@ -1,731 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * Smooks JSON Reader Configuration - * - * @see org.jboss.tools.smooks.model.json.JsonFactory - * @model kind="package" - * @generated - */ -public interface JsonPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "json"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.milyn.org/xsd/smooks/json-1.1.xsd"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "json"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - JsonPackage eINSTANCE = org.jboss.tools.smooks.model.json.impl.JsonPackageImpl.init(); - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonDocumentRoot() - * @generated - */ - int JSON_DOCUMENT_ROOT = 0; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int JSON_DOCUMENT_ROOT__MIXED = 0; - - /** - * The feature id for the 'XMLNS Prefix Map' map. - * - * - * @generated - * @ordered - */ - int JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; - - /** - * The feature id for the 'XSI Schema Location' map. - * - * - * @generated - * @ordered - */ - int JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; - - /** - * The feature id for the 'Reader' containment reference. - * - * - * @generated - * @ordered - */ - int JSON_DOCUMENT_ROOT__READER = 3; - - /** - * The number of structural features of the 'Document Root' class. - * - * - * @generated - * @ordered - */ - int JSON_DOCUMENT_ROOT_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.json.impl.KeyImpl Key}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.KeyImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKey() - * @generated - */ - int KEY = 1; - - /** - * The feature id for the 'Value' attribute. - * - * - * @generated - * @ordered - */ - int KEY__VALUE = 0; - - /** - * The feature id for the 'From' attribute. - * - * - * @generated - * @ordered - */ - int KEY__FROM = 1; - - /** - * The feature id for the 'To' attribute. - * - * - * @generated - * @ordered - */ - int KEY__TO = 2; - - /** - * The number of structural features of the 'Key' class. - * - * - * @generated - * @ordered - */ - int KEY_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.json.impl.KeyMapImpl Key Map}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.KeyMapImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKeyMap() - * @generated - */ - int KEY_MAP = 2; - - /** - * The feature id for the 'Key' containment reference list. - * - * - * @generated - * @ordered - */ - int KEY_MAP__KEY = 0; - - /** - * The number of structural features of the 'Key Map' class. - * - * - * @generated - * @ordered - */ - int KEY_MAP_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl Reader}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.JsonReaderImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonReader() - * @generated - */ - int JSON_READER = 3; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int JSON_READER__MIXED = SmooksPackage.ABSTRACT_READER__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int JSON_READER__ANY = SmooksPackage.ABSTRACT_READER__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int JSON_READER__ANY_ATTRIBUTE = SmooksPackage.ABSTRACT_READER__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Target Profile' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__TARGET_PROFILE = SmooksPackage.ABSTRACT_READER__TARGET_PROFILE; - - /** - * The feature id for the 'Key Map' containment reference. - * - * - * @generated - * @ordered - */ - int JSON_READER__KEY_MAP = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Array Element Name' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__ARRAY_ELEMENT_NAME = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Encoding' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__ENCODING = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Illegal Element Name Char Replacement' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Key Prefix On Numeric' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__KEY_PREFIX_ON_NUMERIC = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Key Whitspace Replacement' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__KEY_WHITSPACE_REPLACEMENT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 5; - - /** - * The feature id for the 'Null Value Replacement' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__NULL_VALUE_REPLACEMENT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 6; - - /** - * The feature id for the 'Root Name' attribute. - * - * - * @generated - * @ordered - */ - int JSON_READER__ROOT_NAME = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 7; - - /** - * The number of structural features of the 'Reader' class. - * - * - * @generated - * @ordered - */ - int JSON_READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 8; - - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot Document Root}'. - * - * - * @return the meta object for class 'Document Root'. - * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot - * @generated - */ - EClass getJsonDocumentRoot(); - - /** - * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getMixed Mixed}'. - * - * - * @return the meta object for the attribute list 'Mixed'. - * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot#getMixed() - * @see #getJsonDocumentRoot() - * @generated - */ - EAttribute getJsonDocumentRoot_Mixed(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}'. - * - * - * @return the meta object for the map 'XMLNS Prefix Map'. - * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXMLNSPrefixMap() - * @see #getJsonDocumentRoot() - * @generated - */ - EReference getJsonDocumentRoot_XMLNSPrefixMap(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXSISchemaLocation XSI Schema Location}'. - * - * - * @return the meta object for the map 'XSI Schema Location'. - * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXSISchemaLocation() - * @see #getJsonDocumentRoot() - * @generated - */ - EReference getJsonDocumentRoot_XSISchemaLocation(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader Reader}'. - * - * - * @return the meta object for the containment reference 'Reader'. - * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader() - * @see #getJsonDocumentRoot() - * @generated - */ - EReference getJsonDocumentRoot_Reader(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.json.Key Key}'. - * - * - * @return the meta object for class 'Key'. - * @see org.jboss.tools.smooks.model.json.Key - * @generated - */ - EClass getKey(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.Key#getValue Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see org.jboss.tools.smooks.model.json.Key#getValue() - * @see #getKey() - * @generated - */ - EAttribute getKey_Value(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.Key#getFrom From}'. - * - * - * @return the meta object for the attribute 'From'. - * @see org.jboss.tools.smooks.model.json.Key#getFrom() - * @see #getKey() - * @generated - */ - EAttribute getKey_From(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.Key#getTo To}'. - * - * - * @return the meta object for the attribute 'To'. - * @see org.jboss.tools.smooks.model.json.Key#getTo() - * @see #getKey() - * @generated - */ - EAttribute getKey_To(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.json.KeyMap Key Map}'. - * - * - * @return the meta object for class 'Key Map'. - * @see org.jboss.tools.smooks.model.json.KeyMap - * @generated - */ - EClass getKeyMap(); - - /** - * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.json.KeyMap#getKey Key}'. - * - * - * @return the meta object for the containment reference list 'Key'. - * @see org.jboss.tools.smooks.model.json.KeyMap#getKey() - * @see #getKeyMap() - * @generated - */ - EReference getKeyMap_Key(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.json.JsonReader Reader}'. - * - * - * @return the meta object for class 'Reader'. - * @see org.jboss.tools.smooks.model.json.JsonReader - * @generated - */ - EClass getJsonReader(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyMap Key Map}'. - * - * - * @return the meta object for the containment reference 'Key Map'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getKeyMap() - * @see #getJsonReader() - * @generated - */ - EReference getJsonReader_KeyMap(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName Array Element Name}'. - * - * - * @return the meta object for the attribute 'Array Element Name'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_ArrayElementName(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getEncoding Encoding}'. - * - * - * @return the meta object for the attribute 'Encoding'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getEncoding() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_Encoding(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement Illegal Element Name Char Replacement}'. - * - * - * @return the meta object for the attribute 'Illegal Element Name Char Replacement'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_IllegalElementNameCharReplacement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric Key Prefix On Numeric}'. - * - * - * @return the meta object for the attribute 'Key Prefix On Numeric'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_KeyPrefixOnNumeric(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement Key Whitspace Replacement}'. - * - * - * @return the meta object for the attribute 'Key Whitspace Replacement'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_KeyWhitspaceReplacement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement Null Value Replacement}'. - * - * - * @return the meta object for the attribute 'Null Value Replacement'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_NullValueReplacement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.json.JsonReader#getRootName Root Name}'. - * - * - * @return the meta object for the attribute 'Root Name'. - * @see org.jboss.tools.smooks.model.json.JsonReader#getRootName() - * @see #getJsonReader() - * @generated - */ - EAttribute getJsonReader_RootName(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - JsonFactory getJsonFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonDocumentRoot() - * @generated - */ - EClass JSON_DOCUMENT_ROOT = eINSTANCE.getJsonDocumentRoot(); - - /** - * The meta object literal for the 'Mixed' attribute list feature. - * - * - * @generated - */ - EAttribute JSON_DOCUMENT_ROOT__MIXED = eINSTANCE.getJsonDocumentRoot_Mixed(); - - /** - * The meta object literal for the 'XMLNS Prefix Map' map feature. - * - * - * @generated - */ - EReference JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getJsonDocumentRoot_XMLNSPrefixMap(); - - /** - * The meta object literal for the 'XSI Schema Location' map feature. - * - * - * @generated - */ - EReference JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getJsonDocumentRoot_XSISchemaLocation(); - - /** - * The meta object literal for the 'Reader' containment reference feature. - * - * - * @generated - */ - EReference JSON_DOCUMENT_ROOT__READER = eINSTANCE.getJsonDocumentRoot_Reader(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.json.impl.KeyImpl Key}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.KeyImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKey() - * @generated - */ - EClass KEY = eINSTANCE.getKey(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * @generated - */ - EAttribute KEY__VALUE = eINSTANCE.getKey_Value(); - - /** - * The meta object literal for the 'From' attribute feature. - * - * - * @generated - */ - EAttribute KEY__FROM = eINSTANCE.getKey_From(); - - /** - * The meta object literal for the 'To' attribute feature. - * - * - * @generated - */ - EAttribute KEY__TO = eINSTANCE.getKey_To(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.json.impl.KeyMapImpl Key Map}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.KeyMapImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKeyMap() - * @generated - */ - EClass KEY_MAP = eINSTANCE.getKeyMap(); - - /** - * The meta object literal for the 'Key' containment reference list feature. - * - * - * @generated - */ - EReference KEY_MAP__KEY = eINSTANCE.getKeyMap_Key(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl Reader}' class. - * - * - * @see org.jboss.tools.smooks.model.json.impl.JsonReaderImpl - * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonReader() - * @generated - */ - EClass JSON_READER = eINSTANCE.getJsonReader(); - - /** - * The meta object literal for the 'Key Map' containment reference feature. - * - * - * @generated - */ - EReference JSON_READER__KEY_MAP = eINSTANCE.getJsonReader_KeyMap(); - - /** - * The meta object literal for the 'Array Element Name' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__ARRAY_ELEMENT_NAME = eINSTANCE.getJsonReader_ArrayElementName(); - - /** - * The meta object literal for the 'Encoding' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__ENCODING = eINSTANCE.getJsonReader_Encoding(); - - /** - * The meta object literal for the 'Illegal Element Name Char Replacement' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT = eINSTANCE.getJsonReader_IllegalElementNameCharReplacement(); - - /** - * The meta object literal for the 'Key Prefix On Numeric' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__KEY_PREFIX_ON_NUMERIC = eINSTANCE.getJsonReader_KeyPrefixOnNumeric(); - - /** - * The meta object literal for the 'Key Whitspace Replacement' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__KEY_WHITSPACE_REPLACEMENT = eINSTANCE.getJsonReader_KeyWhitspaceReplacement(); - - /** - * The meta object literal for the 'Null Value Replacement' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__NULL_VALUE_REPLACEMENT = eINSTANCE.getJsonReader_NullValueReplacement(); - - /** - * The meta object literal for the 'Root Name' attribute feature. - * - * - * @generated - */ - EAttribute JSON_READER__ROOT_NAME = eINSTANCE.getJsonReader_RootName(); - - } - -} //JsonPackage Index: src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java (working copy) @@ -1,215 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.Key; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.json.Key} object. - * - * - * @generated - */ -public class KeyItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public KeyItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addValuePropertyDescriptor(object); - addFromPropertyDescriptor(object); - addToPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Value feature. - * - * - * @generated - */ - protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Key_value_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Key_value_feature", "_UI_Key_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.KEY__VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the From feature. - * - * - * @generated - */ - protected void addFromPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Key_from_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Key_from_feature", "_UI_Key_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.KEY__FROM, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the To feature. - * - * - * @generated - */ - protected void addToPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Key_to_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Key_to_feature", "_UI_Key_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.KEY__TO, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Key.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Key")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((Key)object).getTo(); - String from = ((Key)object).getFrom(); - String returnText = "-> "; //$NON-NLS-1$ - if(from != null){ - returnText = from + " -> "; //$NON-NLS-1$ - } - if(label != null){ - returnText = returnText + label; - } - return returnText; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Key.class)) { - case JsonPackage.KEY__VALUE: - case JsonPackage.KEY__FROM: - case JsonPackage.KEY__TO: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Json1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java (working copy) @@ -1,274 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.provider; - -import java.util.ArrayList; -import java.util.Collection; - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.jboss.tools.smooks.model.json.util.JsonAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class JsonItemProviderAdapterFactory extends JsonAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public JsonItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot} instances. - * - * - * @generated - */ - protected JsonDocumentRootItemProvider jsonDocumentRootItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot}. - * - * - * @generated - */ - @Override - public Adapter createJsonDocumentRootAdapter() { - if (jsonDocumentRootItemProvider == null) { - jsonDocumentRootItemProvider = new JsonDocumentRootItemProvider(this); - } - - return jsonDocumentRootItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.json.Key} instances. - * - * - * @generated - */ - protected KeyItemProvider keyItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.Key}. - * - * - * @generated - */ - @Override - public Adapter createKeyAdapter() { - if (keyItemProvider == null) { - keyItemProvider = new KeyItemProvider(this); - } - - return keyItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.json.KeyMap} instances. - * - * - * @generated - */ - protected KeyMapItemProvider keyMapItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.KeyMap}. - * - * - * @generated - */ - @Override - public Adapter createKeyMapAdapter() { - if (keyMapItemProvider == null) { - keyMapItemProvider = new KeyMapItemProvider(this); - } - - return keyMapItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.json.JsonReader} instances. - * - * - * @generated - */ - protected JsonReaderItemProvider jsonReaderItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.JsonReader}. - * - * - * @generated - */ - @Override - public Adapter createJsonReaderAdapter() { - if (jsonReaderItemProvider == null) { - jsonReaderItemProvider = new JsonReaderItemProvider(this); - } - - return jsonReaderItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (jsonDocumentRootItemProvider != null) jsonDocumentRootItemProvider.dispose(); - if (keyItemProvider != null) keyItemProvider.dispose(); - if (keyMapItemProvider != null) keyMapItemProvider.dispose(); - if (jsonReaderItemProvider != null) jsonReaderItemProvider.dispose(); - } - -} Index: src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java (working copy) @@ -1,344 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.json.JsonFactory; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; -import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.json.JsonReader} object. - * - * - * @generated - */ -public class JsonReaderItemProvider - extends AbstractReaderItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public JsonReaderItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addArrayElementNamePropertyDescriptor(object); - addEncodingPropertyDescriptor(object); - addIllegalElementNameCharReplacementPropertyDescriptor(object); - addKeyPrefixOnNumericPropertyDescriptor(object); - addKeyWhitspaceReplacementPropertyDescriptor(object); - addNullValueReplacementPropertyDescriptor(object); - addRootNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Array Element Name feature. - * - * - * @generated - */ - protected void addArrayElementNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_arrayElementName_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_arrayElementName_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__ARRAY_ELEMENT_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Encoding feature. - * - * - * @generated - */ - protected void addEncodingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_encoding_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_encoding_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__ENCODING, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Illegal Element Name Char Replacement feature. - * - * - * @generated - */ - protected void addIllegalElementNameCharReplacementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_illegalElementNameCharReplacement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_illegalElementNameCharReplacement_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Key Prefix On Numeric feature. - * - * - * @generated - */ - protected void addKeyPrefixOnNumericPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_keyPrefixOnNumeric_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_keyPrefixOnNumeric_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__KEY_PREFIX_ON_NUMERIC, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Key Whitspace Replacement feature. - * - * - * @generated - */ - protected void addKeyWhitspaceReplacementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_keyWhitspaceReplacement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_keyWhitspaceReplacement_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__KEY_WHITSPACE_REPLACEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Null Value Replacement feature. - * - * - * @generated - */ - protected void addNullValueReplacementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_nullValueReplacement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_nullValueReplacement_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__NULL_VALUE_REPLACEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Root Name feature. - * - * - * @generated - */ - protected void addRootNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JsonReader_rootName_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JsonReader_rootName_feature", "_UI_JsonReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JsonPackage.Literals.JSON_READER__ROOT_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JsonPackage.Literals.JSON_READER__KEY_MAP); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns JsonReader.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/JsonReader")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return "JSON"; //$NON-NLS-1$ -// String label = ((JsonReader)object).getArrayElementName(); -// return label == null || label.length() == 0 ? -// getString("_UI_JsonReader_type") : -// getString("_UI_JsonReader_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(JsonReader.class)) { - case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME: - case JsonPackage.JSON_READER__ENCODING: - case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT: - case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC: - case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT: - case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT: - case JsonPackage.JSON_READER__ROOT_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case JsonPackage.JSON_READER__KEY_MAP: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JsonPackage.Literals.JSON_READER__KEY_MAP, - JsonFactory.eINSTANCE.createKeyMap())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Json1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java (working copy) @@ -1,171 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.json.JsonDocumentRoot; -import org.jboss.tools.smooks.model.json.JsonFactory; -import org.jboss.tools.smooks.model.json.JsonPackage; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot} object. - * - * - * @generated - */ -public class JsonDocumentRootItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public JsonDocumentRootItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns JsonDocumentRoot.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/JsonDocumentRoot")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_JsonDocumentRoot_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(JsonDocumentRoot.class)) { - case JsonPackage.JSON_DOCUMENT_ROOT__READER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, - JsonFactory.eINSTANCE.createJsonReader())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Json1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java =================================================================== --- src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java (working copy) @@ -1,93 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the Json-1 edit plugin. - * - * - * @generated - */ -public final class Json1EditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final Json1EditPlugin INSTANCE = new Json1EditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public Json1EditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} Index: src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java (working copy) @@ -1,171 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.json.JsonFactory; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.KeyMap; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.json.KeyMap} object. - * - * - * @generated - */ -public class KeyMapItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public KeyMapItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JsonPackage.Literals.KEY_MAP__KEY); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns KeyMap.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/KeyMap")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_KeyMap_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(KeyMap.class)) { - case JsonPackage.KEY_MAP__KEY: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JsonPackage.Literals.KEY_MAP__KEY, - JsonFactory.eINSTANCE.createKey())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Json1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/json/Key.java =================================================================== --- src/org/jboss/tools/smooks/model/json/Key.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/Key.java (working copy) @@ -1,113 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Key'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.Key#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.json.Key#getFrom From}
  • - *
  • {@link org.jboss.tools.smooks.model.json.Key#getTo To}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey() - * @model extendedMetaData="name='key' kind='simple'" - * @generated - */ -public interface Key extends EObject { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value' attribute. - * @see #setValue(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey_Value() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="name=':0' kind='simple'" - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.Key#getValue Value}' attribute. - * - * - * @param value the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - - /** - * Returns the value of the 'From' attribute. - * - * - * - * - * The name of the key that will be replaced. - * - * - * @return the value of the 'From' attribute. - * @see #setFrom(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey_From() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='from'" - * @generated - */ - String getFrom(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.Key#getFrom From}' attribute. - * - * - * @param value the new value of the 'From' attribute. - * @see #getFrom() - * @generated - */ - void setFrom(String value); - - /** - * Returns the value of the 'To' attribute. - * - * - * - * - * The name the "from" key name is changed into. - * - * - * @return the value of the 'To' attribute. - * @see #setTo(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey_To() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='to'" - * @generated - */ - String getTo(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.Key#getTo To}' attribute. - * - * - * @param value the new value of the 'To' attribute. - * @see #getTo() - * @generated - */ - void setTo(String value); - -} // Key Index: src/org/jboss/tools/smooks/model/json/JsonFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/json/JsonFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/JsonFactory.java (working copy) @@ -1,73 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.jboss.tools.smooks.model.json.JsonPackage - * @generated - */ -public interface JsonFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - JsonFactory eINSTANCE = org.jboss.tools.smooks.model.json.impl.JsonFactoryImpl.init(); - - /** - * Returns a new object of class 'Document Root'. - * - * - * @return a new object of class 'Document Root'. - * @generated - */ - JsonDocumentRoot createJsonDocumentRoot(); - - /** - * Returns a new object of class 'Key'. - * - * - * @return a new object of class 'Key'. - * @generated - */ - Key createKey(); - - /** - * Returns a new object of class 'Key Map'. - * - * - * @return a new object of class 'Key Map'. - * @generated - */ - KeyMap createKeyMap(); - - /** - * Returns a new object of class 'Reader'. - * - * - * @return a new object of class 'Reader'. - * @generated - */ - JsonReader createJsonReader(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - JsonPackage getJsonPackage(); - -} //JsonFactory Index: src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java (working copy) @@ -1,32 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.jboss.tools.smooks.model.json.util.JsonResourceFactoryImpl - * @generated - */ -public class JsonResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public JsonResourceImpl(URI uri) { - super(uri); - } - -} //JsonResourceImpl Index: src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java =================================================================== --- src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java (working copy) @@ -1,54 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.util; - -import java.util.Map; - - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.jboss.tools.smooks.model.json.JsonPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class JsonXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public JsonXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - JsonPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the JsonResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new JsonResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new JsonResourceFactoryImpl()); - } - return registrations; - } - -} //JsonXMLProcessor Index: src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java (working copy) @@ -1,56 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.jboss.tools.smooks.model.json.util.JsonResourceImpl - * @generated - */ -public class JsonResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public JsonResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - XMLResource result = new JsonResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); - return result; - } - -} //JsonResourceFactoryImpl Index: src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java =================================================================== --- src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java (working copy) @@ -1,265 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.util; - -import java.util.List; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.json.JsonDocumentRoot; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; -import org.jboss.tools.smooks.model.json.Key; -import org.jboss.tools.smooks.model.json.KeyMap; -import org.jboss.tools.smooks.model.smooks.AbstractReader; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.jboss.tools.smooks.model.json.JsonPackage - * @generated - */ -public class JsonSwitch { - /** - * The cached model package - * - * - * @generated - */ - protected static JsonPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public JsonSwitch() { - if (modelPackage == null) { - modelPackage = JsonPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case JsonPackage.JSON_DOCUMENT_ROOT: { - JsonDocumentRoot jsonDocumentRoot = (JsonDocumentRoot)theEObject; - T result = caseJsonDocumentRoot(jsonDocumentRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JsonPackage.KEY: { - Key key = (Key)theEObject; - T result = caseKey(key); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JsonPackage.KEY_MAP: { - KeyMap keyMap = (KeyMap)theEObject; - T result = caseKeyMap(keyMap); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JsonPackage.JSON_READER: { - JsonReader jsonReader = (JsonReader)theEObject; - T result = caseJsonReader(jsonReader); - if (result == null) result = caseAbstractReader(jsonReader); - if (result == null) result = caseAbstractResourceConfig(jsonReader); - if (result == null) result = caseAbstractAnyType(jsonReader); - if (result == null) result = caseAnyType(jsonReader); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Document Root'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Document Root'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseJsonDocumentRoot(JsonDocumentRoot object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Key'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Key'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseKey(Key object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Key Map'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Key Map'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseKeyMap(KeyMap object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Reader'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Reader'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseJsonReader(JsonReader object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAnyType(AnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAnyType(AbstractAnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Resource Config'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Resource Config'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractResourceConfig(AbstractResourceConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Reader'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Reader'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractReader(AbstractReader object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} //JsonSwitch Index: src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java (working copy) @@ -1,256 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.util; - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.json.JsonDocumentRoot; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; -import org.jboss.tools.smooks.model.json.Key; -import org.jboss.tools.smooks.model.json.KeyMap; -import org.jboss.tools.smooks.model.smooks.AbstractReader; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.jboss.tools.smooks.model.json.JsonPackage - * @generated - */ -public class JsonAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static JsonPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public JsonAdapterFactory() { - if (modelPackage == null) { - modelPackage = JsonPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected JsonSwitch modelSwitch = - new JsonSwitch() { - @Override - public Adapter caseJsonDocumentRoot(JsonDocumentRoot object) { - return createJsonDocumentRootAdapter(); - } - @Override - public Adapter caseKey(Key object) { - return createKeyAdapter(); - } - @Override - public Adapter caseKeyMap(KeyMap object) { - return createKeyMapAdapter(); - } - @Override - public Adapter caseJsonReader(JsonReader object) { - return createJsonReaderAdapter(); - } - @Override - public Adapter caseAnyType(AnyType object) { - return createAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractAnyType(AbstractAnyType object) { - return createAbstractAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) { - return createAbstractResourceConfigAdapter(); - } - @Override - public Adapter caseAbstractReader(AbstractReader object) { - return createAbstractReaderAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot Document Root}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot - * @generated - */ - public Adapter createJsonDocumentRootAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.json.Key Key}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.json.Key - * @generated - */ - public Adapter createKeyAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.json.KeyMap Key Map}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.json.KeyMap - * @generated - */ - public Adapter createKeyMapAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.json.JsonReader Reader}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.json.JsonReader - * @generated - */ - public Adapter createJsonReaderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.xml.type.AnyType - * @generated - */ - public Adapter createAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link common.AbstractAnyType Abstract Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see common.AbstractAnyType - * @generated - */ - public Adapter createAbstractAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractResourceConfig Abstract Resource Config}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractResourceConfig - * @generated - */ - public Adapter createAbstractResourceConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractReader Abstract Reader}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractReader - * @generated - */ - public Adapter createAbstractReaderAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //JsonAdapterFactory Index: src/org/jboss/tools/smooks/model/json/KeyMap.java =================================================================== --- src/org/jboss/tools/smooks/model/json/KeyMap.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/KeyMap.java (working copy) @@ -1,49 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Key Map'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.KeyMap#getKey Key}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.json.JsonPackage#getKeyMap() - * @model extendedMetaData="name='keyMap' kind='elementOnly'" - * @generated - */ -public interface KeyMap extends EObject { - /** - * Returns the value of the 'Key' containment reference list. - * The list contents are of type {@link org.jboss.tools.smooks.model.json.Key}. - * - * - * - * - * Defines a JSON element name mapping - * The "from" key will be replaced with the "to" key or the contents of this element. - * - * - * @return the value of the 'Key' containment reference list. - * @see org.jboss.tools.smooks.model.json.JsonPackage#getKeyMap_Key() - * @model containment="true" required="true" - * extendedMetaData="kind='element' name='key' namespace='##targetNamespace'" - * @generated - */ - EList getKey(); - -} // KeyMap Index: src/org/jboss/tools/smooks/model/json/JsonReader.java =================================================================== --- src/org/jboss/tools/smooks/model/json/JsonReader.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/JsonReader.java (working copy) @@ -1,351 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json; - -import org.jboss.tools.smooks.model.smooks.AbstractReader; - -/** - * - * A representation of the model object 'Reader'. - * - * - * - * JSON Reader - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getKeyMap Key Map}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName Array Element Name}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getEncoding Encoding}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement Illegal Element Name Char Replacement}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric Key Prefix On Numeric}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement Key Whitspace Replacement}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement Null Value Replacement}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonReader#getRootName Root Name}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader() - * @model extendedMetaData="name='reader' kind='elementOnly'" - * @generated - */ -public interface JsonReader extends AbstractReader { - /** - * Returns the value of the 'Key Map' containment reference. - * - * - * - * - * Defines a JSON element name mapping - * The "from" key will be replaced with the "to" key or the contents of the element. - * - * - * @return the value of the 'Key Map' containment reference. - * @see #setKeyMap(KeyMap) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_KeyMap() - * @model containment="true" - * extendedMetaData="kind='element' name='keyMap' namespace='##targetNamespace'" - * @generated - */ - KeyMap getKeyMap(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyMap Key Map}' containment reference. - * - * - * @param value the new value of the 'Key Map' containment reference. - * @see #getKeyMap() - * @generated - */ - void setKeyMap(KeyMap value); - - /** - * Returns the value of the 'Array Element Name' attribute. - * The default value is "element". - * - * - * - * - * The element name of a array element. Default of 'element'. - * - * - * @return the value of the 'Array Element Name' attribute. - * @see #isSetArrayElementName() - * @see #unsetArrayElementName() - * @see #setArrayElementName(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_ArrayElementName() - * @model default="element" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='arrayElementName'" - * @generated - */ - String getArrayElementName(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName Array Element Name}' attribute. - * - * - * @param value the new value of the 'Array Element Name' attribute. - * @see #isSetArrayElementName() - * @see #unsetArrayElementName() - * @see #getArrayElementName() - * @generated - */ - void setArrayElementName(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName Array Element Name}' attribute. - * - * - * @see #isSetArrayElementName() - * @see #getArrayElementName() - * @see #setArrayElementName(String) - * @generated - */ - void unsetArrayElementName(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName Array Element Name}' attribute is set. - * - * - * @return whether the value of the 'Array Element Name' attribute is set. - * @see #unsetArrayElementName() - * @see #getArrayElementName() - * @see #setArrayElementName(String) - * @generated - */ - boolean isSetArrayElementName(); - - /** - * Returns the value of the 'Encoding' attribute. - * The default value is "UTF-8". - * - * - * - * - * The encoding of the input stream. Default of 'UTF-8' - * - * - * @return the value of the 'Encoding' attribute. - * @see #isSetEncoding() - * @see #unsetEncoding() - * @see #setEncoding(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_Encoding() - * @model default="UTF-8" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='encoding'" - * @generated - */ - String getEncoding(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getEncoding Encoding}' attribute. - * - * - * @param value the new value of the 'Encoding' attribute. - * @see #isSetEncoding() - * @see #unsetEncoding() - * @see #getEncoding() - * @generated - */ - void setEncoding(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getEncoding Encoding}' attribute. - * - * - * @see #isSetEncoding() - * @see #getEncoding() - * @see #setEncoding(String) - * @generated - */ - void unsetEncoding(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getEncoding Encoding}' attribute is set. - * - * - * @return whether the value of the 'Encoding' attribute is set. - * @see #unsetEncoding() - * @see #getEncoding() - * @see #setEncoding(String) - * @generated - */ - boolean isSetEncoding(); - - /** - * Returns the value of the 'Illegal Element Name Char Replacement' attribute. - * - * - * - * - * If illegal characters are encountered in a JSON element name then they are replaced with this value. - * By default this is not defined, so that the reader doesn't doesn't search for illegal characters. - * - * - * @return the value of the 'Illegal Element Name Char Replacement' attribute. - * @see #setIllegalElementNameCharReplacement(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_IllegalElementNameCharReplacement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='illegalElementNameCharReplacement'" - * @generated - */ - String getIllegalElementNameCharReplacement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement Illegal Element Name Char Replacement}' attribute. - * - * - * @param value the new value of the 'Illegal Element Name Char Replacement' attribute. - * @see #getIllegalElementNameCharReplacement() - * @generated - */ - void setIllegalElementNameCharReplacement(String value); - - /** - * Returns the value of the 'Key Prefix On Numeric' attribute. - * - * - * - * - * The prefix character to add if the JSON node name starts with a number. - * By default this is not defined, so that the reader doesn't search for element names that start with a number. - * - * - * @return the value of the 'Key Prefix On Numeric' attribute. - * @see #setKeyPrefixOnNumeric(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_KeyPrefixOnNumeric() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='keyPrefixOnNumeric'" - * @generated - */ - String getKeyPrefixOnNumeric(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric Key Prefix On Numeric}' attribute. - * - * - * @param value the new value of the 'Key Prefix On Numeric' attribute. - * @see #getKeyPrefixOnNumeric() - * @generated - */ - void setKeyPrefixOnNumeric(String value); - - /** - * Returns the value of the 'Key Whitspace Replacement' attribute. - * - * - * - * - * The replacement character for whitespaces in a JSON map key. - * By default this not defined, so that the reader doesn't search for whitespaces. - * - * - * @return the value of the 'Key Whitspace Replacement' attribute. - * @see #setKeyWhitspaceReplacement(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_KeyWhitspaceReplacement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='keyWhitspaceReplacement'" - * @generated - */ - String getKeyWhitspaceReplacement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement Key Whitspace Replacement}' attribute. - * - * - * @param value the new value of the 'Key Whitspace Replacement' attribute. - * @see #getKeyWhitspaceReplacement() - * @generated - */ - void setKeyWhitspaceReplacement(String value); - - /** - * Returns the value of the 'Null Value Replacement' attribute. - * - * - * - * - * The replacement string for JSON NULL values. Default is an empty string. - * - * - * @return the value of the 'Null Value Replacement' attribute. - * @see #setNullValueReplacement(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_NullValueReplacement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='nullValueReplacement'" - * @generated - */ - String getNullValueReplacement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement Null Value Replacement}' attribute. - * - * - * @param value the new value of the 'Null Value Replacement' attribute. - * @see #getNullValueReplacement() - * @generated - */ - void setNullValueReplacement(String value); - - /** - * Returns the value of the 'Root Name' attribute. - * The default value is "json". - * - * - * - * - * The element name of the document root. Default of 'json'. - * - * - * @return the value of the 'Root Name' attribute. - * @see #isSetRootName() - * @see #unsetRootName() - * @see #setRootName(String) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_RootName() - * @model default="json" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='rootName'" - * @generated - */ - String getRootName(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getRootName Root Name}' attribute. - * - * - * @param value the new value of the 'Root Name' attribute. - * @see #isSetRootName() - * @see #unsetRootName() - * @see #getRootName() - * @generated - */ - void setRootName(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getRootName Root Name}' attribute. - * - * - * @see #isSetRootName() - * @see #getRootName() - * @see #setRootName(String) - * @generated - */ - void unsetRootName(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.json.JsonReader#getRootName Root Name}' attribute is set. - * - * - * @return whether the value of the 'Root Name' attribute is set. - * @see #unsetRootName() - * @see #getRootName() - * @see #setRootName(String) - * @generated - */ - boolean isSetRootName(); - -} // JsonReader Index: src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java =================================================================== --- src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java (working copy) @@ -1,118 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.util.FeatureMap; - -/** - * - * A representation of the model object 'Document Root'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader Reader}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot() - * @model extendedMetaData="name='' kind='mixed'" - * @generated - */ -public interface JsonDocumentRoot extends EObject { - /** - * Returns the value of the 'Mixed' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * - *

- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Mixed' attribute list. - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot_Mixed() - * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='elementWildcard' name=':mixed'" - * @generated - */ - FeatureMap getMixed(); - - /** - * Returns the value of the 'XMLNS Prefix Map' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XMLNS Prefix Map' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XMLNS Prefix Map' map. - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot_XMLNSPrefixMap() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xmlns:prefix'" - * @generated - */ - EMap getXMLNSPrefixMap(); - - /** - * Returns the value of the 'XSI Schema Location' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XSI Schema Location' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XSI Schema Location' map. - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot_XSISchemaLocation() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" - * @generated - */ - EMap getXSISchemaLocation(); - - /** - * Returns the value of the 'Reader' containment reference. - * - * - * - * - * JSON Reader Configuration - * The JSON reader reads a JSON stream and converts it to SAX events that Smooks - * can process. - * - * - * @return the value of the 'Reader' containment reference. - * @see #setReader(JsonReader) - * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot_Reader() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='reader' namespace='##targetNamespace' affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader'" - * @generated - */ - JsonReader getReader(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader Reader}' containment reference. - * - * - * @param value the new value of the 'Reader' containment reference. - * @see #getReader() - * @generated - */ - void setReader(JsonReader value); - -} // JsonDocumentRoot Index: src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java (working copy) @@ -1,156 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.impl; - -import java.util.Collection; - - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.Key; -import org.jboss.tools.smooks.model.json.KeyMap; - -/** - * - * An implementation of the model object 'Key Map'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.impl.KeyMapImpl#getKey Key}
  • - *
- *

- * - * @generated - */ -public class KeyMapImpl extends EObjectImpl implements KeyMap { - /** - * The cached value of the '{@link #getKey() Key}' containment reference list. - * - * - * @see #getKey() - * @generated - * @ordered - */ - protected EList key; - - /** - * - * - * @generated - */ - protected KeyMapImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JsonPackage.Literals.KEY_MAP; - } - - /** - * - * - * @generated - */ - public EList getKey() { - if (key == null) { - key = new EObjectContainmentEList(Key.class, this, JsonPackage.KEY_MAP__KEY); - } - return key; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JsonPackage.KEY_MAP__KEY: - return ((InternalEList)getKey()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JsonPackage.KEY_MAP__KEY: - return getKey(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JsonPackage.KEY_MAP__KEY: - getKey().clear(); - getKey().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JsonPackage.KEY_MAP__KEY: - getKey().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JsonPackage.KEY_MAP__KEY: - return key != null && !key.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //KeyMapImpl Index: src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java (working copy) @@ -1,286 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.json.JsonDocumentRoot; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; - -/** - * - * An implementation of the model object 'Document Root'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getReader Reader}
  • - *
- *

- * - * @generated - */ -public class JsonDocumentRootImpl extends EObjectImpl implements JsonDocumentRoot { - /** - * The cached value of the '{@link #getMixed() Mixed}' attribute list. - * - * - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map. - * - * - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap; - - /** - * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map. - * - * - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation; - - /** - * - * - * @generated - */ - protected JsonDocumentRootImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JsonPackage.Literals.JSON_DOCUMENT_ROOT; - } - - /** - * - * - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, JsonPackage.JSON_DOCUMENT_ROOT__MIXED); - } - return mixed; - } - - /** - * - * - * @generated - */ - public EMap getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap; - } - - /** - * - * - * @generated - */ - public EMap getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation; - } - - /** - * - * - * @generated - */ - public JsonReader getReader() { - return (JsonReader)getMixed().get(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetReader(JsonReader newReader, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, newReader, msgs); - } - - /** - * - * - * @generated - */ - public void setReader(JsonReader newReader) { - ((FeatureMap.Internal)getMixed()).set(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, newReader); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JsonPackage.JSON_DOCUMENT_ROOT__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); - case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); - case JsonPackage.JSON_DOCUMENT_ROOT__READER: - return basicSetReader(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JsonPackage.JSON_DOCUMENT_ROOT__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - if (coreType) return getXMLNSPrefixMap(); - else return getXMLNSPrefixMap().map(); - case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - if (coreType) return getXSISchemaLocation(); - else return getXSISchemaLocation().map(); - case JsonPackage.JSON_DOCUMENT_ROOT__READER: - return getReader(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JsonPackage.JSON_DOCUMENT_ROOT__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue); - return; - case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue); - return; - case JsonPackage.JSON_DOCUMENT_ROOT__READER: - setReader((JsonReader)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JsonPackage.JSON_DOCUMENT_ROOT__MIXED: - getMixed().clear(); - return; - case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case JsonPackage.JSON_DOCUMENT_ROOT__READER: - setReader((JsonReader)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JsonPackage.JSON_DOCUMENT_ROOT__MIXED: - return mixed != null && !mixed.isEmpty(); - case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case JsonPackage.JSON_DOCUMENT_ROOT__READER: - return getReader() != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //JsonDocumentRootImpl Index: src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java (working copy) @@ -1,595 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.impl; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.jboss.tools.smooks.model.common.CommonPackage; -import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl; -import org.jboss.tools.smooks.model.json.JsonDocumentRoot; -import org.jboss.tools.smooks.model.json.JsonFactory; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; -import org.jboss.tools.smooks.model.json.Key; -import org.jboss.tools.smooks.model.json.KeyMap; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; -import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class JsonPackageImpl extends EPackageImpl implements JsonPackage { - /** - * - * - * @generated - */ - private EClass jsonDocumentRootEClass = null; - - /** - * - * - * @generated - */ - private EClass keyEClass = null; - - /** - * - * - * @generated - */ - private EClass keyMapEClass = null; - - /** - * - * - * @generated - */ - private EClass jsonReaderEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.jboss.tools.smooks.model.json.JsonPackage#eNS_URI - * @see #init() - * @generated - */ - private JsonPackageImpl() { - super(eNS_URI, JsonFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *

Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *

Invocation of this method will not affect any packages that have - * already been initialized. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static JsonPackage init() { - if (isInited) return (JsonPackage)EPackage.Registry.INSTANCE.getEPackage(JsonPackage.eNS_URI); - - // Obtain or create and register package - JsonPackageImpl theJsonPackage = (JsonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JsonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JsonPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - - // Create package meta-data objects - theJsonPackage.createPackageContents(); - theSmooksPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - - // Initialize created meta-data - theJsonPackage.initializePackageContents(); - theSmooksPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theJsonPackage.freeze(); - - return theJsonPackage; - } - - /** - * - * - * @generated - */ - public EClass getJsonDocumentRoot() { - return jsonDocumentRootEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getJsonDocumentRoot_Mixed() { - return (EAttribute)jsonDocumentRootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getJsonDocumentRoot_XMLNSPrefixMap() { - return (EReference)jsonDocumentRootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getJsonDocumentRoot_XSISchemaLocation() { - return (EReference)jsonDocumentRootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getJsonDocumentRoot_Reader() { - return (EReference)jsonDocumentRootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getKey() { - return keyEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getKey_Value() { - return (EAttribute)keyEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getKey_From() { - return (EAttribute)keyEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getKey_To() { - return (EAttribute)keyEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getKeyMap() { - return keyMapEClass; - } - - /** - * - * - * @generated - */ - public EReference getKeyMap_Key() { - return (EReference)keyMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getJsonReader() { - return jsonReaderEClass; - } - - /** - * - * - * @generated - */ - public EReference getJsonReader_KeyMap() { - return (EReference)jsonReaderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_ArrayElementName() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_Encoding() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_IllegalElementNameCharReplacement() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_KeyPrefixOnNumeric() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_KeyWhitspaceReplacement() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_NullValueReplacement() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getJsonReader_RootName() { - return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public JsonFactory getJsonFactory() { - return (JsonFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - jsonDocumentRootEClass = createEClass(JSON_DOCUMENT_ROOT); - createEAttribute(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__MIXED); - createEReference(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - createEReference(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - createEReference(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__READER); - - keyEClass = createEClass(KEY); - createEAttribute(keyEClass, KEY__VALUE); - createEAttribute(keyEClass, KEY__FROM); - createEAttribute(keyEClass, KEY__TO); - - keyMapEClass = createEClass(KEY_MAP); - createEReference(keyMapEClass, KEY_MAP__KEY); - - jsonReaderEClass = createEClass(JSON_READER); - createEReference(jsonReaderEClass, JSON_READER__KEY_MAP); - createEAttribute(jsonReaderEClass, JSON_READER__ARRAY_ELEMENT_NAME); - createEAttribute(jsonReaderEClass, JSON_READER__ENCODING); - createEAttribute(jsonReaderEClass, JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT); - createEAttribute(jsonReaderEClass, JSON_READER__KEY_PREFIX_ON_NUMERIC); - createEAttribute(jsonReaderEClass, JSON_READER__KEY_WHITSPACE_REPLACEMENT); - createEAttribute(jsonReaderEClass, JSON_READER__NULL_VALUE_REPLACEMENT); - createEAttribute(jsonReaderEClass, JSON_READER__ROOT_NAME); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - jsonReaderEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader()); - - // Initialize classes and features; add operations and parameters - initEClass(jsonDocumentRootEClass, JsonDocumentRoot.class, "JsonDocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getJsonDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJsonDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJsonDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJsonDocumentRoot_Reader(), this.getJsonReader(), null, "reader", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(keyEClass, Key.class, "Key", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getKey_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getKey_From(), theXMLTypePackage.getString(), "from", null, 1, 1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getKey_To(), theXMLTypePackage.getString(), "to", null, 0, 1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(keyMapEClass, KeyMap.class, "KeyMap", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getKeyMap_Key(), this.getKey(), null, "key", null, 1, -1, KeyMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(jsonReaderEClass, JsonReader.class, "JsonReader", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getJsonReader_KeyMap(), this.getKeyMap(), null, "keyMap", null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJsonReader_ArrayElementName(), theXMLTypePackage.getString(), "arrayElementName", "element", 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getJsonReader_Encoding(), theXMLTypePackage.getString(), "encoding", "UTF-8", 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getJsonReader_IllegalElementNameCharReplacement(), theXMLTypePackage.getString(), "illegalElementNameCharReplacement", null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJsonReader_KeyPrefixOnNumeric(), theXMLTypePackage.getString(), "keyPrefixOnNumeric", null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJsonReader_KeyWhitspaceReplacement(), theXMLTypePackage.getString(), "keyWhitspaceReplacement", null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJsonReader_NullValueReplacement(), theXMLTypePackage.getString(), "nullValueReplacement", null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJsonReader_RootName(), theXMLTypePackage.getString(), "rootName", "json", 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * - * - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (jsonDocumentRootEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonDocumentRoot_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonDocumentRoot_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonDocumentRoot_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonDocumentRoot_Reader(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "reader", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (keyEClass, - source, - new String[] { - "name", "key", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "simple" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getKey_Value(), - source, - new String[] { - "name", ":0", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "simple" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getKey_From(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "from" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getKey_To(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "to" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (keyMapEClass, - source, - new String[] { - "name", "keyMap", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getKeyMap_Key(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "key", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (jsonReaderEClass, - source, - new String[] { - "name", "reader", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_KeyMap(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "keyMap", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_ArrayElementName(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "arrayElementName" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_Encoding(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "encoding" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_IllegalElementNameCharReplacement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "illegalElementNameCharReplacement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_KeyPrefixOnNumeric(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "keyPrefixOnNumeric" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_KeyWhitspaceReplacement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "keyWhitspaceReplacement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_NullValueReplacement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "nullValueReplacement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJsonReader_RootName(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "rootName" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //JsonPackageImpl Index: src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java (working copy) @@ -1,674 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.impl; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.json.JsonFactory; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; -import org.jboss.tools.smooks.model.json.KeyMap; -import org.jboss.tools.smooks.model.smooks.impl.AbstractReaderImpl; - -/** - * - * An implementation of the model object 'Reader'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getKeyMap Key Map}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getArrayElementName Array Element Name}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getEncoding Encoding}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getIllegalElementNameCharReplacement Illegal Element Name Char Replacement}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getKeyPrefixOnNumeric Key Prefix On Numeric}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getKeyWhitspaceReplacement Key Whitspace Replacement}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getNullValueReplacement Null Value Replacement}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getRootName Root Name}
  • - *
- *

- * - * @generated - */ -public class JsonReaderImpl extends AbstractReaderImpl implements JsonReader { - /** - * The cached value of the '{@link #getKeyMap() Key Map}' containment reference. - * - * - * @see #getKeyMap() - * @generated - * @ordered - */ - protected KeyMap keyMap; - - /** - * The default value of the '{@link #getArrayElementName() Array Element Name}' attribute. - * - * - * @see #getArrayElementName() - * @generated - * @ordered - */ - protected static final String ARRAY_ELEMENT_NAME_EDEFAULT = "element"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getArrayElementName() Array Element Name}' attribute. - * - * - * @see #getArrayElementName() - * @generated - * @ordered - */ - protected String arrayElementName = ARRAY_ELEMENT_NAME_EDEFAULT; - - /** - * This is true if the Array Element Name attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean arrayElementNameESet; - - /** - * The default value of the '{@link #getEncoding() Encoding}' attribute. - * - * - * @see #getEncoding() - * @generated - * @ordered - */ - protected static final String ENCODING_EDEFAULT = "UTF-8"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getEncoding() Encoding}' attribute. - * - * - * @see #getEncoding() - * @generated - * @ordered - */ - protected String encoding = ENCODING_EDEFAULT; - - /** - * This is true if the Encoding attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean encodingESet; - - /** - * The default value of the '{@link #getIllegalElementNameCharReplacement() Illegal Element Name Char Replacement}' attribute. - * - * - * @see #getIllegalElementNameCharReplacement() - * @generated - * @ordered - */ - protected static final String ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIllegalElementNameCharReplacement() Illegal Element Name Char Replacement}' attribute. - * - * - * @see #getIllegalElementNameCharReplacement() - * @generated - * @ordered - */ - protected String illegalElementNameCharReplacement = ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getKeyPrefixOnNumeric() Key Prefix On Numeric}' attribute. - * - * - * @see #getKeyPrefixOnNumeric() - * @generated - * @ordered - */ - protected static final String KEY_PREFIX_ON_NUMERIC_EDEFAULT = null; - - /** - * The cached value of the '{@link #getKeyPrefixOnNumeric() Key Prefix On Numeric}' attribute. - * - * - * @see #getKeyPrefixOnNumeric() - * @generated - * @ordered - */ - protected String keyPrefixOnNumeric = KEY_PREFIX_ON_NUMERIC_EDEFAULT; - - /** - * The default value of the '{@link #getKeyWhitspaceReplacement() Key Whitspace Replacement}' attribute. - * - * - * @see #getKeyWhitspaceReplacement() - * @generated - * @ordered - */ - protected static final String KEY_WHITSPACE_REPLACEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getKeyWhitspaceReplacement() Key Whitspace Replacement}' attribute. - * - * - * @see #getKeyWhitspaceReplacement() - * @generated - * @ordered - */ - protected String keyWhitspaceReplacement = KEY_WHITSPACE_REPLACEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getNullValueReplacement() Null Value Replacement}' attribute. - * - * - * @see #getNullValueReplacement() - * @generated - * @ordered - */ - protected static final String NULL_VALUE_REPLACEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNullValueReplacement() Null Value Replacement}' attribute. - * - * - * @see #getNullValueReplacement() - * @generated - * @ordered - */ - protected String nullValueReplacement = NULL_VALUE_REPLACEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getRootName() Root Name}' attribute. - * - * - * @see #getRootName() - * @generated - * @ordered - */ - protected static final String ROOT_NAME_EDEFAULT = "json"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getRootName() Root Name}' attribute. - * - * - * @see #getRootName() - * @generated - * @ordered - */ - protected String rootName = ROOT_NAME_EDEFAULT; - - /** - * This is true if the Root Name attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean rootNameESet; - - /** - * - * - * @generated - */ - protected JsonReaderImpl() { - super(); - this.setKeyMap(JsonFactory.eINSTANCE.createKeyMap()); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JsonPackage.Literals.JSON_READER; - } - - /** - * - * - * @generated - */ - public KeyMap getKeyMap() { - return keyMap; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetKeyMap(KeyMap newKeyMap, NotificationChain msgs) { - KeyMap oldKeyMap = keyMap; - keyMap = newKeyMap; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__KEY_MAP, oldKeyMap, newKeyMap); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setKeyMap(KeyMap newKeyMap) { - if (newKeyMap != keyMap) { - NotificationChain msgs = null; - if (keyMap != null) - msgs = ((InternalEObject)keyMap).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JsonPackage.JSON_READER__KEY_MAP, null, msgs); - if (newKeyMap != null) - msgs = ((InternalEObject)newKeyMap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JsonPackage.JSON_READER__KEY_MAP, null, msgs); - msgs = basicSetKeyMap(newKeyMap, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__KEY_MAP, newKeyMap, newKeyMap)); - } - - /** - * - * - * @generated - */ - public String getArrayElementName() { - return arrayElementName; - } - - /** - * - * - * @generated - */ - public void setArrayElementName(String newArrayElementName) { - String oldArrayElementName = arrayElementName; - arrayElementName = newArrayElementName; - boolean oldArrayElementNameESet = arrayElementNameESet; - arrayElementNameESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME, oldArrayElementName, arrayElementName, !oldArrayElementNameESet)); - } - - /** - * - * - * @generated - */ - public void unsetArrayElementName() { - String oldArrayElementName = arrayElementName; - boolean oldArrayElementNameESet = arrayElementNameESet; - arrayElementName = ARRAY_ELEMENT_NAME_EDEFAULT; - arrayElementNameESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME, oldArrayElementName, ARRAY_ELEMENT_NAME_EDEFAULT, oldArrayElementNameESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetArrayElementName() { - return arrayElementNameESet; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return encoding; - } - - /** - * - * - * @generated - */ - public void setEncoding(String newEncoding) { - String oldEncoding = encoding; - encoding = newEncoding; - boolean oldEncodingESet = encodingESet; - encodingESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__ENCODING, oldEncoding, encoding, !oldEncodingESet)); - } - - /** - * - * - * @generated - */ - public void unsetEncoding() { - String oldEncoding = encoding; - boolean oldEncodingESet = encodingESet; - encoding = ENCODING_EDEFAULT; - encodingESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JsonPackage.JSON_READER__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetEncoding() { - return encodingESet; - } - - /** - * - * - * @generated - */ - public String getIllegalElementNameCharReplacement() { - return illegalElementNameCharReplacement; - } - - /** - * - * - * @generated - */ - public void setIllegalElementNameCharReplacement(String newIllegalElementNameCharReplacement) { - String oldIllegalElementNameCharReplacement = illegalElementNameCharReplacement; - illegalElementNameCharReplacement = newIllegalElementNameCharReplacement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT, oldIllegalElementNameCharReplacement, illegalElementNameCharReplacement)); - } - - /** - * - * - * @generated - */ - public String getKeyPrefixOnNumeric() { - return keyPrefixOnNumeric; - } - - /** - * - * - * @generated - */ - public void setKeyPrefixOnNumeric(String newKeyPrefixOnNumeric) { - String oldKeyPrefixOnNumeric = keyPrefixOnNumeric; - keyPrefixOnNumeric = newKeyPrefixOnNumeric; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC, oldKeyPrefixOnNumeric, keyPrefixOnNumeric)); - } - - /** - * - * - * @generated - */ - public String getKeyWhitspaceReplacement() { - return keyWhitspaceReplacement; - } - - /** - * - * - * @generated - */ - public void setKeyWhitspaceReplacement(String newKeyWhitspaceReplacement) { - String oldKeyWhitspaceReplacement = keyWhitspaceReplacement; - keyWhitspaceReplacement = newKeyWhitspaceReplacement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT, oldKeyWhitspaceReplacement, keyWhitspaceReplacement)); - } - - /** - * - * - * @generated - */ - public String getNullValueReplacement() { - return nullValueReplacement; - } - - /** - * - * - * @generated - */ - public void setNullValueReplacement(String newNullValueReplacement) { - String oldNullValueReplacement = nullValueReplacement; - nullValueReplacement = newNullValueReplacement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT, oldNullValueReplacement, nullValueReplacement)); - } - - /** - * - * - * @generated - */ - public String getRootName() { - return rootName; - } - - /** - * - * - * @generated - */ - public void setRootName(String newRootName) { - String oldRootName = rootName; - rootName = newRootName; - boolean oldRootNameESet = rootNameESet; - rootNameESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.JSON_READER__ROOT_NAME, oldRootName, rootName, !oldRootNameESet)); - } - - /** - * - * - * @generated - */ - public void unsetRootName() { - String oldRootName = rootName; - boolean oldRootNameESet = rootNameESet; - rootName = ROOT_NAME_EDEFAULT; - rootNameESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JsonPackage.JSON_READER__ROOT_NAME, oldRootName, ROOT_NAME_EDEFAULT, oldRootNameESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetRootName() { - return rootNameESet; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JsonPackage.JSON_READER__KEY_MAP: - return basicSetKeyMap(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JsonPackage.JSON_READER__KEY_MAP: - return getKeyMap(); - case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME: - return getArrayElementName(); - case JsonPackage.JSON_READER__ENCODING: - return getEncoding(); - case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT: - return getIllegalElementNameCharReplacement(); - case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC: - return getKeyPrefixOnNumeric(); - case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT: - return getKeyWhitspaceReplacement(); - case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT: - return getNullValueReplacement(); - case JsonPackage.JSON_READER__ROOT_NAME: - return getRootName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JsonPackage.JSON_READER__KEY_MAP: - setKeyMap((KeyMap)newValue); - return; - case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME: - setArrayElementName((String)newValue); - return; - case JsonPackage.JSON_READER__ENCODING: - setEncoding((String)newValue); - return; - case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT: - setIllegalElementNameCharReplacement((String)newValue); - return; - case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC: - setKeyPrefixOnNumeric((String)newValue); - return; - case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT: - setKeyWhitspaceReplacement((String)newValue); - return; - case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT: - setNullValueReplacement((String)newValue); - return; - case JsonPackage.JSON_READER__ROOT_NAME: - setRootName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JsonPackage.JSON_READER__KEY_MAP: - setKeyMap((KeyMap)null); - return; - case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME: - unsetArrayElementName(); - return; - case JsonPackage.JSON_READER__ENCODING: - unsetEncoding(); - return; - case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT: - setIllegalElementNameCharReplacement(ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT); - return; - case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC: - setKeyPrefixOnNumeric(KEY_PREFIX_ON_NUMERIC_EDEFAULT); - return; - case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT: - setKeyWhitspaceReplacement(KEY_WHITSPACE_REPLACEMENT_EDEFAULT); - return; - case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT: - setNullValueReplacement(NULL_VALUE_REPLACEMENT_EDEFAULT); - return; - case JsonPackage.JSON_READER__ROOT_NAME: - unsetRootName(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JsonPackage.JSON_READER__KEY_MAP: - return keyMap != null; - case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME: - return isSetArrayElementName(); - case JsonPackage.JSON_READER__ENCODING: - return isSetEncoding(); - case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT: - return ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT == null ? illegalElementNameCharReplacement != null : !ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT.equals(illegalElementNameCharReplacement); - case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC: - return KEY_PREFIX_ON_NUMERIC_EDEFAULT == null ? keyPrefixOnNumeric != null : !KEY_PREFIX_ON_NUMERIC_EDEFAULT.equals(keyPrefixOnNumeric); - case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT: - return KEY_WHITSPACE_REPLACEMENT_EDEFAULT == null ? keyWhitspaceReplacement != null : !KEY_WHITSPACE_REPLACEMENT_EDEFAULT.equals(keyWhitspaceReplacement); - case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT: - return NULL_VALUE_REPLACEMENT_EDEFAULT == null ? nullValueReplacement != null : !NULL_VALUE_REPLACEMENT_EDEFAULT.equals(nullValueReplacement); - case JsonPackage.JSON_READER__ROOT_NAME: - return isSetRootName(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (arrayElementName: "); //$NON-NLS-1$ - if (arrayElementNameESet) result.append(arrayElementName); else result.append(""); //$NON-NLS-1$ - result.append(", encoding: "); //$NON-NLS-1$ - if (encodingESet) result.append(encoding); else result.append(""); //$NON-NLS-1$ - result.append(", illegalElementNameCharReplacement: "); //$NON-NLS-1$ - result.append(illegalElementNameCharReplacement); - result.append(", keyPrefixOnNumeric: "); //$NON-NLS-1$ - result.append(keyPrefixOnNumeric); - result.append(", keyWhitspaceReplacement: "); //$NON-NLS-1$ - result.append(keyWhitspaceReplacement); - result.append(", nullValueReplacement: "); //$NON-NLS-1$ - result.append(nullValueReplacement); - result.append(", rootName: "); //$NON-NLS-1$ - if (rootNameESet) result.append(rootName); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //JsonReaderImpl Index: src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java (working copy) @@ -1,135 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.impl; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.jboss.tools.smooks.model.json.JsonDocumentRoot; -import org.jboss.tools.smooks.model.json.JsonFactory; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.JsonReader; -import org.jboss.tools.smooks.model.json.Key; -import org.jboss.tools.smooks.model.json.KeyMap; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class JsonFactoryImpl extends EFactoryImpl implements JsonFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static JsonFactory init() { - try { - JsonFactory theJsonFactory = (JsonFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn.org/xsd/smooks/json-1.1.xsd"); //$NON-NLS-1$ - if (theJsonFactory != null) { - return theJsonFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new JsonFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public JsonFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JsonPackage.JSON_DOCUMENT_ROOT: return createJsonDocumentRoot(); - case JsonPackage.KEY: return createKey(); - case JsonPackage.KEY_MAP: return createKeyMap(); - case JsonPackage.JSON_READER: return createJsonReader(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * @generated - */ - public JsonDocumentRoot createJsonDocumentRoot() { - JsonDocumentRootImpl jsonDocumentRoot = new JsonDocumentRootImpl(); - return jsonDocumentRoot; - } - - /** - * - * - * @generated - */ - public Key createKey() { - KeyImpl key = new KeyImpl(); - return key; - } - - /** - * - * - * @generated - */ - public KeyMap createKeyMap() { - KeyMapImpl keyMap = new KeyMapImpl(); - return keyMap; - } - - /** - * - * - * @generated - */ - public JsonReader createJsonReader() { - JsonReaderImpl jsonReader = new JsonReaderImpl(); - return jsonReader; - } - - /** - * - * - * @generated - */ - public JsonPackage getJsonPackage() { - return (JsonPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static JsonPackage getPackage() { - return JsonPackage.eINSTANCE; - } - -} //JsonFactoryImpl Index: src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java (working copy) @@ -1,275 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.json.impl; - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.jboss.tools.smooks.model.json.JsonPackage; -import org.jboss.tools.smooks.model.json.Key; - -/** - * - * An implementation of the model object 'Key'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.json.impl.KeyImpl#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.KeyImpl#getFrom From}
  • - *
  • {@link org.jboss.tools.smooks.model.json.impl.KeyImpl#getTo To}
  • - *
- *

- * - * @generated - */ -public class KeyImpl extends EObjectImpl implements Key { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getFrom() From}' attribute. - * - * - * @see #getFrom() - * @generated - * @ordered - */ - protected static final String FROM_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFrom() From}' attribute. - * - * - * @see #getFrom() - * @generated - * @ordered - */ - protected String from = FROM_EDEFAULT; - - /** - * The default value of the '{@link #getTo() To}' attribute. - * - * - * @see #getTo() - * @generated - * @ordered - */ - protected static final String TO_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTo() To}' attribute. - * - * - * @see #getTo() - * @generated - * @ordered - */ - protected String to = TO_EDEFAULT; - - /** - * - * - * @generated - */ - protected KeyImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JsonPackage.Literals.KEY; - } - - /** - * - * - * @generated - */ - public String getValue() { - return value; - } - - /** - * - * - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.KEY__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - public String getFrom() { - return from; - } - - /** - * - * - * @generated - */ - public void setFrom(String newFrom) { - String oldFrom = from; - from = newFrom; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.KEY__FROM, oldFrom, from)); - } - - /** - * - * - * @generated - */ - public String getTo() { - return to; - } - - /** - * - * - * @generated - */ - public void setTo(String newTo) { - String oldTo = to; - to = newTo; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.KEY__TO, oldTo, to)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JsonPackage.KEY__VALUE: - return getValue(); - case JsonPackage.KEY__FROM: - return getFrom(); - case JsonPackage.KEY__TO: - return getTo(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JsonPackage.KEY__VALUE: - setValue((String)newValue); - return; - case JsonPackage.KEY__FROM: - setFrom((String)newValue); - return; - case JsonPackage.KEY__TO: - setTo((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JsonPackage.KEY__VALUE: - setValue(VALUE_EDEFAULT); - return; - case JsonPackage.KEY__FROM: - setFrom(FROM_EDEFAULT); - return; - case JsonPackage.KEY__TO: - setTo(TO_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JsonPackage.KEY__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case JsonPackage.KEY__FROM: - return FROM_EDEFAULT == null ? from != null : !FROM_EDEFAULT.equals(from); - case JsonPackage.KEY__TO: - return TO_EDEFAULT == null ? to != null : !TO_EDEFAULT.equals(to); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(", from: "); //$NON-NLS-1$ - result.append(from); - result.append(", to: "); //$NON-NLS-1$ - result.append(to); - result.append(')'); - return result.toString(); - } - -} //KeyImpl Index: src/org/jboss/tools/smooks/model/javabean/DecodeParamType.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/DecodeParamType.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/DecodeParamType.java (working copy) @@ -1,82 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - -import org.jboss.tools.smooks.model.common.AbstractAnyType; - -/** - * - * A representation of the model object 'Decode Param Type'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.DecodeParamType#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DecodeParamType#getName Name}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDecodeParamType() - * @model extendedMetaData="name='decodeParam_._type' kind='simple'" - * @generated - */ -public interface DecodeParamType extends AbstractAnyType { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value' attribute. - * @see #setValue(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDecodeParamType_Value() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="name=':0' kind='simple'" - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DecodeParamType#getValue Value}' attribute. - * - * - * @param value the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * - * The name of the parameter. - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDecodeParamType_Name() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='name'" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DecodeParamType#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // DecodeParamType Index: src/org/jboss/tools/smooks/model/javabean/BindingsType.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/BindingsType.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/BindingsType.java (working copy) @@ -1,310 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.util.FeatureMap; -import org.jboss.tools.smooks.model.smooks.ElementVisitor; - - -/** - * - * A representation of the model object 'Bindings Type'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getGroup Group}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getWiring Wiring}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getExpression Expression}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getBeanId Bean Id}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getClass_ Class}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElement Create On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElementNS Create On Element NS}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.BindingsType#isExtendLifecycle Extend Lifecycle}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType() - * @model extendedMetaData="name='bindings_._type' kind='elementOnly'" - * @generated - */ -public interface BindingsType extends ElementVisitor { - /** - * Returns the value of the 'Group' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * - *

- * If the meaning of the 'Group' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Group' attribute list. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_Group() - * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='group' name='group:2'" - * @generated - */ - FeatureMap getGroup(); - - /** - * Returns the value of the 'Value' containment reference list. - * The list contents are of type {@link org.jboss.tools.smooks.model.javabean.ValueType}. - * - * - * - * - * Basic "value" based binding configuration. - *

- * This binding type is used to bind data from the source message event stream. - * - * - * @return the value of the 'Value' containment reference list. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_Value() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='value' namespace='##targetNamespace' group='#group:2'" - * @generated - */ - EList getValue(); - - /** - * Returns the value of the 'Wiring' containment reference list. - * The list contents are of type {@link org.jboss.tools.smooks.model.javabean.WiringType}. - * - * - * - * - * Wiring based binding configuration. - *

- * This binding type is used to "wire" beans together. - * - * - * @return the value of the 'Wiring' containment reference list. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_Wiring() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='wiring' namespace='##targetNamespace' group='#group:2'" - * @generated - */ - EList getWiring(); - - /** - * Returns the value of the 'Expression' containment reference list. - * The list contents are of type {@link org.jboss.tools.smooks.model.javabean.ExpressionType}. - * - * - * - * Expression based Configuration - * - * @return the value of the 'Expression' containment reference list. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_Expression() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='expression' namespace='##targetNamespace' group='#group:2'" - * @generated - */ - EList getExpression(); - - /** - * Returns the value of the 'Bean Id' attribute. - * - * - * - * - * The ID under which the created bean is - * to be bound in the bean context. - * - * - * @return the value of the 'Bean Id' attribute. - * @see #setBeanId(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_BeanId() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='beanId'" - * @generated - */ - String getBeanId(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getBeanId Bean Id}' attribute. - * - * - * @param value the new value of the 'Bean Id' attribute. - * @see #getBeanId() - * @generated - */ - void setBeanId(String value); - - /** - * Returns the value of the 'Class' attribute. - * - * - * - * - * The fully qualified bean Class name. - * - * - * @return the value of the 'Class' attribute. - * @see #setClass(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_Class() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='class'" - * @generated - */ - String getClass_(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getClass_ Class}' attribute. - * - * - * @param value the new value of the 'Class' attribute. - * @see #getClass_() - * @generated - */ - void setClass(String value); - - /** - * Returns the value of the 'Create On Element' attribute. - * - * - * - * - * The Source data event stream element - * event to use to control the timing of - * the creating. - *

- * Think of this as the element path (in - * the Source data) used to control - * creation of the bean instance(s). - *

Example

- * If this attribute value is set to - * "order/orderItem", an instance of the - * class (specified in the "class" - * attribute) will be created when an - * element event for the element - * "orderItem" (with a parent element of - * "order") is encountered in the Source - * data event stream. The created bean - * instance will then be bound into the - * bean context under the specified - * "beanId". - *

- * If the createOnElement is not set then - * no bean will be created. The existing - * bean in the bean context will be used to - * do the value binding, expression binding - * and the object wiring on. - * - * - * @return the value of the 'Create On Element' attribute. - * @see #setCreateOnElement(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_CreateOnElement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='createOnElement'" - * @generated - */ - String getCreateOnElement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElement Create On Element}' attribute. - * - * - * @param value the new value of the 'Create On Element' attribute. - * @see #getCreateOnElement() - * @generated - */ - void setCreateOnElement(String value); - - /** - * Returns the value of the 'Create On Element NS' attribute. - * - * - * - * - * Namespace control for the - * "createOnElement" attribute. - * - * - * @return the value of the 'Create On Element NS' attribute. - * @see #setCreateOnElementNS(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_CreateOnElementNS() - * @model dataType="org.eclipse.emf.ecore.xml.type.AnyURI" - * extendedMetaData="kind='attribute' name='createOnElementNS'" - * @generated - */ - String getCreateOnElementNS(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElementNS Create On Element NS}' attribute. - * - * - * @param value the new value of the 'Create On Element NS' attribute. - * @see #getCreateOnElementNS() - * @generated - */ - void setCreateOnElementNS(String value); - - /** - * Returns the value of the 'Extend Lifecycle' attribute. - * - * - * - * - * Defines if this bindings bean wiring may still wire - * beans after the element is processed. This enables - * flat XML support. - * The default value can be set with the global-parameter 'bean-population.default.extend.lifecycle'. - * Default the value is 'false'. - * - * - * @return the value of the 'Extend Lifecycle' attribute. - * @see #isSetExtendLifecycle() - * @see #unsetExtendLifecycle() - * @see #setExtendLifecycle(boolean) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getBindingsType_ExtendLifecycle() - * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" - * extendedMetaData="kind='attribute' name='extendLifecycle'" - * @generated - */ - boolean isExtendLifecycle(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#isExtendLifecycle Extend Lifecycle}' attribute. - * - * - * @param value the new value of the 'Extend Lifecycle' attribute. - * @see #isSetExtendLifecycle() - * @see #unsetExtendLifecycle() - * @see #isExtendLifecycle() - * @generated - */ - void setExtendLifecycle(boolean value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#isExtendLifecycle Extend Lifecycle}' attribute. - * - * - * @see #isSetExtendLifecycle() - * @see #isExtendLifecycle() - * @see #setExtendLifecycle(boolean) - * @generated - */ - void unsetExtendLifecycle(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.javabean.BindingsType#isExtendLifecycle Extend Lifecycle}' attribute is set. - * - * - * @return whether the value of the 'Extend Lifecycle' attribute is set. - * @see #unsetExtendLifecycle() - * @see #isExtendLifecycle() - * @see #setExtendLifecycle(boolean) - * @generated - */ - boolean isSetExtendLifecycle(); - -} // BindingsType Index: src/org/jboss/tools/smooks/model/javabean/DocumentRoot.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/DocumentRoot.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/DocumentRoot.java (working copy) @@ -1,262 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.util.FeatureMap; - -/** - * - * A representation of the model object 'Document Root'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getBindings Bindings}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getDecodeParam Decode Param}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getExpression Expression}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getWiring Wiring}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot() - * @model extendedMetaData="name='' kind='mixed'" - * @generated - */ -public interface DocumentRoot extends EObject { - /** - * Returns the value of the 'Mixed' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * - *

- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Mixed' attribute list. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_Mixed() - * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='elementWildcard' name=':mixed'" - * @generated - */ - FeatureMap getMixed(); - - /** - * Returns the value of the 'XMLNS Prefix Map' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XMLNS Prefix Map' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XMLNS Prefix Map' map. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_XMLNSPrefixMap() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xmlns:prefix'" - * @generated - */ - EMap getXMLNSPrefixMap(); - - /** - * Returns the value of the 'XSI Schema Location' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XSI Schema Location' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XSI Schema Location' map. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_XSISchemaLocation() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" - * @generated - */ - EMap getXSISchemaLocation(); - - /** - * Returns the value of the 'Bindings' containment reference. - * - * - * - * - * Javabean Bindings Configuration. - *

Bean Instance Creation

- * Instances of the class specified in the - * "class" attribute are created and bound into - * the bean context under the ID specified by - * the "beanId" attribute. The bean instance is - * created (and bound) when the element event - * specified in the "createOnElement" attribute - * is encountered in the Source data event - * stream (see also "createOnElementNS"). - *

Bean Property/Member Population

- * Bean property/member population is - * controlled by the binding sub-elements - * nested inside this element. Use your IDE to - * discover these elements. - * - * - * @return the value of the 'Bindings' containment reference. - * @see #setBindings(BindingsType) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_Bindings() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='bindings' namespace='##targetNamespace' affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config'" - * @generated - */ - BindingsType getBindings(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getBindings Bindings}' containment reference. - * - * - * @param value the new value of the 'Bindings' containment reference. - * @see #getBindings() - * @generated - */ - void setBindings(BindingsType value); - - /** - * Returns the value of the 'Decode Param' containment reference. - * - * - * - * - * Data Decode Parameter. - *

- * Some decoders may require parameters in order to complete the decoding process e.g. the - * DateDecoder. - * These parameters can be specified by adding <decodeParam> sub-elements to the <value> - * binding element. Review the Decoder's Javadoc for details of the custom parameters. - *

- * Example: - *

-	 * <jb:value property="date" data="header/date" decoder="Date">
-	 *     <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
-	 *     <jb:decodeParam name="locale-language">en</jb:decodeParam>
-	 *     <jb:decodeParam name="locale-country">IE</jb:decodeParam>
-	 * </jb:value>
-	 * 
- * - * - * @return the value of the 'Decode Param' containment reference. - * @see #setDecodeParam(DecodeParamType) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_DecodeParam() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='decodeParam' namespace='##targetNamespace'" - * @generated - */ - DecodeParamType getDecodeParam(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getDecodeParam Decode Param}' containment reference. - * - * - * @param value the new value of the 'Decode Param' containment reference. - * @see #getDecodeParam() - * @generated - */ - void setDecodeParam(DecodeParamType value); - - /** - * Returns the value of the 'Expression' containment reference. - * - * - * - * Expression based Configuration - * - * @return the value of the 'Expression' containment reference. - * @see #setExpression(ExpressionType) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_Expression() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='expression' namespace='##targetNamespace'" - * @generated - */ - ExpressionType getExpression(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getExpression Expression}' containment reference. - * - * - * @param value the new value of the 'Expression' containment reference. - * @see #getExpression() - * @generated - */ - void setExpression(ExpressionType value); - - /** - * Returns the value of the 'Value' containment reference. - * - * - * - * - * Basic "value" based binding configuration. - *

- * This binding type is used to bind data from the source message event stream. - * - * - * @return the value of the 'Value' containment reference. - * @see #setValue(ValueType) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_Value() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='value' namespace='##targetNamespace'" - * @generated - */ - ValueType getValue(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getValue Value}' containment reference. - * - * - * @param value the new value of the 'Value' containment reference. - * @see #getValue() - * @generated - */ - void setValue(ValueType value); - - /** - * Returns the value of the 'Wiring' containment reference. - * - * - * - * - * Wiring based binding configuration. - *

- * This binding type is used to "wire" beans together. - * - * - * @return the value of the 'Wiring' containment reference. - * @see #setWiring(WiringType) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getDocumentRoot_Wiring() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='wiring' namespace='##targetNamespace'" - * @generated - */ - WiringType getWiring(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getWiring Wiring}' containment reference. - * - * - * @param value the new value of the 'Wiring' containment reference. - * @see #getWiring() - * @generated - */ - void setWiring(WiringType value); - -} // DocumentRoot Index: src/org/jboss/tools/smooks/model/javabean/JavabeanPackage.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/JavabeanPackage.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/JavabeanPackage.java (working copy) @@ -1,1489 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.jboss.tools.smooks.model.common.CommonPackage; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; - - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *

    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * Smooks Java Binding Configuration - * - * @see org.jboss.tools.smooks.model.javabean.JavabeanFactory - * @model kind="package" - * @generated - */ -public interface JavabeanPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "javabean"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "jb"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - JavabeanPackage eINSTANCE = org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl.init(); - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl Bindings Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getBindingsType() - * @generated - */ - int BINDINGS_TYPE = 0; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__MIXED = SmooksPackage.ELEMENT_VISITOR__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__ANY = SmooksPackage.ELEMENT_VISITOR__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__ANY_ATTRIBUTE = SmooksPackage.ELEMENT_VISITOR__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Condition' containment reference. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__CONDITION = SmooksPackage.ELEMENT_VISITOR__CONDITION; - - /** - * The feature id for the 'Target Profile' attribute. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE; - - /** - * The feature id for the 'Group' attribute list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__GROUP = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Value' containment reference list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__VALUE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Wiring' containment reference list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__WIRING = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Expression' containment reference list. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__EXPRESSION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Bean Id' attribute. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__BEAN_ID = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Class' attribute. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__CLASS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5; - - /** - * The feature id for the 'Create On Element' attribute. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__CREATE_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6; - - /** - * The feature id for the 'Create On Element NS' attribute. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__CREATE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 7; - - /** - * The feature id for the 'Extend Lifecycle' attribute. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE__EXTEND_LIFECYCLE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 8; - - /** - * The number of structural features of the 'Bindings Type' class. - * - * - * @generated - * @ordered - */ - int BINDINGS_TYPE_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 9; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.javabean.impl.DecodeParamTypeImpl Decode Param Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.DecodeParamTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getDecodeParamType() - * @generated - */ - int DECODE_PARAM_TYPE = 1; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int DECODE_PARAM_TYPE__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int DECODE_PARAM_TYPE__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int DECODE_PARAM_TYPE__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Value' attribute. - * - * - * @generated - * @ordered - */ - int DECODE_PARAM_TYPE__VALUE = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int DECODE_PARAM_TYPE__NAME = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Decode Param Type' class. - * - * - * @generated - * @ordered - */ - int DECODE_PARAM_TYPE_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getDocumentRoot() - * @generated - */ - int DOCUMENT_ROOT = 2; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__MIXED = 0; - - /** - * The feature id for the 'XMLNS Prefix Map' map. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; - - /** - * The feature id for the 'XSI Schema Location' map. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; - - /** - * The feature id for the 'Bindings' containment reference. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__BINDINGS = 3; - - /** - * The feature id for the 'Decode Param' containment reference. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__DECODE_PARAM = 4; - - /** - * The feature id for the 'Expression' containment reference. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__EXPRESSION = 5; - - /** - * The feature id for the 'Value' containment reference. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__VALUE = 6; - - /** - * The feature id for the 'Wiring' containment reference. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT__WIRING = 7; - - /** - * The number of structural features of the 'Document Root' class. - * - * - * @generated - * @ordered - */ - int DOCUMENT_ROOT_FEATURE_COUNT = 8; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl Expression Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getExpressionType() - * @generated - */ - int EXPRESSION_TYPE = 3; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Value' attribute. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__VALUE = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Exec On Element' attribute. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__EXEC_ON_ELEMENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Exec On Element NS' attribute. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Property' attribute. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__PROPERTY = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Setter Method' attribute. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE__SETTER_METHOD = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Expression Type' class. - * - * - * @generated - * @ordered - */ - int EXPRESSION_TYPE_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 5; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl Value Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getValueType() - * @generated - */ - int VALUE_TYPE = 4; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Decode Param' containment reference list. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__DECODE_PARAM = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Data' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__DATA = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Data NS' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__DATA_NS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Decoder' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__DECODER = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Default' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__DEFAULT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Property' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__PROPERTY = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 5; - - /** - * The feature id for the 'Setter Method' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE__SETTER_METHOD = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 6; - - /** - * The number of structural features of the 'Value Type' class. - * - * - * @generated - * @ordered - */ - int VALUE_TYPE_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 7; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl Wiring Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getWiringType() - * @generated - */ - int WIRING_TYPE = 5; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Bean Id Ref' attribute. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__BEAN_ID_REF = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Property' attribute. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__PROPERTY = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Setter Method' attribute. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__SETTER_METHOD = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Wire On Element' attribute. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__WIRE_ON_ELEMENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Wire On Element NS' attribute. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE__WIRE_ON_ELEMENT_NS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Wiring Type' class. - * - * - * @generated - * @ordered - */ - int WIRING_TYPE_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 5; - - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.javabean.BindingsType Bindings Type}'. - * - * - * @return the meta object for class 'Bindings Type'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType - * @generated - */ - EClass getBindingsType(); - - /** - * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getGroup Group}'. - * - * - * @return the meta object for the attribute list 'Group'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getGroup() - * @see #getBindingsType() - * @generated - */ - EAttribute getBindingsType_Group(); - - /** - * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getValue Value}'. - * - * - * @return the meta object for the containment reference list 'Value'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getValue() - * @see #getBindingsType() - * @generated - */ - EReference getBindingsType_Value(); - - /** - * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getWiring Wiring}'. - * - * - * @return the meta object for the containment reference list 'Wiring'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getWiring() - * @see #getBindingsType() - * @generated - */ - EReference getBindingsType_Wiring(); - - /** - * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getExpression Expression}'. - * - * - * @return the meta object for the containment reference list 'Expression'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getExpression() - * @see #getBindingsType() - * @generated - */ - EReference getBindingsType_Expression(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getBeanId Bean Id}'. - * - * - * @return the meta object for the attribute 'Bean Id'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getBeanId() - * @see #getBindingsType() - * @generated - */ - EAttribute getBindingsType_BeanId(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getClass_ Class}'. - * - * - * @return the meta object for the attribute 'Class'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getClass_() - * @see #getBindingsType() - * @generated - */ - EAttribute getBindingsType_Class(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElement Create On Element}'. - * - * - * @return the meta object for the attribute 'Create On Element'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElement() - * @see #getBindingsType() - * @generated - */ - EAttribute getBindingsType_CreateOnElement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElementNS Create On Element NS}'. - * - * - * @return the meta object for the attribute 'Create On Element NS'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#getCreateOnElementNS() - * @see #getBindingsType() - * @generated - */ - EAttribute getBindingsType_CreateOnElementNS(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.BindingsType#isExtendLifecycle Extend Lifecycle}'. - * - * - * @return the meta object for the attribute 'Extend Lifecycle'. - * @see org.jboss.tools.smooks.model.javabean.BindingsType#isExtendLifecycle() - * @see #getBindingsType() - * @generated - */ - EAttribute getBindingsType_ExtendLifecycle(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.javabean.DecodeParamType Decode Param Type}'. - * - * - * @return the meta object for class 'Decode Param Type'. - * @see org.jboss.tools.smooks.model.javabean.DecodeParamType - * @generated - */ - EClass getDecodeParamType(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.DecodeParamType#getValue Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see org.jboss.tools.smooks.model.javabean.DecodeParamType#getValue() - * @see #getDecodeParamType() - * @generated - */ - EAttribute getDecodeParamType_Value(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.DecodeParamType#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.jboss.tools.smooks.model.javabean.DecodeParamType#getName() - * @see #getDecodeParamType() - * @generated - */ - EAttribute getDecodeParamType_Name(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot Document Root}'. - * - * - * @return the meta object for class 'Document Root'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot - * @generated - */ - EClass getDocumentRoot(); - - /** - * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getMixed Mixed}'. - * - * - * @return the meta object for the attribute list 'Mixed'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getMixed() - * @see #getDocumentRoot() - * @generated - */ - EAttribute getDocumentRoot_Mixed(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}'. - * - * - * @return the meta object for the map 'XMLNS Prefix Map'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getXMLNSPrefixMap() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_XMLNSPrefixMap(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getXSISchemaLocation XSI Schema Location}'. - * - * - * @return the meta object for the map 'XSI Schema Location'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getXSISchemaLocation() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_XSISchemaLocation(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getBindings Bindings}'. - * - * - * @return the meta object for the containment reference 'Bindings'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getBindings() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_Bindings(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getDecodeParam Decode Param}'. - * - * - * @return the meta object for the containment reference 'Decode Param'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getDecodeParam() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_DecodeParam(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getExpression Expression}'. - * - * - * @return the meta object for the containment reference 'Expression'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getExpression() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_Expression(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getValue Value}'. - * - * - * @return the meta object for the containment reference 'Value'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getValue() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_Value(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot#getWiring Wiring}'. - * - * - * @return the meta object for the containment reference 'Wiring'. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot#getWiring() - * @see #getDocumentRoot() - * @generated - */ - EReference getDocumentRoot_Wiring(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.javabean.ExpressionType Expression Type}'. - * - * - * @return the meta object for class 'Expression Type'. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType - * @generated - */ - EClass getExpressionType(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getValue Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType#getValue() - * @see #getExpressionType() - * @generated - */ - EAttribute getExpressionType_Value(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElement Exec On Element}'. - * - * - * @return the meta object for the attribute 'Exec On Element'. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElement() - * @see #getExpressionType() - * @generated - */ - EAttribute getExpressionType_ExecOnElement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElementNS Exec On Element NS}'. - * - * - * @return the meta object for the attribute 'Exec On Element NS'. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElementNS() - * @see #getExpressionType() - * @generated - */ - EAttribute getExpressionType_ExecOnElementNS(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getProperty Property}'. - * - * - * @return the meta object for the attribute 'Property'. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType#getProperty() - * @see #getExpressionType() - * @generated - */ - EAttribute getExpressionType_Property(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getSetterMethod Setter Method}'. - * - * - * @return the meta object for the attribute 'Setter Method'. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType#getSetterMethod() - * @see #getExpressionType() - * @generated - */ - EAttribute getExpressionType_SetterMethod(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.javabean.ValueType Value Type}'. - * - * - * @return the meta object for class 'Value Type'. - * @see org.jboss.tools.smooks.model.javabean.ValueType - * @generated - */ - EClass getValueType(); - - /** - * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDecodeParam Decode Param}'. - * - * - * @return the meta object for the containment reference list 'Decode Param'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getDecodeParam() - * @see #getValueType() - * @generated - */ - EReference getValueType_DecodeParam(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ValueType#getData Data}'. - * - * - * @return the meta object for the attribute 'Data'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getData() - * @see #getValueType() - * @generated - */ - EAttribute getValueType_Data(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDataNS Data NS}'. - * - * - * @return the meta object for the attribute 'Data NS'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getDataNS() - * @see #getValueType() - * @generated - */ - EAttribute getValueType_DataNS(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDecoder Decoder}'. - * - * - * @return the meta object for the attribute 'Decoder'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getDecoder() - * @see #getValueType() - * @generated - */ - EAttribute getValueType_Decoder(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDefault Default}'. - * - * - * @return the meta object for the attribute 'Default'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getDefault() - * @see #getValueType() - * @generated - */ - EAttribute getValueType_Default(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ValueType#getProperty Property}'. - * - * - * @return the meta object for the attribute 'Property'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getProperty() - * @see #getValueType() - * @generated - */ - EAttribute getValueType_Property(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.ValueType#getSetterMethod Setter Method}'. - * - * - * @return the meta object for the attribute 'Setter Method'. - * @see org.jboss.tools.smooks.model.javabean.ValueType#getSetterMethod() - * @see #getValueType() - * @generated - */ - EAttribute getValueType_SetterMethod(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.javabean.WiringType Wiring Type}'. - * - * - * @return the meta object for class 'Wiring Type'. - * @see org.jboss.tools.smooks.model.javabean.WiringType - * @generated - */ - EClass getWiringType(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.WiringType#getBeanIdRef Bean Id Ref}'. - * - * - * @return the meta object for the attribute 'Bean Id Ref'. - * @see org.jboss.tools.smooks.model.javabean.WiringType#getBeanIdRef() - * @see #getWiringType() - * @generated - */ - EAttribute getWiringType_BeanIdRef(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.WiringType#getProperty Property}'. - * - * - * @return the meta object for the attribute 'Property'. - * @see org.jboss.tools.smooks.model.javabean.WiringType#getProperty() - * @see #getWiringType() - * @generated - */ - EAttribute getWiringType_Property(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.WiringType#getSetterMethod Setter Method}'. - * - * - * @return the meta object for the attribute 'Setter Method'. - * @see org.jboss.tools.smooks.model.javabean.WiringType#getSetterMethod() - * @see #getWiringType() - * @generated - */ - EAttribute getWiringType_SetterMethod(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElement Wire On Element}'. - * - * - * @return the meta object for the attribute 'Wire On Element'. - * @see org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElement() - * @see #getWiringType() - * @generated - */ - EAttribute getWiringType_WireOnElement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElementNS Wire On Element NS}'. - * - * - * @return the meta object for the attribute 'Wire On Element NS'. - * @see org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElementNS() - * @see #getWiringType() - * @generated - */ - EAttribute getWiringType_WireOnElementNS(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - JavabeanFactory getJavabeanFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl Bindings Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getBindingsType() - * @generated - */ - EClass BINDINGS_TYPE = eINSTANCE.getBindingsType(); - - /** - * The meta object literal for the 'Group' attribute list feature. - * - * - * @generated - */ - EAttribute BINDINGS_TYPE__GROUP = eINSTANCE.getBindingsType_Group(); - - /** - * The meta object literal for the 'Value' containment reference list feature. - * - * - * @generated - */ - EReference BINDINGS_TYPE__VALUE = eINSTANCE.getBindingsType_Value(); - - /** - * The meta object literal for the 'Wiring' containment reference list feature. - * - * - * @generated - */ - EReference BINDINGS_TYPE__WIRING = eINSTANCE.getBindingsType_Wiring(); - - /** - * The meta object literal for the 'Expression' containment reference list feature. - * - * - * @generated - */ - EReference BINDINGS_TYPE__EXPRESSION = eINSTANCE.getBindingsType_Expression(); - - /** - * The meta object literal for the 'Bean Id' attribute feature. - * - * - * @generated - */ - EAttribute BINDINGS_TYPE__BEAN_ID = eINSTANCE.getBindingsType_BeanId(); - - /** - * The meta object literal for the 'Class' attribute feature. - * - * - * @generated - */ - EAttribute BINDINGS_TYPE__CLASS = eINSTANCE.getBindingsType_Class(); - - /** - * The meta object literal for the 'Create On Element' attribute feature. - * - * - * @generated - */ - EAttribute BINDINGS_TYPE__CREATE_ON_ELEMENT = eINSTANCE.getBindingsType_CreateOnElement(); - - /** - * The meta object literal for the 'Create On Element NS' attribute feature. - * - * - * @generated - */ - EAttribute BINDINGS_TYPE__CREATE_ON_ELEMENT_NS = eINSTANCE.getBindingsType_CreateOnElementNS(); - - /** - * The meta object literal for the 'Extend Lifecycle' attribute feature. - * - * - * @generated - */ - EAttribute BINDINGS_TYPE__EXTEND_LIFECYCLE = eINSTANCE.getBindingsType_ExtendLifecycle(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.javabean.impl.DecodeParamTypeImpl Decode Param Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.DecodeParamTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getDecodeParamType() - * @generated - */ - EClass DECODE_PARAM_TYPE = eINSTANCE.getDecodeParamType(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * @generated - */ - EAttribute DECODE_PARAM_TYPE__VALUE = eINSTANCE.getDecodeParamType_Value(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute DECODE_PARAM_TYPE__NAME = eINSTANCE.getDecodeParamType_Name(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getDocumentRoot() - * @generated - */ - EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot(); - - /** - * The meta object literal for the 'Mixed' attribute list feature. - * - * - * @generated - */ - EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed(); - - /** - * The meta object literal for the 'XMLNS Prefix Map' map feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap(); - - /** - * The meta object literal for the 'XSI Schema Location' map feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation(); - - /** - * The meta object literal for the 'Bindings' containment reference feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__BINDINGS = eINSTANCE.getDocumentRoot_Bindings(); - - /** - * The meta object literal for the 'Decode Param' containment reference feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__DECODE_PARAM = eINSTANCE.getDocumentRoot_DecodeParam(); - - /** - * The meta object literal for the 'Expression' containment reference feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__EXPRESSION = eINSTANCE.getDocumentRoot_Expression(); - - /** - * The meta object literal for the 'Value' containment reference feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__VALUE = eINSTANCE.getDocumentRoot_Value(); - - /** - * The meta object literal for the 'Wiring' containment reference feature. - * - * - * @generated - */ - EReference DOCUMENT_ROOT__WIRING = eINSTANCE.getDocumentRoot_Wiring(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl Expression Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getExpressionType() - * @generated - */ - EClass EXPRESSION_TYPE = eINSTANCE.getExpressionType(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * @generated - */ - EAttribute EXPRESSION_TYPE__VALUE = eINSTANCE.getExpressionType_Value(); - - /** - * The meta object literal for the 'Exec On Element' attribute feature. - * - * - * @generated - */ - EAttribute EXPRESSION_TYPE__EXEC_ON_ELEMENT = eINSTANCE.getExpressionType_ExecOnElement(); - - /** - * The meta object literal for the 'Exec On Element NS' attribute feature. - * - * - * @generated - */ - EAttribute EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS = eINSTANCE.getExpressionType_ExecOnElementNS(); - - /** - * The meta object literal for the 'Property' attribute feature. - * - * - * @generated - */ - EAttribute EXPRESSION_TYPE__PROPERTY = eINSTANCE.getExpressionType_Property(); - - /** - * The meta object literal for the 'Setter Method' attribute feature. - * - * - * @generated - */ - EAttribute EXPRESSION_TYPE__SETTER_METHOD = eINSTANCE.getExpressionType_SetterMethod(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl Value Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getValueType() - * @generated - */ - EClass VALUE_TYPE = eINSTANCE.getValueType(); - - /** - * The meta object literal for the 'Decode Param' containment reference list feature. - * - * - * @generated - */ - EReference VALUE_TYPE__DECODE_PARAM = eINSTANCE.getValueType_DecodeParam(); - - /** - * The meta object literal for the 'Data' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_TYPE__DATA = eINSTANCE.getValueType_Data(); - - /** - * The meta object literal for the 'Data NS' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_TYPE__DATA_NS = eINSTANCE.getValueType_DataNS(); - - /** - * The meta object literal for the 'Decoder' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_TYPE__DECODER = eINSTANCE.getValueType_Decoder(); - - /** - * The meta object literal for the 'Default' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_TYPE__DEFAULT = eINSTANCE.getValueType_Default(); - - /** - * The meta object literal for the 'Property' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_TYPE__PROPERTY = eINSTANCE.getValueType_Property(); - - /** - * The meta object literal for the 'Setter Method' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_TYPE__SETTER_METHOD = eINSTANCE.getValueType_SetterMethod(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl Wiring Type}' class. - * - * - * @see org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl - * @see org.jboss.tools.smooks.model.javabean.impl.JavabeanPackageImpl#getWiringType() - * @generated - */ - EClass WIRING_TYPE = eINSTANCE.getWiringType(); - - /** - * The meta object literal for the 'Bean Id Ref' attribute feature. - * - * - * @generated - */ - EAttribute WIRING_TYPE__BEAN_ID_REF = eINSTANCE.getWiringType_BeanIdRef(); - - /** - * The meta object literal for the 'Property' attribute feature. - * - * - * @generated - */ - EAttribute WIRING_TYPE__PROPERTY = eINSTANCE.getWiringType_Property(); - - /** - * The meta object literal for the 'Setter Method' attribute feature. - * - * - * @generated - */ - EAttribute WIRING_TYPE__SETTER_METHOD = eINSTANCE.getWiringType_SetterMethod(); - - /** - * The meta object literal for the 'Wire On Element' attribute feature. - * - * - * @generated - */ - EAttribute WIRING_TYPE__WIRE_ON_ELEMENT = eINSTANCE.getWiringType_WireOnElement(); - - /** - * The meta object literal for the 'Wire On Element NS' attribute feature. - * - * - * @generated - */ - EAttribute WIRING_TYPE__WIRE_ON_ELEMENT_NS = eINSTANCE.getWiringType_WireOnElementNS(); - - } - -} //JavabeanPackage Index: src/org/jboss/tools/smooks/model/javabean/WiringType.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/WiringType.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/WiringType.java (working copy) @@ -1,191 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - -import org.jboss.tools.smooks.model.common.AbstractAnyType; - -/** - * - * A representation of the model object 'Wiring Type'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.WiringType#getBeanIdRef Bean Id Ref}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.WiringType#getProperty Property}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.WiringType#getSetterMethod Setter Method}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElement Wire On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElementNS Wire On Element NS}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getWiringType() - * @model extendedMetaData="name='wiring_._type' kind='empty'" - * @generated - */ -public interface WiringType extends AbstractAnyType { - /** - * Returns the value of the 'Bean Id Ref' attribute. - * - * - * - * - * The beanId of the bean to be wired into the - * specified bean "property" (or List). - * - * - * @return the value of the 'Bean Id Ref' attribute. - * @see #setBeanIdRef(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getWiringType_BeanIdRef() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='beanIdRef'" - * @generated - */ - String getBeanIdRef(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.WiringType#getBeanIdRef Bean Id Ref}' attribute. - * - * - * @param value the new value of the 'Bean Id Ref' attribute. - * @see #getBeanIdRef() - * @generated - */ - void setBeanIdRef(String value); - - /** - * Returns the value of the 'Property' attribute. - * - * - * - * - * The class property to which the bean (specified - * by "beanIdRef") is to be bound. - *

- * The property attribute does not need to be - * specified when the "class" type on the parent - * "bindings" element is a List/Array or Map. In - * the case of a List/Array, the bean is simply - * added. In the case of Map, the element name - * (from the element specified in the "data" - * attribute) is used. - * - * - * @return the value of the 'Property' attribute. - * @see #setProperty(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getWiringType_Property() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='property'" - * @generated - */ - String getProperty(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.WiringType#getProperty Property}' attribute. - * - * - * @param value the new value of the 'Property' attribute. - * @see #getProperty() - * @generated - */ - void setProperty(String value); - - /** - * Returns the value of the 'Setter Method' attribute. - * - * - * - * - * The class method which is called to bind the data - * to the object. Not needed when binding to a Collection. - *

- * The setterMethod attribute does not need to be specified when the "class" type on the parent "bindings" element - * is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the - * element name (from the element specified in the "data" attribute) is used. - * - * - * @return the value of the 'Setter Method' attribute. - * @see #setSetterMethod(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getWiringType_SetterMethod() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='setterMethod'" - * @generated - */ - String getSetterMethod(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.WiringType#getSetterMethod Setter Method}' attribute. - * - * - * @param value the new value of the 'Setter Method' attribute. - * @see #getSetterMethod() - * @generated - */ - void setSetterMethod(String value); - - /** - * Returns the value of the 'Wire On Element' attribute. - * - * - * - * - * The Source data event stream element event to - * use to control when the bean needs to be wired - * or when the cartridge needs to register a - * listener for the bean to be wired. - * - * - * @return the value of the 'Wire On Element' attribute. - * @see #setWireOnElement(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getWiringType_WireOnElement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='wireOnElement'" - * @generated - */ - String getWireOnElement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElement Wire On Element}' attribute. - * - * - * @param value the new value of the 'Wire On Element' attribute. - * @see #getWireOnElement() - * @generated - */ - void setWireOnElement(String value); - - /** - * Returns the value of the 'Wire On Element NS' attribute. - * - * - * - * - * Namespace control for the "wireOnElement" - * attribute. - * - * - * @return the value of the 'Wire On Element NS' attribute. - * @see #setWireOnElementNS(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getWiringType_WireOnElementNS() - * @model dataType="org.eclipse.emf.ecore.xml.type.AnyURI" - * extendedMetaData="kind='attribute' name='wireOnElementNS'" - * @generated - */ - String getWireOnElementNS(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.WiringType#getWireOnElementNS Wire On Element NS}' attribute. - * - * - * @param value the new value of the 'Wire On Element NS' attribute. - * @see #getWireOnElementNS() - * @generated - */ - void setWireOnElementNS(String value); - -} // WiringType Index: src/org/jboss/tools/smooks/model/javabean/util/JavabeanXMLProcessor.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/util/JavabeanXMLProcessor.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/util/JavabeanXMLProcessor.java (working copy) @@ -1,54 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.util; - -import java.util.Map; - - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class JavabeanXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public JavabeanXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - JavabeanPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the JavabeanResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new JavabeanResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new JavabeanResourceFactoryImpl()); - } - return registrations; - } - -} //JavabeanXMLProcessor Index: src/org/jboss/tools/smooks/model/javabean/util/JavabeanResourceImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/util/JavabeanResourceImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/util/JavabeanResourceImpl.java (working copy) @@ -1,32 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.jboss.tools.smooks.model.javabean.util.JavabeanResourceFactoryImpl - * @generated - */ -public class JavabeanResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public JavabeanResourceImpl(URI uri) { - super(uri); - } - -} //JavabeanResourceImpl Index: src/org/jboss/tools/smooks/model/javabean/util/JavabeanSwitch.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/util/JavabeanSwitch.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/util/JavabeanSwitch.java (working copy) @@ -1,314 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.util; - - -import java.util.List; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.javabean.*; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; -import org.jboss.tools.smooks.model.smooks.ElementVisitor; - - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage - * @generated - */ -public class JavabeanSwitch { - /** - * The cached model package - * - * - * @generated - */ - protected static JavabeanPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public JavabeanSwitch() { - if (modelPackage == null) { - modelPackage = JavabeanPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case JavabeanPackage.BINDINGS_TYPE: { - BindingsType bindingsType = (BindingsType)theEObject; - T result = caseBindingsType(bindingsType); - if (result == null) result = caseElementVisitor(bindingsType); - if (result == null) result = caseAbstractResourceConfig(bindingsType); - if (result == null) result = caseAbstractAnyType(bindingsType); - if (result == null) result = caseAnyType(bindingsType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JavabeanPackage.DECODE_PARAM_TYPE: { - DecodeParamType decodeParamType = (DecodeParamType)theEObject; - T result = caseDecodeParamType(decodeParamType); - if (result == null) result = caseAbstractAnyType(decodeParamType); - if (result == null) result = caseAnyType(decodeParamType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JavabeanPackage.DOCUMENT_ROOT: { - DocumentRoot documentRoot = (DocumentRoot)theEObject; - T result = caseDocumentRoot(documentRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JavabeanPackage.EXPRESSION_TYPE: { - ExpressionType expressionType = (ExpressionType)theEObject; - T result = caseExpressionType(expressionType); - if (result == null) result = caseAbstractAnyType(expressionType); - if (result == null) result = caseAnyType(expressionType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JavabeanPackage.VALUE_TYPE: { - ValueType valueType = (ValueType)theEObject; - T result = caseValueType(valueType); - if (result == null) result = caseAbstractAnyType(valueType); - if (result == null) result = caseAnyType(valueType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JavabeanPackage.WIRING_TYPE: { - WiringType wiringType = (WiringType)theEObject; - T result = caseWiringType(wiringType); - if (result == null) result = caseAbstractAnyType(wiringType); - if (result == null) result = caseAnyType(wiringType); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Bindings Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Bindings Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseBindingsType(BindingsType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Decode Param Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Decode Param Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDecodeParamType(DecodeParamType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Document Root'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Document Root'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDocumentRoot(DocumentRoot object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Expression Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Expression Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseExpressionType(ExpressionType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Value Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Value Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseValueType(ValueType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Wiring Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Wiring Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseWiringType(WiringType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAnyType(AnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAnyType(AbstractAnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Resource Config'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Resource Config'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractResourceConfig(AbstractResourceConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Element Visitor'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Element Visitor'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseElementVisitor(ElementVisitor object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} //JavabeanSwitch Index: src/org/jboss/tools/smooks/model/javabean/util/JavabeanAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/util/JavabeanAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/util/JavabeanAdapterFactory.java (working copy) @@ -1,293 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.util; - - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; - -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.javabean.*; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; -import org.jboss.tools.smooks.model.smooks.ElementVisitor; - - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage - * @generated - */ -public class JavabeanAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static JavabeanPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public JavabeanAdapterFactory() { - if (modelPackage == null) { - modelPackage = JavabeanPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected JavabeanSwitch modelSwitch = - new JavabeanSwitch() { - @Override - public Adapter caseBindingsType(BindingsType object) { - return createBindingsTypeAdapter(); - } - @Override - public Adapter caseDecodeParamType(DecodeParamType object) { - return createDecodeParamTypeAdapter(); - } - @Override - public Adapter caseDocumentRoot(DocumentRoot object) { - return createDocumentRootAdapter(); - } - @Override - public Adapter caseExpressionType(ExpressionType object) { - return createExpressionTypeAdapter(); - } - @Override - public Adapter caseValueType(ValueType object) { - return createValueTypeAdapter(); - } - @Override - public Adapter caseWiringType(WiringType object) { - return createWiringTypeAdapter(); - } - @Override - public Adapter caseAnyType(AnyType object) { - return createAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractAnyType(AbstractAnyType object) { - return createAbstractAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) { - return createAbstractResourceConfigAdapter(); - } - @Override - public Adapter caseElementVisitor(ElementVisitor object) { - return createElementVisitorAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.javabean.BindingsType Bindings Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.javabean.BindingsType - * @generated - */ - public Adapter createBindingsTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.javabean.DecodeParamType Decode Param Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.javabean.DecodeParamType - * @generated - */ - public Adapter createDecodeParamTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.javabean.DocumentRoot Document Root}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.javabean.DocumentRoot - * @generated - */ - public Adapter createDocumentRootAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.javabean.ExpressionType Expression Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.javabean.ExpressionType - * @generated - */ - public Adapter createExpressionTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.javabean.ValueType Value Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.javabean.ValueType - * @generated - */ - public Adapter createValueTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.javabean.WiringType Wiring Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.javabean.WiringType - * @generated - */ - public Adapter createWiringTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.xml.type.AnyType - * @generated - */ - public Adapter createAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.common.AbstractAnyType Abstract Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.common.AbstractAnyType - * @generated - */ - public Adapter createAbstractAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.AbstractResourceConfig Abstract Resource Config}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.smooks.AbstractResourceConfig - * @generated - */ - public Adapter createAbstractResourceConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ElementVisitor Element Visitor}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.smooks.ElementVisitor - * @generated - */ - public Adapter createElementVisitorAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //JavabeanAdapterFactory Index: src/org/jboss/tools/smooks/model/javabean/util/JavabeanResourceFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/util/JavabeanResourceFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/util/JavabeanResourceFactoryImpl.java (working copy) @@ -1,56 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.jboss.tools.smooks.model.javabean.util.JavabeanResourceImpl - * @generated - */ -public class JavabeanResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public JavabeanResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - XMLResource result = new JavabeanResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); - return result; - } - -} //JavabeanResourceFactoryImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/WiringTypeImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/WiringTypeImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/WiringTypeImpl.java (working copy) @@ -1,384 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.WiringType; - -/** - * - * An implementation of the model object 'Wiring Type'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl#getBeanIdRef Bean Id Ref}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl#getProperty Property}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl#getSetterMethod Setter Method}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl#getWireOnElement Wire On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl#getWireOnElementNS Wire On Element NS}
  • - *
- *

- * - * @generated - */ -public class WiringTypeImpl extends AbstractAnyTypeImpl implements WiringType { - /** - * The default value of the '{@link #getBeanIdRef() Bean Id Ref}' attribute. - * - * - * @see #getBeanIdRef() - * @generated - * @ordered - */ - protected static final String BEAN_ID_REF_EDEFAULT = null; - - /** - * The cached value of the '{@link #getBeanIdRef() Bean Id Ref}' attribute. - * - * - * @see #getBeanIdRef() - * @generated - * @ordered - */ - protected String beanIdRef = BEAN_ID_REF_EDEFAULT; - - /** - * The default value of the '{@link #getProperty() Property}' attribute. - * - * - * @see #getProperty() - * @generated - * @ordered - */ - protected static final String PROPERTY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProperty() Property}' attribute. - * - * - * @see #getProperty() - * @generated - * @ordered - */ - protected String property = PROPERTY_EDEFAULT; - - /** - * The default value of the '{@link #getSetterMethod() Setter Method}' attribute. - * - * - * @see #getSetterMethod() - * @generated - * @ordered - */ - protected static final String SETTER_METHOD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSetterMethod() Setter Method}' attribute. - * - * - * @see #getSetterMethod() - * @generated - * @ordered - */ - protected String setterMethod = SETTER_METHOD_EDEFAULT; - - /** - * The default value of the '{@link #getWireOnElement() Wire On Element}' attribute. - * - * - * @see #getWireOnElement() - * @generated - * @ordered - */ - protected static final String WIRE_ON_ELEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWireOnElement() Wire On Element}' attribute. - * - * - * @see #getWireOnElement() - * @generated - * @ordered - */ - protected String wireOnElement = WIRE_ON_ELEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getWireOnElementNS() Wire On Element NS}' attribute. - * - * - * @see #getWireOnElementNS() - * @generated - * @ordered - */ - protected static final String WIRE_ON_ELEMENT_NS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWireOnElementNS() Wire On Element NS}' attribute. - * - * - * @see #getWireOnElementNS() - * @generated - * @ordered - */ - protected String wireOnElementNS = WIRE_ON_ELEMENT_NS_EDEFAULT; - - /** - * - * - * @generated - */ - protected WiringTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JavabeanPackage.Literals.WIRING_TYPE; - } - - /** - * - * - * @generated - */ - public String getBeanIdRef() { - return beanIdRef; - } - - /** - * - * - * @generated - */ - public void setBeanIdRef(String newBeanIdRef) { - String oldBeanIdRef = beanIdRef; - beanIdRef = newBeanIdRef; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.WIRING_TYPE__BEAN_ID_REF, oldBeanIdRef, beanIdRef)); - } - - /** - * - * - * @generated - */ - public String getProperty() { - return property; - } - - /** - * - * - * @generated - */ - public void setProperty(String newProperty) { - String oldProperty = property; - property = newProperty; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.WIRING_TYPE__PROPERTY, oldProperty, property)); - } - - /** - * - * - * @generated - */ - public String getSetterMethod() { - return setterMethod; - } - - /** - * - * - * @generated - */ - public void setSetterMethod(String newSetterMethod) { - String oldSetterMethod = setterMethod; - setterMethod = newSetterMethod; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.WIRING_TYPE__SETTER_METHOD, oldSetterMethod, setterMethod)); - } - - /** - * - * - * @generated - */ - public String getWireOnElement() { - return wireOnElement; - } - - /** - * - * - * @generated - */ - public void setWireOnElement(String newWireOnElement) { - String oldWireOnElement = wireOnElement; - wireOnElement = newWireOnElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT, oldWireOnElement, wireOnElement)); - } - - /** - * - * - * @generated - */ - public String getWireOnElementNS() { - return wireOnElementNS; - } - - /** - * - * - * @generated - */ - public void setWireOnElementNS(String newWireOnElementNS) { - String oldWireOnElementNS = wireOnElementNS; - wireOnElementNS = newWireOnElementNS; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT_NS, oldWireOnElementNS, wireOnElementNS)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavabeanPackage.WIRING_TYPE__BEAN_ID_REF: - return getBeanIdRef(); - case JavabeanPackage.WIRING_TYPE__PROPERTY: - return getProperty(); - case JavabeanPackage.WIRING_TYPE__SETTER_METHOD: - return getSetterMethod(); - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT: - return getWireOnElement(); - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT_NS: - return getWireOnElementNS(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavabeanPackage.WIRING_TYPE__BEAN_ID_REF: - setBeanIdRef((String)newValue); - return; - case JavabeanPackage.WIRING_TYPE__PROPERTY: - setProperty((String)newValue); - return; - case JavabeanPackage.WIRING_TYPE__SETTER_METHOD: - setSetterMethod((String)newValue); - return; - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT: - setWireOnElement((String)newValue); - return; - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT_NS: - setWireOnElementNS((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JavabeanPackage.WIRING_TYPE__BEAN_ID_REF: - setBeanIdRef(BEAN_ID_REF_EDEFAULT); - return; - case JavabeanPackage.WIRING_TYPE__PROPERTY: - setProperty(PROPERTY_EDEFAULT); - return; - case JavabeanPackage.WIRING_TYPE__SETTER_METHOD: - setSetterMethod(SETTER_METHOD_EDEFAULT); - return; - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT: - setWireOnElement(WIRE_ON_ELEMENT_EDEFAULT); - return; - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT_NS: - setWireOnElementNS(WIRE_ON_ELEMENT_NS_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavabeanPackage.WIRING_TYPE__BEAN_ID_REF: - return BEAN_ID_REF_EDEFAULT == null ? beanIdRef != null : !BEAN_ID_REF_EDEFAULT.equals(beanIdRef); - case JavabeanPackage.WIRING_TYPE__PROPERTY: - return PROPERTY_EDEFAULT == null ? property != null : !PROPERTY_EDEFAULT.equals(property); - case JavabeanPackage.WIRING_TYPE__SETTER_METHOD: - return SETTER_METHOD_EDEFAULT == null ? setterMethod != null : !SETTER_METHOD_EDEFAULT.equals(setterMethod); - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT: - return WIRE_ON_ELEMENT_EDEFAULT == null ? wireOnElement != null : !WIRE_ON_ELEMENT_EDEFAULT.equals(wireOnElement); - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT_NS: - return WIRE_ON_ELEMENT_NS_EDEFAULT == null ? wireOnElementNS != null : !WIRE_ON_ELEMENT_NS_EDEFAULT.equals(wireOnElementNS); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (beanIdRef: "); //$NON-NLS-1$ - result.append(beanIdRef); - result.append(", property: "); //$NON-NLS-1$ - result.append(property); - result.append(", setterMethod: "); //$NON-NLS-1$ - result.append(setterMethod); - result.append(", wireOnElement: "); //$NON-NLS-1$ - result.append(wireOnElement); - result.append(", wireOnElementNS: "); //$NON-NLS-1$ - result.append(wireOnElementNS); - result.append(')'); - return result.toString(); - } - -} //WiringTypeImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/DecodeParamTypeImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/DecodeParamTypeImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/DecodeParamTypeImpl.java (working copy) @@ -1,222 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl; -import org.jboss.tools.smooks.model.javabean.DecodeParamType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; - -/** - * - * An implementation of the model object 'Decode Param Type'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DecodeParamTypeImpl#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DecodeParamTypeImpl#getName Name}
  • - *
- *

- * - * @generated - */ -public class DecodeParamTypeImpl extends AbstractAnyTypeImpl implements DecodeParamType { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected DecodeParamTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JavabeanPackage.Literals.DECODE_PARAM_TYPE; - } - - /** - * - * - * @generated - */ - public String getValue() { - return value; - } - - /** - * - * - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.DECODE_PARAM_TYPE__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.DECODE_PARAM_TYPE__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavabeanPackage.DECODE_PARAM_TYPE__VALUE: - return getValue(); - case JavabeanPackage.DECODE_PARAM_TYPE__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavabeanPackage.DECODE_PARAM_TYPE__VALUE: - setValue((String)newValue); - return; - case JavabeanPackage.DECODE_PARAM_TYPE__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JavabeanPackage.DECODE_PARAM_TYPE__VALUE: - setValue(VALUE_EDEFAULT); - return; - case JavabeanPackage.DECODE_PARAM_TYPE__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavabeanPackage.DECODE_PARAM_TYPE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case JavabeanPackage.DECODE_PARAM_TYPE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(')'); - return result.toString(); - } - -} //DecodeParamTypeImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/messages.properties =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/messages.properties (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/messages.properties (working copy) @@ -1,2 +0,0 @@ -JavabeanFactoryImpl_Error_Class_not_valid=The class ' -JavabeanFactoryImpl_Error_Not_Valid_Identifier=' is not a valid classifier Index: src/org/jboss/tools/smooks/model/javabean/impl/ExpressionTypeImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/ExpressionTypeImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/ExpressionTypeImpl.java (working copy) @@ -1,384 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl; -import org.jboss.tools.smooks.model.javabean.ExpressionType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; - -/** - * - * An implementation of the model object 'Expression Type'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl#getExecOnElement Exec On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl#getExecOnElementNS Exec On Element NS}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl#getProperty Property}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl#getSetterMethod Setter Method}
  • - *
- *

- * - * @generated - */ -public class ExpressionTypeImpl extends AbstractAnyTypeImpl implements ExpressionType { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getExecOnElement() Exec On Element}' attribute. - * - * - * @see #getExecOnElement() - * @generated - * @ordered - */ - protected static final String EXEC_ON_ELEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExecOnElement() Exec On Element}' attribute. - * - * - * @see #getExecOnElement() - * @generated - * @ordered - */ - protected String execOnElement = EXEC_ON_ELEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getExecOnElementNS() Exec On Element NS}' attribute. - * - * - * @see #getExecOnElementNS() - * @generated - * @ordered - */ - protected static final String EXEC_ON_ELEMENT_NS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExecOnElementNS() Exec On Element NS}' attribute. - * - * - * @see #getExecOnElementNS() - * @generated - * @ordered - */ - protected String execOnElementNS = EXEC_ON_ELEMENT_NS_EDEFAULT; - - /** - * The default value of the '{@link #getProperty() Property}' attribute. - * - * - * @see #getProperty() - * @generated - * @ordered - */ - protected static final String PROPERTY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProperty() Property}' attribute. - * - * - * @see #getProperty() - * @generated - * @ordered - */ - protected String property = PROPERTY_EDEFAULT; - - /** - * The default value of the '{@link #getSetterMethod() Setter Method}' attribute. - * - * - * @see #getSetterMethod() - * @generated - * @ordered - */ - protected static final String SETTER_METHOD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSetterMethod() Setter Method}' attribute. - * - * - * @see #getSetterMethod() - * @generated - * @ordered - */ - protected String setterMethod = SETTER_METHOD_EDEFAULT; - - /** - * - * - * @generated - */ - protected ExpressionTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JavabeanPackage.Literals.EXPRESSION_TYPE; - } - - /** - * - * - * @generated - */ - public String getValue() { - return value; - } - - /** - * - * - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.EXPRESSION_TYPE__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - public String getExecOnElement() { - return execOnElement; - } - - /** - * - * - * @generated - */ - public void setExecOnElement(String newExecOnElement) { - String oldExecOnElement = execOnElement; - execOnElement = newExecOnElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT, oldExecOnElement, execOnElement)); - } - - /** - * - * - * @generated - */ - public String getExecOnElementNS() { - return execOnElementNS; - } - - /** - * - * - * @generated - */ - public void setExecOnElementNS(String newExecOnElementNS) { - String oldExecOnElementNS = execOnElementNS; - execOnElementNS = newExecOnElementNS; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS, oldExecOnElementNS, execOnElementNS)); - } - - /** - * - * - * @generated - */ - public String getProperty() { - return property; - } - - /** - * - * - * @generated - */ - public void setProperty(String newProperty) { - String oldProperty = property; - property = newProperty; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.EXPRESSION_TYPE__PROPERTY, oldProperty, property)); - } - - /** - * - * - * @generated - */ - public String getSetterMethod() { - return setterMethod; - } - - /** - * - * - * @generated - */ - public void setSetterMethod(String newSetterMethod) { - String oldSetterMethod = setterMethod; - setterMethod = newSetterMethod; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.EXPRESSION_TYPE__SETTER_METHOD, oldSetterMethod, setterMethod)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavabeanPackage.EXPRESSION_TYPE__VALUE: - return getValue(); - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT: - return getExecOnElement(); - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS: - return getExecOnElementNS(); - case JavabeanPackage.EXPRESSION_TYPE__PROPERTY: - return getProperty(); - case JavabeanPackage.EXPRESSION_TYPE__SETTER_METHOD: - return getSetterMethod(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavabeanPackage.EXPRESSION_TYPE__VALUE: - setValue((String)newValue); - return; - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT: - setExecOnElement((String)newValue); - return; - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS: - setExecOnElementNS((String)newValue); - return; - case JavabeanPackage.EXPRESSION_TYPE__PROPERTY: - setProperty((String)newValue); - return; - case JavabeanPackage.EXPRESSION_TYPE__SETTER_METHOD: - setSetterMethod((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JavabeanPackage.EXPRESSION_TYPE__VALUE: - setValue(VALUE_EDEFAULT); - return; - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT: - setExecOnElement(EXEC_ON_ELEMENT_EDEFAULT); - return; - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS: - setExecOnElementNS(EXEC_ON_ELEMENT_NS_EDEFAULT); - return; - case JavabeanPackage.EXPRESSION_TYPE__PROPERTY: - setProperty(PROPERTY_EDEFAULT); - return; - case JavabeanPackage.EXPRESSION_TYPE__SETTER_METHOD: - setSetterMethod(SETTER_METHOD_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavabeanPackage.EXPRESSION_TYPE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT: - return EXEC_ON_ELEMENT_EDEFAULT == null ? execOnElement != null : !EXEC_ON_ELEMENT_EDEFAULT.equals(execOnElement); - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS: - return EXEC_ON_ELEMENT_NS_EDEFAULT == null ? execOnElementNS != null : !EXEC_ON_ELEMENT_NS_EDEFAULT.equals(execOnElementNS); - case JavabeanPackage.EXPRESSION_TYPE__PROPERTY: - return PROPERTY_EDEFAULT == null ? property != null : !PROPERTY_EDEFAULT.equals(property); - case JavabeanPackage.EXPRESSION_TYPE__SETTER_METHOD: - return SETTER_METHOD_EDEFAULT == null ? setterMethod != null : !SETTER_METHOD_EDEFAULT.equals(setterMethod); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(", execOnElement: "); //$NON-NLS-1$ - result.append(execOnElement); - result.append(", execOnElementNS: "); //$NON-NLS-1$ - result.append(execOnElementNS); - result.append(", property: "); //$NON-NLS-1$ - result.append(property); - result.append(", setterMethod: "); //$NON-NLS-1$ - result.append(setterMethod); - result.append(')'); - return result.toString(); - } - -} //ExpressionTypeImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/ValueTypeImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/ValueTypeImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/ValueTypeImpl.java (working copy) @@ -1,497 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - -import java.util.Collection; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl; -import org.jboss.tools.smooks.model.javabean.DecodeParamType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.ValueType; - -/** - * - * An implementation of the model object 'Value Type'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getDecodeParam Decode Param}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getData Data}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getDataNS Data NS}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getDecoder Decoder}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getDefault Default}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getProperty Property}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl#getSetterMethod Setter Method}
  • - *
- *

- * - * @generated - */ -public class ValueTypeImpl extends AbstractAnyTypeImpl implements ValueType { - /** - * The cached value of the '{@link #getDecodeParam() Decode Param}' containment reference list. - * - * - * @see #getDecodeParam() - * @generated - * @ordered - */ - protected EList decodeParam; - - /** - * The default value of the '{@link #getData() Data}' attribute. - * - * - * @see #getData() - * @generated - * @ordered - */ - protected static final String DATA_EDEFAULT = null; - - /** - * The cached value of the '{@link #getData() Data}' attribute. - * - * - * @see #getData() - * @generated - * @ordered - */ - protected String data = DATA_EDEFAULT; - - /** - * The default value of the '{@link #getDataNS() Data NS}' attribute. - * - * - * @see #getDataNS() - * @generated - * @ordered - */ - protected static final String DATA_NS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDataNS() Data NS}' attribute. - * - * - * @see #getDataNS() - * @generated - * @ordered - */ - protected String dataNS = DATA_NS_EDEFAULT; - - /** - * The default value of the '{@link #getDecoder() Decoder}' attribute. - * - * - * @see #getDecoder() - * @generated - * @ordered - */ - protected static final String DECODER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDecoder() Decoder}' attribute. - * - * - * @see #getDecoder() - * @generated - * @ordered - */ - protected String decoder = DECODER_EDEFAULT; - - /** - * The default value of the '{@link #getDefault() Default}' attribute. - * - * - * @see #getDefault() - * @generated - * @ordered - */ - protected static final String DEFAULT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDefault() Default}' attribute. - * - * - * @see #getDefault() - * @generated - * @ordered - */ - protected String default_ = DEFAULT_EDEFAULT; - - /** - * The default value of the '{@link #getProperty() Property}' attribute. - * - * - * @see #getProperty() - * @generated - * @ordered - */ - protected static final String PROPERTY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProperty() Property}' attribute. - * - * - * @see #getProperty() - * @generated - * @ordered - */ - protected String property = PROPERTY_EDEFAULT; - - /** - * The default value of the '{@link #getSetterMethod() Setter Method}' attribute. - * - * - * @see #getSetterMethod() - * @generated - * @ordered - */ - protected static final String SETTER_METHOD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSetterMethod() Setter Method}' attribute. - * - * - * @see #getSetterMethod() - * @generated - * @ordered - */ - protected String setterMethod = SETTER_METHOD_EDEFAULT; - - /** - * - * - * @generated - */ - protected ValueTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JavabeanPackage.Literals.VALUE_TYPE; - } - - /** - * - * - * @generated - */ - public EList getDecodeParam() { - if (decodeParam == null) { - decodeParam = new EObjectContainmentEList(DecodeParamType.class, this, JavabeanPackage.VALUE_TYPE__DECODE_PARAM); - } - return decodeParam; - } - - /** - * - * - * @generated - */ - public String getData() { - return data; - } - - /** - * - * - * @generated - */ - public void setData(String newData) { - String oldData = data; - data = newData; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.VALUE_TYPE__DATA, oldData, data)); - } - - /** - * - * - * @generated - */ - public String getDataNS() { - return dataNS; - } - - /** - * - * - * @generated - */ - public void setDataNS(String newDataNS) { - String oldDataNS = dataNS; - dataNS = newDataNS; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.VALUE_TYPE__DATA_NS, oldDataNS, dataNS)); - } - - /** - * - * - * @generated - */ - public String getDecoder() { - return decoder; - } - - /** - * - * - * @generated - */ - public void setDecoder(String newDecoder) { - String oldDecoder = decoder; - decoder = newDecoder; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.VALUE_TYPE__DECODER, oldDecoder, decoder)); - } - - /** - * - * - * @generated - */ - public String getDefault() { - return default_; - } - - /** - * - * - * @generated - */ - public void setDefault(String newDefault) { - String oldDefault = default_; - default_ = newDefault; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.VALUE_TYPE__DEFAULT, oldDefault, default_)); - } - - /** - * - * - * @generated - */ - public String getProperty() { - return property; - } - - /** - * - * - * @generated - */ - public void setProperty(String newProperty) { - String oldProperty = property; - property = newProperty; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.VALUE_TYPE__PROPERTY, oldProperty, property)); - } - - /** - * - * - * @generated - */ - public String getSetterMethod() { - return setterMethod; - } - - /** - * - * - * @generated - */ - public void setSetterMethod(String newSetterMethod) { - String oldSetterMethod = setterMethod; - setterMethod = newSetterMethod; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.VALUE_TYPE__SETTER_METHOD, oldSetterMethod, setterMethod)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JavabeanPackage.VALUE_TYPE__DECODE_PARAM: - return ((InternalEList)getDecodeParam()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavabeanPackage.VALUE_TYPE__DECODE_PARAM: - return getDecodeParam(); - case JavabeanPackage.VALUE_TYPE__DATA: - return getData(); - case JavabeanPackage.VALUE_TYPE__DATA_NS: - return getDataNS(); - case JavabeanPackage.VALUE_TYPE__DECODER: - return getDecoder(); - case JavabeanPackage.VALUE_TYPE__DEFAULT: - return getDefault(); - case JavabeanPackage.VALUE_TYPE__PROPERTY: - return getProperty(); - case JavabeanPackage.VALUE_TYPE__SETTER_METHOD: - return getSetterMethod(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavabeanPackage.VALUE_TYPE__DECODE_PARAM: - getDecodeParam().clear(); - getDecodeParam().addAll((Collection)newValue); - return; - case JavabeanPackage.VALUE_TYPE__DATA: - setData((String)newValue); - return; - case JavabeanPackage.VALUE_TYPE__DATA_NS: - setDataNS((String)newValue); - return; - case JavabeanPackage.VALUE_TYPE__DECODER: - setDecoder((String)newValue); - return; - case JavabeanPackage.VALUE_TYPE__DEFAULT: - setDefault((String)newValue); - return; - case JavabeanPackage.VALUE_TYPE__PROPERTY: - setProperty((String)newValue); - return; - case JavabeanPackage.VALUE_TYPE__SETTER_METHOD: - setSetterMethod((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JavabeanPackage.VALUE_TYPE__DECODE_PARAM: - getDecodeParam().clear(); - return; - case JavabeanPackage.VALUE_TYPE__DATA: - setData(DATA_EDEFAULT); - return; - case JavabeanPackage.VALUE_TYPE__DATA_NS: - setDataNS(DATA_NS_EDEFAULT); - return; - case JavabeanPackage.VALUE_TYPE__DECODER: - setDecoder(DECODER_EDEFAULT); - return; - case JavabeanPackage.VALUE_TYPE__DEFAULT: - setDefault(DEFAULT_EDEFAULT); - return; - case JavabeanPackage.VALUE_TYPE__PROPERTY: - setProperty(PROPERTY_EDEFAULT); - return; - case JavabeanPackage.VALUE_TYPE__SETTER_METHOD: - setSetterMethod(SETTER_METHOD_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavabeanPackage.VALUE_TYPE__DECODE_PARAM: - return decodeParam != null && !decodeParam.isEmpty(); - case JavabeanPackage.VALUE_TYPE__DATA: - return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals(data); - case JavabeanPackage.VALUE_TYPE__DATA_NS: - return DATA_NS_EDEFAULT == null ? dataNS != null : !DATA_NS_EDEFAULT.equals(dataNS); - case JavabeanPackage.VALUE_TYPE__DECODER: - return DECODER_EDEFAULT == null ? decoder != null : !DECODER_EDEFAULT.equals(decoder); - case JavabeanPackage.VALUE_TYPE__DEFAULT: - return DEFAULT_EDEFAULT == null ? default_ != null : !DEFAULT_EDEFAULT.equals(default_); - case JavabeanPackage.VALUE_TYPE__PROPERTY: - return PROPERTY_EDEFAULT == null ? property != null : !PROPERTY_EDEFAULT.equals(property); - case JavabeanPackage.VALUE_TYPE__SETTER_METHOD: - return SETTER_METHOD_EDEFAULT == null ? setterMethod != null : !SETTER_METHOD_EDEFAULT.equals(setterMethod); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (data: "); //$NON-NLS-1$ - result.append(data); - result.append(", dataNS: "); //$NON-NLS-1$ - result.append(dataNS); - result.append(", decoder: "); //$NON-NLS-1$ - result.append(decoder); - result.append(", default: "); //$NON-NLS-1$ - result.append(default_); - result.append(", property: "); //$NON-NLS-1$ - result.append(property); - result.append(", setterMethod: "); //$NON-NLS-1$ - result.append(setterMethod); - result.append(')'); - return result.toString(); - } - -} //ValueTypeImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/JavabeanPackageImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/JavabeanPackageImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/JavabeanPackageImpl.java (working copy) @@ -1,1031 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.jboss.tools.smooks.model.common.CommonPackage; -import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl; -import org.jboss.tools.smooks.model.javabean.BindingsType; -import org.jboss.tools.smooks.model.javabean.DecodeParamType; -import org.jboss.tools.smooks.model.javabean.DocumentRoot; -import org.jboss.tools.smooks.model.javabean.ExpressionType; -import org.jboss.tools.smooks.model.javabean.JavabeanFactory; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.ValueType; -import org.jboss.tools.smooks.model.javabean.WiringType; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; -import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl; - - - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class JavabeanPackageImpl extends EPackageImpl implements JavabeanPackage { - /** - * - * - * @generated - */ - private EClass bindingsTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass decodeParamTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass documentRootEClass = null; - - /** - * - * - * @generated - */ - private EClass expressionTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass valueTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass wiringTypeEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#eNS_URI - * @see #init() - * @generated - */ - private JavabeanPackageImpl() { - super(eNS_URI, JavabeanFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *

Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *

Invocation of this method will not affect any packages that have - * already been initialized. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static JavabeanPackage init() { - if (isInited) return (JavabeanPackage)EPackage.Registry.INSTANCE.getEPackage(JavabeanPackage.eNS_URI); - - // Obtain or create and register package - JavabeanPackageImpl theJavabeanPackage = (JavabeanPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JavabeanPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JavabeanPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - - // Create package meta-data objects - theJavabeanPackage.createPackageContents(); - theSmooksPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - - // Initialize created meta-data - theJavabeanPackage.initializePackageContents(); - theSmooksPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theJavabeanPackage.freeze(); - - return theJavabeanPackage; - } - - /** - * - * - * @generated - */ - public EClass getBindingsType() { - return bindingsTypeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getBindingsType_Group() { - return (EAttribute)bindingsTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getBindingsType_Value() { - return (EReference)bindingsTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getBindingsType_Wiring() { - return (EReference)bindingsTypeEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getBindingsType_Expression() { - return (EReference)bindingsTypeEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getBindingsType_BeanId() { - return (EAttribute)bindingsTypeEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getBindingsType_Class() { - return (EAttribute)bindingsTypeEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getBindingsType_CreateOnElement() { - return (EAttribute)bindingsTypeEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getBindingsType_CreateOnElementNS() { - return (EAttribute)bindingsTypeEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EAttribute getBindingsType_ExtendLifecycle() { - return (EAttribute)bindingsTypeEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EClass getDecodeParamType() { - return decodeParamTypeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getDecodeParamType_Value() { - return (EAttribute)decodeParamTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getDecodeParamType_Name() { - return (EAttribute)decodeParamTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getDocumentRoot() { - return documentRootEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getDocumentRoot_Mixed() { - return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_XMLNSPrefixMap() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_XSISchemaLocation() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_Bindings() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_DecodeParam() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_Expression() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_Value() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EReference getDocumentRoot_Wiring() { - return (EReference)documentRootEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EClass getExpressionType() { - return expressionTypeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getExpressionType_Value() { - return (EAttribute)expressionTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getExpressionType_ExecOnElement() { - return (EAttribute)expressionTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getExpressionType_ExecOnElementNS() { - return (EAttribute)expressionTypeEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getExpressionType_Property() { - return (EAttribute)expressionTypeEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getExpressionType_SetterMethod() { - return (EAttribute)expressionTypeEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EClass getValueType() { - return valueTypeEClass; - } - - /** - * - * - * @generated - */ - public EReference getValueType_DecodeParam() { - return (EReference)valueTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getValueType_Data() { - return (EAttribute)valueTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getValueType_DataNS() { - return (EAttribute)valueTypeEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getValueType_Decoder() { - return (EAttribute)valueTypeEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getValueType_Default() { - return (EAttribute)valueTypeEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getValueType_Property() { - return (EAttribute)valueTypeEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getValueType_SetterMethod() { - return (EAttribute)valueTypeEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EClass getWiringType() { - return wiringTypeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getWiringType_BeanIdRef() { - return (EAttribute)wiringTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getWiringType_Property() { - return (EAttribute)wiringTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getWiringType_SetterMethod() { - return (EAttribute)wiringTypeEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getWiringType_WireOnElement() { - return (EAttribute)wiringTypeEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getWiringType_WireOnElementNS() { - return (EAttribute)wiringTypeEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public JavabeanFactory getJavabeanFactory() { - return (JavabeanFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - bindingsTypeEClass = createEClass(BINDINGS_TYPE); - createEAttribute(bindingsTypeEClass, BINDINGS_TYPE__GROUP); - createEReference(bindingsTypeEClass, BINDINGS_TYPE__VALUE); - createEReference(bindingsTypeEClass, BINDINGS_TYPE__WIRING); - createEReference(bindingsTypeEClass, BINDINGS_TYPE__EXPRESSION); - createEAttribute(bindingsTypeEClass, BINDINGS_TYPE__BEAN_ID); - createEAttribute(bindingsTypeEClass, BINDINGS_TYPE__CLASS); - createEAttribute(bindingsTypeEClass, BINDINGS_TYPE__CREATE_ON_ELEMENT); - createEAttribute(bindingsTypeEClass, BINDINGS_TYPE__CREATE_ON_ELEMENT_NS); - createEAttribute(bindingsTypeEClass, BINDINGS_TYPE__EXTEND_LIFECYCLE); - - decodeParamTypeEClass = createEClass(DECODE_PARAM_TYPE); - createEAttribute(decodeParamTypeEClass, DECODE_PARAM_TYPE__VALUE); - createEAttribute(decodeParamTypeEClass, DECODE_PARAM_TYPE__NAME); - - documentRootEClass = createEClass(DOCUMENT_ROOT); - createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); - createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - createEReference(documentRootEClass, DOCUMENT_ROOT__BINDINGS); - createEReference(documentRootEClass, DOCUMENT_ROOT__DECODE_PARAM); - createEReference(documentRootEClass, DOCUMENT_ROOT__EXPRESSION); - createEReference(documentRootEClass, DOCUMENT_ROOT__VALUE); - createEReference(documentRootEClass, DOCUMENT_ROOT__WIRING); - - expressionTypeEClass = createEClass(EXPRESSION_TYPE); - createEAttribute(expressionTypeEClass, EXPRESSION_TYPE__VALUE); - createEAttribute(expressionTypeEClass, EXPRESSION_TYPE__EXEC_ON_ELEMENT); - createEAttribute(expressionTypeEClass, EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS); - createEAttribute(expressionTypeEClass, EXPRESSION_TYPE__PROPERTY); - createEAttribute(expressionTypeEClass, EXPRESSION_TYPE__SETTER_METHOD); - - valueTypeEClass = createEClass(VALUE_TYPE); - createEReference(valueTypeEClass, VALUE_TYPE__DECODE_PARAM); - createEAttribute(valueTypeEClass, VALUE_TYPE__DATA); - createEAttribute(valueTypeEClass, VALUE_TYPE__DATA_NS); - createEAttribute(valueTypeEClass, VALUE_TYPE__DECODER); - createEAttribute(valueTypeEClass, VALUE_TYPE__DEFAULT); - createEAttribute(valueTypeEClass, VALUE_TYPE__PROPERTY); - createEAttribute(valueTypeEClass, VALUE_TYPE__SETTER_METHOD); - - wiringTypeEClass = createEClass(WIRING_TYPE); - createEAttribute(wiringTypeEClass, WIRING_TYPE__BEAN_ID_REF); - createEAttribute(wiringTypeEClass, WIRING_TYPE__PROPERTY); - createEAttribute(wiringTypeEClass, WIRING_TYPE__SETTER_METHOD); - createEAttribute(wiringTypeEClass, WIRING_TYPE__WIRE_ON_ELEMENT); - createEAttribute(wiringTypeEClass, WIRING_TYPE__WIRE_ON_ELEMENT_NS); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI); - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - bindingsTypeEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor()); - decodeParamTypeEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); - expressionTypeEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); - valueTypeEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); - wiringTypeEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); - - // Initialize classes and features; add operations and parameters - initEClass(bindingsTypeEClass, BindingsType.class, "BindingsType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getBindingsType_Group(), ecorePackage.getEFeatureMapEntry(), "group", null, 0, -1, BindingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBindingsType_Value(), this.getValueType(), null, "value", null, 0, -1, BindingsType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBindingsType_Wiring(), this.getWiringType(), null, "wiring", null, 0, -1, BindingsType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBindingsType_Expression(), this.getExpressionType(), null, "expression", null, 0, -1, BindingsType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getBindingsType_BeanId(), theXMLTypePackage.getString(), "beanId", null, 1, 1, BindingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getBindingsType_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, BindingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getBindingsType_CreateOnElement(), theXMLTypePackage.getString(), "createOnElement", null, 0, 1, BindingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getBindingsType_CreateOnElementNS(), theXMLTypePackage.getAnyURI(), "createOnElementNS", null, 0, 1, BindingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getBindingsType_ExtendLifecycle(), theXMLTypePackage.getBoolean(), "extendLifecycle", null, 0, 1, BindingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(decodeParamTypeEClass, DecodeParamType.class, "DecodeParamType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getDecodeParamType_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, DecodeParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getDecodeParamType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, DecodeParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_Bindings(), this.getBindingsType(), null, "bindings", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_DecodeParam(), this.getDecodeParamType(), null, "decodeParam", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_Expression(), this.getExpressionType(), null, "expression", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_Value(), this.getValueType(), null, "value", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getDocumentRoot_Wiring(), this.getWiringType(), null, "wiring", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(expressionTypeEClass, ExpressionType.class, "ExpressionType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getExpressionType_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, ExpressionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getExpressionType_ExecOnElement(), theXMLTypePackage.getString(), "execOnElement", null, 0, 1, ExpressionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getExpressionType_ExecOnElementNS(), theXMLTypePackage.getAnyURI(), "execOnElementNS", null, 0, 1, ExpressionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getExpressionType_Property(), theXMLTypePackage.getString(), "property", null, 0, 1, ExpressionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getExpressionType_SetterMethod(), theXMLTypePackage.getString(), "setterMethod", null, 0, 1, ExpressionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(valueTypeEClass, ValueType.class, "ValueType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getValueType_DecodeParam(), this.getDecodeParamType(), null, "decodeParam", null, 0, -1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getValueType_Data(), theXMLTypePackage.getString(), "data", null, 1, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getValueType_DataNS(), theXMLTypePackage.getAnyURI(), "dataNS", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getValueType_Decoder(), theXMLTypePackage.getString(), "decoder", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getValueType_Default(), theXMLTypePackage.getString(), "default", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getValueType_Property(), theXMLTypePackage.getString(), "property", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getValueType_SetterMethod(), theXMLTypePackage.getString(), "setterMethod", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(wiringTypeEClass, WiringType.class, "WiringType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWiringType_BeanIdRef(), theXMLTypePackage.getString(), "beanIdRef", null, 1, 1, WiringType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWiringType_Property(), theXMLTypePackage.getString(), "property", null, 0, 1, WiringType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWiringType_SetterMethod(), theXMLTypePackage.getString(), "setterMethod", null, 0, 1, WiringType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWiringType_WireOnElement(), theXMLTypePackage.getString(), "wireOnElement", null, 0, 1, WiringType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWiringType_WireOnElementNS(), theXMLTypePackage.getAnyURI(), "wireOnElementNS", null, 0, 1, WiringType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * - * - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (bindingsTypeEClass, - source, - new String[] { - "name", "bindings_._type", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_Group(), - source, - new String[] { - "kind", "group", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "group:2" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_Value(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "value", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:2" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_Wiring(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "wiring", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:2" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_Expression(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "expression", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:2" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_BeanId(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "beanId" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_Class(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "class" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_CreateOnElement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "createOnElement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_CreateOnElementNS(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "createOnElementNS" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getBindingsType_ExtendLifecycle(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "extendLifecycle" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (decodeParamTypeEClass, - source, - new String[] { - "name", "decodeParam_._type", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "simple" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDecodeParamType_Value(), - source, - new String[] { - "name", ":0", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "simple" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDecodeParamType_Name(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "name" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (documentRootEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_Bindings(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "bindings", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_DecodeParam(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "decodeParam", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_Expression(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "expression", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_Value(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "value", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getDocumentRoot_Wiring(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "wiring", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (expressionTypeEClass, - source, - new String[] { - "name", "expression_._type", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getExpressionType_Value(), - source, - new String[] { - "name", ":0", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "simple" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getExpressionType_ExecOnElement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "execOnElement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getExpressionType_ExecOnElementNS(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "execOnElementNS" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getExpressionType_Property(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "property" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getExpressionType_SetterMethod(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "setterMethod" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (valueTypeEClass, - source, - new String[] { - "name", "value_._type", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_DecodeParam(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "decodeParam", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_Data(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "data" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_DataNS(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "dataNS" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_Decoder(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "decoder" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_Default(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "default" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_Property(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "property" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getValueType_SetterMethod(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "setterMethod" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (wiringTypeEClass, - source, - new String[] { - "name", "wiring_._type", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWiringType_BeanIdRef(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "beanIdRef" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWiringType_Property(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "property" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWiringType_SetterMethod(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "setterMethod" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWiringType_WireOnElement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "wireOnElement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWiringType_WireOnElementNS(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "wireOnElementNS" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //JavabeanPackageImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/Messages.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/Messages.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/Messages.java (working copy) @@ -1,16 +0,0 @@ -package org.jboss.tools.smooks.model.javabean.impl; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - private static final String BUNDLE_NAME = "org.jboss.tools.smooks.model.javabean.impl.messages"; //$NON-NLS-1$ - public static String JavabeanFactoryImpl_Error_Class_not_valid; - public static String JavabeanFactoryImpl_Error_Not_Valid_Identifier; - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - private Messages() { - } -} Index: src/org/jboss/tools/smooks/model/javabean/impl/DocumentRootImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/DocumentRootImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/DocumentRootImpl.java (working copy) @@ -1,450 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.javabean.BindingsType; -import org.jboss.tools.smooks.model.javabean.DecodeParamType; -import org.jboss.tools.smooks.model.javabean.DocumentRoot; -import org.jboss.tools.smooks.model.javabean.ExpressionType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.ValueType; -import org.jboss.tools.smooks.model.javabean.WiringType; - -/** - * - * An implementation of the model object 'Document Root'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getBindings Bindings}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getDecodeParam Decode Param}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getExpression Expression}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.DocumentRootImpl#getWiring Wiring}
  • - *
- *

- * - * @generated - */ -public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { - /** - * The cached value of the '{@link #getMixed() Mixed}' attribute list. - * - * - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map. - * - * - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap; - - /** - * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map. - * - * - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation; - - /** - * - * - * @generated - */ - protected DocumentRootImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JavabeanPackage.Literals.DOCUMENT_ROOT; - } - - /** - * - * - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, JavabeanPackage.DOCUMENT_ROOT__MIXED); - } - return mixed; - } - - /** - * - * - * @generated - */ - public EMap getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, JavabeanPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap; - } - - /** - * - * - * @generated - */ - public EMap getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, JavabeanPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation; - } - - /** - * - * - * @generated - */ - public BindingsType getBindings() { - return (BindingsType)getMixed().get(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetBindings(BindingsType newBindings, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS, newBindings, msgs); - } - - /** - * - * - * @generated - */ - public void setBindings(BindingsType newBindings) { - ((FeatureMap.Internal)getMixed()).set(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS, newBindings); - } - - /** - * - * - * @generated - */ - public DecodeParamType getDecodeParam() { - return (DecodeParamType)getMixed().get(JavabeanPackage.Literals.DOCUMENT_ROOT__DECODE_PARAM, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetDecodeParam(DecodeParamType newDecodeParam, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JavabeanPackage.Literals.DOCUMENT_ROOT__DECODE_PARAM, newDecodeParam, msgs); - } - - /** - * - * - * @generated - */ - public void setDecodeParam(DecodeParamType newDecodeParam) { - ((FeatureMap.Internal)getMixed()).set(JavabeanPackage.Literals.DOCUMENT_ROOT__DECODE_PARAM, newDecodeParam); - } - - /** - * - * - * @generated - */ - public ExpressionType getExpression() { - return (ExpressionType)getMixed().get(JavabeanPackage.Literals.DOCUMENT_ROOT__EXPRESSION, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetExpression(ExpressionType newExpression, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JavabeanPackage.Literals.DOCUMENT_ROOT__EXPRESSION, newExpression, msgs); - } - - /** - * - * - * @generated - */ - public void setExpression(ExpressionType newExpression) { - ((FeatureMap.Internal)getMixed()).set(JavabeanPackage.Literals.DOCUMENT_ROOT__EXPRESSION, newExpression); - } - - /** - * - * - * @generated - */ - public ValueType getValue() { - return (ValueType)getMixed().get(JavabeanPackage.Literals.DOCUMENT_ROOT__VALUE, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValue(ValueType newValue, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JavabeanPackage.Literals.DOCUMENT_ROOT__VALUE, newValue, msgs); - } - - /** - * - * - * @generated - */ - public void setValue(ValueType newValue) { - ((FeatureMap.Internal)getMixed()).set(JavabeanPackage.Literals.DOCUMENT_ROOT__VALUE, newValue); - } - - /** - * - * - * @generated - */ - public WiringType getWiring() { - return (WiringType)getMixed().get(JavabeanPackage.Literals.DOCUMENT_ROOT__WIRING, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetWiring(WiringType newWiring, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JavabeanPackage.Literals.DOCUMENT_ROOT__WIRING, newWiring, msgs); - } - - /** - * - * - * @generated - */ - public void setWiring(WiringType newWiring) { - ((FeatureMap.Internal)getMixed()).set(JavabeanPackage.Literals.DOCUMENT_ROOT__WIRING, newWiring); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JavabeanPackage.DOCUMENT_ROOT__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case JavabeanPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); - case JavabeanPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); - case JavabeanPackage.DOCUMENT_ROOT__BINDINGS: - return basicSetBindings(null, msgs); - case JavabeanPackage.DOCUMENT_ROOT__DECODE_PARAM: - return basicSetDecodeParam(null, msgs); - case JavabeanPackage.DOCUMENT_ROOT__EXPRESSION: - return basicSetExpression(null, msgs); - case JavabeanPackage.DOCUMENT_ROOT__VALUE: - return basicSetValue(null, msgs); - case JavabeanPackage.DOCUMENT_ROOT__WIRING: - return basicSetWiring(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavabeanPackage.DOCUMENT_ROOT__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case JavabeanPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - if (coreType) return getXMLNSPrefixMap(); - else return getXMLNSPrefixMap().map(); - case JavabeanPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - if (coreType) return getXSISchemaLocation(); - else return getXSISchemaLocation().map(); - case JavabeanPackage.DOCUMENT_ROOT__BINDINGS: - return getBindings(); - case JavabeanPackage.DOCUMENT_ROOT__DECODE_PARAM: - return getDecodeParam(); - case JavabeanPackage.DOCUMENT_ROOT__EXPRESSION: - return getExpression(); - case JavabeanPackage.DOCUMENT_ROOT__VALUE: - return getValue(); - case JavabeanPackage.DOCUMENT_ROOT__WIRING: - return getWiring(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavabeanPackage.DOCUMENT_ROOT__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__BINDINGS: - setBindings((BindingsType)newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__DECODE_PARAM: - setDecodeParam((DecodeParamType)newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__EXPRESSION: - setExpression((ExpressionType)newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__VALUE: - setValue((ValueType)newValue); - return; - case JavabeanPackage.DOCUMENT_ROOT__WIRING: - setWiring((WiringType)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JavabeanPackage.DOCUMENT_ROOT__MIXED: - getMixed().clear(); - return; - case JavabeanPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case JavabeanPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case JavabeanPackage.DOCUMENT_ROOT__BINDINGS: - setBindings((BindingsType)null); - return; - case JavabeanPackage.DOCUMENT_ROOT__DECODE_PARAM: - setDecodeParam((DecodeParamType)null); - return; - case JavabeanPackage.DOCUMENT_ROOT__EXPRESSION: - setExpression((ExpressionType)null); - return; - case JavabeanPackage.DOCUMENT_ROOT__VALUE: - setValue((ValueType)null); - return; - case JavabeanPackage.DOCUMENT_ROOT__WIRING: - setWiring((WiringType)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavabeanPackage.DOCUMENT_ROOT__MIXED: - return mixed != null && !mixed.isEmpty(); - case JavabeanPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case JavabeanPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case JavabeanPackage.DOCUMENT_ROOT__BINDINGS: - return getBindings() != null; - case JavabeanPackage.DOCUMENT_ROOT__DECODE_PARAM: - return getDecodeParam() != null; - case JavabeanPackage.DOCUMENT_ROOT__EXPRESSION: - return getExpression() != null; - case JavabeanPackage.DOCUMENT_ROOT__VALUE: - return getValue() != null; - case JavabeanPackage.DOCUMENT_ROOT__WIRING: - return getWiring() != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //DocumentRootImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/BindingsTypeImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/BindingsTypeImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/BindingsTypeImpl.java (working copy) @@ -1,551 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - -import java.util.Collection; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.javabean.BindingsType; -import org.jboss.tools.smooks.model.javabean.ExpressionType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.ValueType; -import org.jboss.tools.smooks.model.javabean.WiringType; -import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl; - - -/** - * - * An implementation of the model object 'Bindings Type'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getGroup Group}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getWiring Wiring}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getExpression Expression}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getBeanId Bean Id}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getClass_ Class}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getCreateOnElement Create On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#getCreateOnElementNS Create On Element NS}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl#isExtendLifecycle Extend Lifecycle}
  • - *
- *

- * - * @generated - */ -public class BindingsTypeImpl extends ElementVisitorImpl implements BindingsType { - /** - * The cached value of the '{@link #getGroup() Group}' attribute list. - * - * - * @see #getGroup() - * @generated - * @ordered - */ - protected FeatureMap group; - - /** - * The default value of the '{@link #getBeanId() Bean Id}' attribute. - * - * - * @see #getBeanId() - * @generated - * @ordered - */ - protected static final String BEAN_ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getBeanId() Bean Id}' attribute. - * - * - * @see #getBeanId() - * @generated - * @ordered - */ - protected String beanId = BEAN_ID_EDEFAULT; - - /** - * The default value of the '{@link #getClass_() Class}' attribute. - * - * - * @see #getClass_() - * @generated - * @ordered - */ - protected static final String CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getClass_() Class}' attribute. - * - * - * @see #getClass_() - * @generated - * @ordered - */ - protected String class_ = CLASS_EDEFAULT; - - /** - * The default value of the '{@link #getCreateOnElement() Create On Element}' attribute. - * - * - * @see #getCreateOnElement() - * @generated - * @ordered - */ - protected static final String CREATE_ON_ELEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCreateOnElement() Create On Element}' attribute. - * - * - * @see #getCreateOnElement() - * @generated - * @ordered - */ - protected String createOnElement = CREATE_ON_ELEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getCreateOnElementNS() Create On Element NS}' attribute. - * - * - * @see #getCreateOnElementNS() - * @generated - * @ordered - */ - protected static final String CREATE_ON_ELEMENT_NS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCreateOnElementNS() Create On Element NS}' attribute. - * - * - * @see #getCreateOnElementNS() - * @generated - * @ordered - */ - protected String createOnElementNS = CREATE_ON_ELEMENT_NS_EDEFAULT; - - /** - * The default value of the '{@link #isExtendLifecycle() Extend Lifecycle}' attribute. - * - * - * @see #isExtendLifecycle() - * @generated - * @ordered - */ - protected static final boolean EXTEND_LIFECYCLE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isExtendLifecycle() Extend Lifecycle}' attribute. - * - * - * @see #isExtendLifecycle() - * @generated - * @ordered - */ - protected boolean extendLifecycle = EXTEND_LIFECYCLE_EDEFAULT; - - /** - * This is true if the Extend Lifecycle attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean extendLifecycleESet; - - /** - * - * - * @generated - */ - protected BindingsTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JavabeanPackage.Literals.BINDINGS_TYPE; - } - - /** - * - * - * @generated - */ - public FeatureMap getGroup() { - if (group == null) { - group = new BasicFeatureMap(this, JavabeanPackage.BINDINGS_TYPE__GROUP); - } - return group; - } - - /** - * - * - * @generated - */ - public EList getValue() { - return getGroup().list(JavabeanPackage.Literals.BINDINGS_TYPE__VALUE); - } - - /** - * - * - * @generated - */ - public EList getWiring() { - return getGroup().list(JavabeanPackage.Literals.BINDINGS_TYPE__WIRING); - } - - /** - * - * - * @generated - */ - public EList getExpression() { - return getGroup().list(JavabeanPackage.Literals.BINDINGS_TYPE__EXPRESSION); - } - - /** - * - * - * @generated - */ - public String getBeanId() { - return beanId; - } - - /** - * - * - * @generated - */ - public void setBeanId(String newBeanId) { - String oldBeanId = beanId; - beanId = newBeanId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.BINDINGS_TYPE__BEAN_ID, oldBeanId, beanId)); - } - - /** - * - * - * @generated - */ - public String getClass_() { - return class_; - } - - /** - * - * - * @generated - */ - public void setClass(String newClass) { - String oldClass = class_; - class_ = newClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.BINDINGS_TYPE__CLASS, oldClass, class_)); - } - - /** - * - * - * @generated - */ - public String getCreateOnElement() { - return createOnElement; - } - - /** - * - * - * @generated - */ - public void setCreateOnElement(String newCreateOnElement) { - String oldCreateOnElement = createOnElement; - createOnElement = newCreateOnElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT, oldCreateOnElement, createOnElement)); - } - - /** - * - * - * @generated - */ - public String getCreateOnElementNS() { - return createOnElementNS; - } - - /** - * - * - * @generated - */ - public void setCreateOnElementNS(String newCreateOnElementNS) { - String oldCreateOnElementNS = createOnElementNS; - createOnElementNS = newCreateOnElementNS; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS, oldCreateOnElementNS, createOnElementNS)); - } - - /** - * - * - * @generated - */ - public boolean isExtendLifecycle() { - return extendLifecycle; - } - - /** - * - * - * @generated - */ - public void setExtendLifecycle(boolean newExtendLifecycle) { - boolean oldExtendLifecycle = extendLifecycle; - extendLifecycle = newExtendLifecycle; - boolean oldExtendLifecycleESet = extendLifecycleESet; - extendLifecycleESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE, oldExtendLifecycle, extendLifecycle, !oldExtendLifecycleESet)); - } - - /** - * - * - * @generated - */ - public void unsetExtendLifecycle() { - boolean oldExtendLifecycle = extendLifecycle; - boolean oldExtendLifecycleESet = extendLifecycleESet; - extendLifecycle = EXTEND_LIFECYCLE_EDEFAULT; - extendLifecycleESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE, oldExtendLifecycle, EXTEND_LIFECYCLE_EDEFAULT, oldExtendLifecycleESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetExtendLifecycle() { - return extendLifecycleESet; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JavabeanPackage.BINDINGS_TYPE__GROUP: - return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs); - case JavabeanPackage.BINDINGS_TYPE__VALUE: - return ((InternalEList)getValue()).basicRemove(otherEnd, msgs); - case JavabeanPackage.BINDINGS_TYPE__WIRING: - return ((InternalEList)getWiring()).basicRemove(otherEnd, msgs); - case JavabeanPackage.BINDINGS_TYPE__EXPRESSION: - return ((InternalEList)getExpression()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavabeanPackage.BINDINGS_TYPE__GROUP: - if (coreType) return getGroup(); - return ((FeatureMap.Internal)getGroup()).getWrapper(); - case JavabeanPackage.BINDINGS_TYPE__VALUE: - return getValue(); - case JavabeanPackage.BINDINGS_TYPE__WIRING: - return getWiring(); - case JavabeanPackage.BINDINGS_TYPE__EXPRESSION: - return getExpression(); - case JavabeanPackage.BINDINGS_TYPE__BEAN_ID: - return getBeanId(); - case JavabeanPackage.BINDINGS_TYPE__CLASS: - return getClass_(); - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT: - return getCreateOnElement(); - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS: - return getCreateOnElementNS(); - case JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE: - return isExtendLifecycle() ? Boolean.TRUE : Boolean.FALSE; - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavabeanPackage.BINDINGS_TYPE__GROUP: - ((FeatureMap.Internal)getGroup()).set(newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__VALUE: - getValue().clear(); - getValue().addAll((Collection)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__WIRING: - getWiring().clear(); - getWiring().addAll((Collection)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__EXPRESSION: - getExpression().clear(); - getExpression().addAll((Collection)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__BEAN_ID: - setBeanId((String)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__CLASS: - setClass((String)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT: - setCreateOnElement((String)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS: - setCreateOnElementNS((String)newValue); - return; - case JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE: - setExtendLifecycle(((Boolean)newValue).booleanValue()); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JavabeanPackage.BINDINGS_TYPE__GROUP: - getGroup().clear(); - return; - case JavabeanPackage.BINDINGS_TYPE__VALUE: - getValue().clear(); - return; - case JavabeanPackage.BINDINGS_TYPE__WIRING: - getWiring().clear(); - return; - case JavabeanPackage.BINDINGS_TYPE__EXPRESSION: - getExpression().clear(); - return; - case JavabeanPackage.BINDINGS_TYPE__BEAN_ID: - setBeanId(BEAN_ID_EDEFAULT); - return; - case JavabeanPackage.BINDINGS_TYPE__CLASS: - setClass(CLASS_EDEFAULT); - return; - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT: - setCreateOnElement(CREATE_ON_ELEMENT_EDEFAULT); - return; - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS: - setCreateOnElementNS(CREATE_ON_ELEMENT_NS_EDEFAULT); - return; - case JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE: - unsetExtendLifecycle(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavabeanPackage.BINDINGS_TYPE__GROUP: - return group != null && !group.isEmpty(); - case JavabeanPackage.BINDINGS_TYPE__VALUE: - return !getValue().isEmpty(); - case JavabeanPackage.BINDINGS_TYPE__WIRING: - return !getWiring().isEmpty(); - case JavabeanPackage.BINDINGS_TYPE__EXPRESSION: - return !getExpression().isEmpty(); - case JavabeanPackage.BINDINGS_TYPE__BEAN_ID: - return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId); - case JavabeanPackage.BINDINGS_TYPE__CLASS: - return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT: - return CREATE_ON_ELEMENT_EDEFAULT == null ? createOnElement != null : !CREATE_ON_ELEMENT_EDEFAULT.equals(createOnElement); - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS: - return CREATE_ON_ELEMENT_NS_EDEFAULT == null ? createOnElementNS != null : !CREATE_ON_ELEMENT_NS_EDEFAULT.equals(createOnElementNS); - case JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE: - return isSetExtendLifecycle(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (group: "); //$NON-NLS-1$ - result.append(group); - result.append(", beanId: "); //$NON-NLS-1$ - result.append(beanId); - result.append(", class: "); //$NON-NLS-1$ - result.append(class_); - result.append(", createOnElement: "); //$NON-NLS-1$ - result.append(createOnElement); - result.append(", createOnElementNS: "); //$NON-NLS-1$ - result.append(createOnElementNS); - result.append(", extendLifecycle: "); //$NON-NLS-1$ - if (extendLifecycleESet) result.append(extendLifecycle); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //BindingsTypeImpl Index: src/org/jboss/tools/smooks/model/javabean/impl/JavabeanFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/impl/JavabeanFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/impl/JavabeanFactoryImpl.java (working copy) @@ -1,154 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.impl; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.jboss.tools.smooks.model.javabean.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class JavabeanFactoryImpl extends EFactoryImpl implements JavabeanFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static JavabeanFactory init() { - try { - JavabeanFactory theJavabeanFactory = (JavabeanFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"); //$NON-NLS-1$ - if (theJavabeanFactory != null) { - return theJavabeanFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new JavabeanFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public JavabeanFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JavabeanPackage.BINDINGS_TYPE: return createBindingsType(); - case JavabeanPackage.DECODE_PARAM_TYPE: return createDecodeParamType(); - case JavabeanPackage.DOCUMENT_ROOT: return createDocumentRoot(); - case JavabeanPackage.EXPRESSION_TYPE: return createExpressionType(); - case JavabeanPackage.VALUE_TYPE: return createValueType(); - case JavabeanPackage.WIRING_TYPE: return createWiringType(); - default: - throw new IllegalArgumentException(Messages.JavabeanFactoryImpl_Error_Class_not_valid + eClass.getName() + Messages.JavabeanFactoryImpl_Error_Not_Valid_Identifier); - } - } - - /** - * - * - * @generated - */ - public BindingsType createBindingsType() { - BindingsTypeImpl bindingsType = new BindingsTypeImpl(); - return bindingsType; - } - - /** - * - * - * @generated - */ - public DecodeParamType createDecodeParamType() { - DecodeParamTypeImpl decodeParamType = new DecodeParamTypeImpl(); - return decodeParamType; - } - - /** - * - * - * @generated - */ - public DocumentRoot createDocumentRoot() { - DocumentRootImpl documentRoot = new DocumentRootImpl(); - return documentRoot; - } - - /** - * - * - * @generated - */ - public ExpressionType createExpressionType() { - ExpressionTypeImpl expressionType = new ExpressionTypeImpl(); - return expressionType; - } - - /** - * - * - * @generated - */ - public ValueType createValueType() { - ValueTypeImpl valueType = new ValueTypeImpl(); - return valueType; - } - - /** - * - * - * @generated - */ - public WiringType createWiringType() { - WiringTypeImpl wiringType = new WiringTypeImpl(); - return wiringType; - } - - /** - * - * - * @generated - */ - public JavabeanPackage getJavabeanPackage() { - return (JavabeanPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static JavabeanPackage getPackage() { - return JavabeanPackage.eINSTANCE; - } - -} //JavabeanFactoryImpl Index: src/org/jboss/tools/smooks/model/javabean/ValueType.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/ValueType.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/ValueType.java (working copy) @@ -1,296 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - - -import org.eclipse.emf.common.util.EList; -import org.jboss.tools.smooks.model.common.AbstractAnyType; - -/** - * - * A representation of the model object 'Value Type'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getDecodeParam Decode Param}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getData Data}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getDataNS Data NS}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getDecoder Decoder}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getDefault Default}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getProperty Property}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ValueType#getSetterMethod Setter Method}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType() - * @model extendedMetaData="name='value_._type' kind='elementOnly'" - * @generated - */ -public interface ValueType extends AbstractAnyType { - /** - * Returns the value of the 'Decode Param' containment reference list. - * The list contents are of type {@link org.jboss.tools.smooks.model.javabean.DecodeParamType}. - * - * - * - * - * Data Decode Parameter. - *

- * Some decoders may require parameters in order to complete the decoding process e.g. the - * DateDecoder. - * These parameters can be specified by adding <decodeParam> sub-elements to the <value> - * binding element. Review the Decoder's Javadoc for details of the custom parameters. - *

- * Example: - *

-	 * <jb:value property="date" data="header/date" decoder="Date">
-	 *     <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
-	 *     <jb:decodeParam name="locale-language">en</jb:decodeParam>
-	 *     <jb:decodeParam name="locale-country">IE</jb:decodeParam>
-	 * </jb:value>
-	 * 
- * - * - * @return the value of the 'Decode Param' containment reference list. - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_DecodeParam() - * @model containment="true" - * extendedMetaData="kind='element' name='decodeParam' namespace='##targetNamespace'" - * @generated - */ - EList getDecodeParam(); - - /** - * Returns the value of the 'Data' attribute. - * - * - * - * - * The Source data event stream element event defining the data to be bound. - *

- * Think of this as the element path (in the Source data) to the data. - *

Examples

- *
    - *
  • - * Element Text Data: - * "order/orderid" - *
  • - *
  • - * Element Attribute Data: - * "order/header/@date" - *
  • - *
- * - * - * @return the value of the 'Data' attribute. - * @see #setData(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_Data() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='data'" - * @generated - */ - String getData(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ValueType#getData Data}' attribute. - * - * - * @param value the new value of the 'Data' attribute. - * @see #getData() - * @generated - */ - void setData(String value); - - /** - * Returns the value of the 'Data NS' attribute. - * - * - * - * The namespace for the "data" selector (see "data" attribute). - * - * - * @return the value of the 'Data NS' attribute. - * @see #setDataNS(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_DataNS() - * @model dataType="org.eclipse.emf.ecore.xml.type.AnyURI" - * extendedMetaData="kind='attribute' name='dataNS'" - * @generated - */ - String getDataNS(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDataNS Data NS}' attribute. - * - * - * @param value the new value of the 'Data NS' attribute. - * @see #getDataNS() - * @generated - */ - void setDataNS(String value); - - /** - * Returns the value of the 'Decoder' attribute. - * - * - * - * - * Data Decoder. - *

- * This attribute specifies the - * DataDecoder - * to be used to decode the data (see "data" attribute) before setting it on the target bean - * property(see "property" attribute). - *

- * Smooks contains decoders for all of the main data types (Long, Integer etc). In these cases, - * just specify the decoder as being "Long", "Integer", "Date" etc i.e. no need to specify the fully qualified - * DataDecoder - * class name. The fully qualified class name is only required for custom - * DataDecoder - * implementations. - * - *

Primitive Types

- * Smooks does not define special decoders for any of the primitive types. To decode a - * primitive property type, just specify the Object equivalent decoder e.g. specify "Integer" for "int", - * "Double" for "double" etc etc. - * - *

Decode Parameters

- * Some decoders may require parameters in order to complete the decoding process e.g. the - * DateDecoder. - * These parameters can be specified by adding <decodeParam> sub-elements to the <value> - * binding element. Review the Decoder's Javadoc for details of the custom parameters. - *

- * Example: - *

-	 *     <jb:value property="date" data="header/date" decoder="Date">
-	 *         <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
-	 *         <jb:decodeParam name="locale-language">en</jb:decodeParam>
-	 *         <jb:decodeParam name="locale-country">IE</jb:decodeParam>
-	 *     </jb:value>
-	 * 
- * - *

Custom Data Decoding

- * For custom data decoding, implement the - * - * DataDecoder - * - * interface and specify the decoder using the fully qualified class name of the new - * implementation. - * - * - * @return the value of the 'Decoder' attribute. - * @see #setDecoder(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_Decoder() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='decoder'" - * @generated - */ - String getDecoder(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDecoder Decoder}' attribute. - * - * - * @param value the new value of the 'Decoder' attribute. - * @see #getDecoder() - * @generated - */ - void setDecoder(String value); - - /** - * Returns the value of the 'Default' attribute. - * - * - * - * The default data value, where a null/empty data String is returned - * for the data element. - * - * - * @return the value of the 'Default' attribute. - * @see #setDefault(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_Default() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='default'" - * @generated - */ - String getDefault(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ValueType#getDefault Default}' attribute. - * - * - * @param value the new value of the 'Default' attribute. - * @see #getDefault() - * @generated - */ - void setDefault(String value); - - /** - * Returns the value of the 'Property' attribute. - * - * - * - * The class property to which the decoded data is to be bound. - *

- * The property attribute does not need to be specified when the "class" type on the parent "bindings" element - * is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the - * element name (from the element specified in the "data" attribute) is used. - * - * - * @return the value of the 'Property' attribute. - * @see #setProperty(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_Property() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='property'" - * @generated - */ - String getProperty(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ValueType#getProperty Property}' attribute. - * - * - * @param value the new value of the 'Property' attribute. - * @see #getProperty() - * @generated - */ - void setProperty(String value); - - /** - * Returns the value of the 'Setter Method' attribute. - * - * - * - * - * The class method which is called to bind the data - * to the object. Not needed when binding to a Collection. - *

- * The setterMethod attribute does not need to be specified when the "class" type on the parent "bindings" element - * is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the - * element name (from the element specified in the "data" attribute) is used. - * - * - * @return the value of the 'Setter Method' attribute. - * @see #setSetterMethod(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getValueType_SetterMethod() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='setterMethod'" - * @generated - */ - String getSetterMethod(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ValueType#getSetterMethod Setter Method}' attribute. - * - * - * @param value the new value of the 'Setter Method' attribute. - * @see #getSetterMethod() - * @generated - */ - void setSetterMethod(String value); - -} // ValueType Index: src/org/jboss/tools/smooks/model/javabean/ExpressionType.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/ExpressionType.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/ExpressionType.java (working copy) @@ -1,188 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - -import org.jboss.tools.smooks.model.common.AbstractAnyType; - -/** - * - * A representation of the model object 'Expression Type'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.javabean.ExpressionType#getValue Value}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElement Exec On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElementNS Exec On Element NS}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ExpressionType#getProperty Property}
  • - *
  • {@link org.jboss.tools.smooks.model.javabean.ExpressionType#getSetterMethod Setter Method}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getExpressionType() - * @model extendedMetaData="name='expression_._type' kind='simple'" - * @generated - */ -public interface ExpressionType extends AbstractAnyType { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value' attribute. - * @see #setValue(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getExpressionType_Value() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="name=':0' kind='simple'" - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getValue Value}' attribute. - * - * - * @param value the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - - /** - * Returns the value of the 'Exec On Element' attribute. - * - * - * - * - * The Source data event stream element event to use to control the execution of the expression - * and binding of the result. - *

- * Think of this as the element path (in the Source data) used to control execution of the - * expression. - *

Example

- * If this attribute value is set to "order/orderItem", the expression will be executed (and - * the result bound to the target property) when an "end" element event ("visitAfter") - * for the element "orderItem" (with a parent element of "order") is encountered in the - * Source data event stream. - * - * - * @return the value of the 'Exec On Element' attribute. - * @see #setExecOnElement(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getExpressionType_ExecOnElement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='execOnElement'" - * @generated - */ - String getExecOnElement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElement Exec On Element}' attribute. - * - * - * @param value the new value of the 'Exec On Element' attribute. - * @see #getExecOnElement() - * @generated - */ - void setExecOnElement(String value); - - /** - * Returns the value of the 'Exec On Element NS' attribute. - * - * - * - * Namespace control for the "execOnElement" attribute. - * - * - * @return the value of the 'Exec On Element NS' attribute. - * @see #setExecOnElementNS(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getExpressionType_ExecOnElementNS() - * @model dataType="org.eclipse.emf.ecore.xml.type.AnyURI" - * extendedMetaData="kind='attribute' name='execOnElementNS'" - * @generated - */ - String getExecOnElementNS(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getExecOnElementNS Exec On Element NS}' attribute. - * - * - * @param value the new value of the 'Exec On Element NS' attribute. - * @see #getExecOnElementNS() - * @generated - */ - void setExecOnElementNS(String value); - - /** - * Returns the value of the 'Property' attribute. - * - * - * - * The class property to which the expression evaluation result - * is to be bound. Not needed when binding to a Collection. - *

- * The property attribute does not need to be specified when the "class" type on the parent "bindings" element - * is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the - * element name (from the element specified in the "data" attribute) is used. - * - * - * @return the value of the 'Property' attribute. - * @see #setProperty(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getExpressionType_Property() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='property'" - * @generated - */ - String getProperty(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getProperty Property}' attribute. - * - * - * @param value the new value of the 'Property' attribute. - * @see #getProperty() - * @generated - */ - void setProperty(String value); - - /** - * Returns the value of the 'Setter Method' attribute. - * - * - * - * - * The class method which is called to bind the data - * to the object. Not needed when binding to a Collection. - *

- * The setterMethod attribute does not need to be specified when the "class" type on the parent "bindings" element - * is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the - * element name (from the element specified in the "data" attribute) is used. - * - * - * @return the value of the 'Setter Method' attribute. - * @see #setSetterMethod(String) - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage#getExpressionType_SetterMethod() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='setterMethod'" - * @generated - */ - String getSetterMethod(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.javabean.ExpressionType#getSetterMethod Setter Method}' attribute. - * - * - * @param value the new value of the 'Setter Method' attribute. - * @see #getSetterMethod() - * @generated - */ - void setSetterMethod(String value); - -} // ExpressionType Index: src/org/jboss/tools/smooks/model/javabean/JavabeanFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/JavabeanFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/JavabeanFactory.java (working copy) @@ -1,91 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.jboss.tools.smooks.model.javabean.JavabeanPackage - * @generated - */ -public interface JavabeanFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - JavabeanFactory eINSTANCE = org.jboss.tools.smooks.model.javabean.impl.JavabeanFactoryImpl.init(); - - /** - * Returns a new object of class 'Bindings Type'. - * - * - * @return a new object of class 'Bindings Type'. - * @generated - */ - BindingsType createBindingsType(); - - /** - * Returns a new object of class 'Decode Param Type'. - * - * - * @return a new object of class 'Decode Param Type'. - * @generated - */ - DecodeParamType createDecodeParamType(); - - /** - * Returns a new object of class 'Document Root'. - * - * - * @return a new object of class 'Document Root'. - * @generated - */ - DocumentRoot createDocumentRoot(); - - /** - * Returns a new object of class 'Expression Type'. - * - * - * @return a new object of class 'Expression Type'. - * @generated - */ - ExpressionType createExpressionType(); - - /** - * Returns a new object of class 'Value Type'. - * - * - * @return a new object of class 'Value Type'. - * @generated - */ - ValueType createValueType(); - - /** - * Returns a new object of class 'Wiring Type'. - * - * - * @return a new object of class 'Wiring Type'. - * @generated - */ - WiringType createWiringType(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - JavabeanPackage getJavabeanPackage(); - -} //JavabeanFactory Index: src/org/jboss/tools/smooks/model/javabean/provider/DocumentRootItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/DocumentRootItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/DocumentRootItemProvider.java (working copy) @@ -1,195 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.javabean.DocumentRoot; -import org.jboss.tools.smooks.model.javabean.JavabeanFactory; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; - -/** - * This is the item provider adapter for a {@link SmooksGraphExtDocumentRoot.DocumentRoot} object. - * - * - * @generated - */ -public class DocumentRootItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public DocumentRootItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS); - childrenFeatures.add(JavabeanPackage.Literals.DOCUMENT_ROOT__DECODE_PARAM); - childrenFeatures.add(JavabeanPackage.Literals.DOCUMENT_ROOT__EXPRESSION); - childrenFeatures.add(JavabeanPackage.Literals.DOCUMENT_ROOT__VALUE); - childrenFeatures.add(JavabeanPackage.Literals.DOCUMENT_ROOT__WIRING); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns DocumentRoot.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/DocumentRoot")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_DocumentRoot_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(DocumentRoot.class)) { - case JavabeanPackage.DOCUMENT_ROOT__BINDINGS: - case JavabeanPackage.DOCUMENT_ROOT__DECODE_PARAM: - case JavabeanPackage.DOCUMENT_ROOT__EXPRESSION: - case JavabeanPackage.DOCUMENT_ROOT__VALUE: - case JavabeanPackage.DOCUMENT_ROOT__WIRING: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS, - JavabeanFactory.eINSTANCE.createBindingsType())); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.DOCUMENT_ROOT__DECODE_PARAM, - JavabeanFactory.eINSTANCE.createDecodeParamType())); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.DOCUMENT_ROOT__EXPRESSION, - JavabeanFactory.eINSTANCE.createExpressionType())); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.DOCUMENT_ROOT__VALUE, - JavabeanFactory.eINSTANCE.createValueType())); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.DOCUMENT_ROOT__WIRING, - JavabeanFactory.eINSTANCE.createWiringType())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Javabean1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/ValueTypeItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/ValueTypeItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/ValueTypeItemProvider.java (working copy) @@ -1,319 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider; -import org.jboss.tools.smooks.model.javabean.JavabeanFactory; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.ValueType; - - -/** - * This is the item provider adapter for a {@link javabean.ValueType} object. - * - * - * @generated - */ -public class ValueTypeItemProvider - extends AbstractAnyTypeItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ValueTypeItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addDataPropertyDescriptor(object); - addDataNSPropertyDescriptor(object); - addDecoderPropertyDescriptor(object); - addDefaultPropertyDescriptor(object); - addPropertyPropertyDescriptor(object); - addSetterMethodPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Data feature. - * - * - * @generated - */ - protected void addDataPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ValueType_data_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ValueType_data_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.VALUE_TYPE__DATA, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Data NS feature. - * - * - * @generated - */ - protected void addDataNSPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ValueType_dataNS_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ValueType_dataNS_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.VALUE_TYPE__DATA_NS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Decoder feature. - * - * - * @generated - */ - protected void addDecoderPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ValueType_decoder_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ValueType_decoder_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.VALUE_TYPE__DECODER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Default feature. - * - * - * @generated - */ - protected void addDefaultPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ValueType_default_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ValueType_default_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.VALUE_TYPE__DEFAULT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Property feature. - * - * - * @generated - */ - protected void addPropertyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ValueType_property_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ValueType_property_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.VALUE_TYPE__PROPERTY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Setter Method feature. - * - * - * @generated - */ - protected void addSetterMethodPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ValueType_setterMethod_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ValueType_setterMethod_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.VALUE_TYPE__SETTER_METHOD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JavabeanPackage.Literals.VALUE_TYPE__DECODE_PARAM); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ValueType.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/value_binding")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ValueType)object).getProperty(); - return label == null || label.length() == 0 ? - getString("_UI_ValueType_type") : //$NON-NLS-1$ - getString("_UI_ValueType_type") + " (" + label + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ValueType.class)) { - case JavabeanPackage.VALUE_TYPE__DATA: - case JavabeanPackage.VALUE_TYPE__DATA_NS: - case JavabeanPackage.VALUE_TYPE__DECODER: - case JavabeanPackage.VALUE_TYPE__DEFAULT: - case JavabeanPackage.VALUE_TYPE__PROPERTY: - case JavabeanPackage.VALUE_TYPE__SETTER_METHOD: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case JavabeanPackage.VALUE_TYPE__DECODE_PARAM: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.VALUE_TYPE__DECODE_PARAM, - JavabeanFactory.eINSTANCE.createDecodeParamType())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Javabean1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/JavabeanItemProviderAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/JavabeanItemProviderAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/JavabeanItemProviderAdapterFactory.java (working copy) @@ -1,321 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.jboss.tools.smooks.model.javabean.util.JavabeanAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class JavabeanItemProviderAdapterFactory extends JavabeanAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public JavabeanItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link javabean.BindingsType} instances. - * - * - * @generated - */ - protected BindingsTypeItemProvider bindingsTypeItemProvider; - - /** - * This creates an adapter for a {@link javabean.BindingsType}. - * - * - * @generated - */ - @Override - public Adapter createBindingsTypeAdapter() { - if (bindingsTypeItemProvider == null) { - bindingsTypeItemProvider = new BindingsTypeItemProvider(this); - } - - return bindingsTypeItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link javabean.DecodeParamType} instances. - * - * - * @generated - */ - protected DecodeParamTypeItemProvider decodeParamTypeItemProvider; - - /** - * This creates an adapter for a {@link javabean.DecodeParamType}. - * - * - * @generated - */ - @Override - public Adapter createDecodeParamTypeAdapter() { - if (decodeParamTypeItemProvider == null) { - decodeParamTypeItemProvider = new DecodeParamTypeItemProvider(this); - } - - return decodeParamTypeItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link javabean.SmooksGraphExtDocumentRoot} instances. - * - * - * @generated - */ - protected DocumentRootItemProvider documentRootItemProvider; - - /** - * This creates an adapter for a {@link javabean.SmooksGraphExtDocumentRoot}. - * - * - * @generated - */ - @Override - public Adapter createDocumentRootAdapter() { - if (documentRootItemProvider == null) { - documentRootItemProvider = new DocumentRootItemProvider(this); - } - - return documentRootItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link javabean.ExpressionType} instances. - * - * - * @generated - */ - protected ExpressionTypeItemProvider expressionTypeItemProvider; - - /** - * This creates an adapter for a {@link javabean.ExpressionType}. - * - * - * @generated - */ - @Override - public Adapter createExpressionTypeAdapter() { - if (expressionTypeItemProvider == null) { - expressionTypeItemProvider = new ExpressionTypeItemProvider(this); - } - - return expressionTypeItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link javabean.ValueType} instances. - * - * - * @generated - */ - protected ValueTypeItemProvider valueTypeItemProvider; - - /** - * This creates an adapter for a {@link javabean.ValueType}. - * - * - * @generated - */ - @Override - public Adapter createValueTypeAdapter() { - if (valueTypeItemProvider == null) { - valueTypeItemProvider = new ValueTypeItemProvider(this); - } - - return valueTypeItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link javabean.WiringType} instances. - * - * - * @generated - */ - protected WiringTypeItemProvider wiringTypeItemProvider; - - /** - * This creates an adapter for a {@link javabean.WiringType}. - * - * - * @generated - */ - @Override - public Adapter createWiringTypeAdapter() { - if (wiringTypeItemProvider == null) { - wiringTypeItemProvider = new WiringTypeItemProvider(this); - } - - return wiringTypeItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (bindingsTypeItemProvider != null) bindingsTypeItemProvider.dispose(); - if (decodeParamTypeItemProvider != null) decodeParamTypeItemProvider.dispose(); - if (documentRootItemProvider != null) documentRootItemProvider.dispose(); - if (expressionTypeItemProvider != null) expressionTypeItemProvider.dispose(); - if (valueTypeItemProvider != null) valueTypeItemProvider.dispose(); - if (wiringTypeItemProvider != null) wiringTypeItemProvider.dispose(); - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/DecodeParamTypeItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/DecodeParamTypeItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/DecodeParamTypeItemProvider.java (working copy) @@ -1,183 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider; -import org.jboss.tools.smooks.model.javabean.DecodeParamType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; - - -/** - * This is the item provider adapter for a {@link javabean.DecodeParamType} object. - * - * - * @generated - */ -public class DecodeParamTypeItemProvider - extends AbstractAnyTypeItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public DecodeParamTypeItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addValuePropertyDescriptor(object); - addNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Value feature. - * - * - * @generated - */ - protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DecodeParamType_value_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_DecodeParamType_value_feature", "_UI_DecodeParamType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.DECODE_PARAM_TYPE__VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DecodeParamType_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_DecodeParamType_name_feature", "_UI_DecodeParamType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.DECODE_PARAM_TYPE__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns DecodeParamType.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/DecodeParamType")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((DecodeParamType)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_DecodeParamType_type") : //$NON-NLS-1$ - getString("_UI_DecodeParamType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(DecodeParamType.class)) { - case JavabeanPackage.DECODE_PARAM_TYPE__VALUE: - case JavabeanPackage.DECODE_PARAM_TYPE__NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Javabean1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/BindingsTypeItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/BindingsTypeItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/BindingsTypeItemProvider.java (working copy) @@ -1,312 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.util.FeatureMapUtil; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.javabean.BindingsType; -import org.jboss.tools.smooks.model.javabean.JavabeanFactory; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider; - - -/** - * This is the item provider adapter for a {@link javabean.BindingsType} object. - * - * - * @generated - */ -public class BindingsTypeItemProvider - extends ElementVisitorItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public BindingsTypeItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addBeanIdPropertyDescriptor(object); - addClassPropertyDescriptor(object); - addCreateOnElementPropertyDescriptor(object); - addCreateOnElementNSPropertyDescriptor(object); - addExtendLifecyclePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Bean Id feature. - * - * - * @generated - */ - protected void addBeanIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingsType_beanId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingsType_beanId_feature", "_UI_BindingsType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.BINDINGS_TYPE__BEAN_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Class feature. - * - * - * @generated - */ - protected void addClassPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingsType_class_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingsType_class_feature", "_UI_BindingsType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.BINDINGS_TYPE__CLASS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Create On Element feature. - * - * - * @generated - */ - protected void addCreateOnElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingsType_createOnElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingsType_createOnElement_feature", "_UI_BindingsType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.BINDINGS_TYPE__CREATE_ON_ELEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Create On Element NS feature. - * - * - * @generated - */ - protected void addCreateOnElementNSPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingsType_createOnElementNS_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingsType_createOnElementNS_feature", "_UI_BindingsType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Extend Lifecycle feature. - * - * - * @generated - */ - protected void addExtendLifecyclePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingsType_extendLifecycle_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingsType_extendLifecycle_feature", "_UI_BindingsType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.BINDINGS_TYPE__EXTEND_LIFECYCLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JavabeanPackage.Literals.BINDINGS_TYPE__GROUP); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns BindingsType.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/java_bean.png")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((BindingsType)object).getBeanId(); - return label == null || label.length() == 0 ? - getString("_UI_BindingsType_type") : //$NON-NLS-1$ - getString("_UI_BindingsType_type") + " (" + label+")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(BindingsType.class)) { - case JavabeanPackage.BINDINGS_TYPE__BEAN_ID: - case JavabeanPackage.BINDINGS_TYPE__CLASS: - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT: - case JavabeanPackage.BINDINGS_TYPE__CREATE_ON_ELEMENT_NS: - case JavabeanPackage.BINDINGS_TYPE__EXTEND_LIFECYCLE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case JavabeanPackage.BINDINGS_TYPE__GROUP: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.BINDINGS_TYPE__GROUP, - FeatureMapUtil.createEntry - (JavabeanPackage.Literals.BINDINGS_TYPE__VALUE, - JavabeanFactory.eINSTANCE.createValueType()))); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.BINDINGS_TYPE__GROUP, - FeatureMapUtil.createEntry - (JavabeanPackage.Literals.BINDINGS_TYPE__WIRING, - JavabeanFactory.eINSTANCE.createWiringType()))); - - newChildDescriptors.add - (createChildParameter - (JavabeanPackage.Literals.BINDINGS_TYPE__GROUP, - FeatureMapUtil.createEntry - (JavabeanPackage.Literals.BINDINGS_TYPE__EXPRESSION, - JavabeanFactory.eINSTANCE.createExpressionType()))); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Javabean1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/WiringTypeItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/WiringTypeItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/WiringTypeItemProvider.java (working copy) @@ -1,255 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; -import org.jboss.tools.smooks.model.javabean.WiringType; - - -/** - * This is the item provider adapter for a {@link javabean.WiringType} object. - * - * - * @generated - */ -public class WiringTypeItemProvider - extends AbstractAnyTypeItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public WiringTypeItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addBeanIdRefPropertyDescriptor(object); - addPropertyPropertyDescriptor(object); - addSetterMethodPropertyDescriptor(object); - addWireOnElementPropertyDescriptor(object); - addWireOnElementNSPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Bean Id Ref feature. - * - * - * @generated - */ - protected void addBeanIdRefPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WiringType_beanIdRef_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_WiringType_beanIdRef_feature", "_UI_WiringType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.WIRING_TYPE__BEAN_ID_REF, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Property feature. - * - * - * @generated - */ - protected void addPropertyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WiringType_property_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_WiringType_property_feature", "_UI_WiringType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.WIRING_TYPE__PROPERTY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Setter Method feature. - * - * - * @generated - */ - protected void addSetterMethodPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WiringType_setterMethod_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_WiringType_setterMethod_feature", "_UI_WiringType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.WIRING_TYPE__SETTER_METHOD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Wire On Element feature. - * - * - * @generated - */ - protected void addWireOnElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WiringType_wireOnElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_WiringType_wireOnElement_feature", "_UI_WiringType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.WIRING_TYPE__WIRE_ON_ELEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Wire On Element NS feature. - * - * - * @generated - */ - protected void addWireOnElementNSPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WiringType_wireOnElementNS_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_WiringType_wireOnElementNS_feature", "_UI_WiringType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.WIRING_TYPE__WIRE_ON_ELEMENT_NS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns WiringType.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/wiring_binding")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((WiringType)object).getProperty(); - return label == null || label.length() == 0 ? - getString("_UI_WiringType_type") : //$NON-NLS-1$ - getString("_UI_WiringType_type") + " (" + label+")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(WiringType.class)) { - case JavabeanPackage.WIRING_TYPE__BEAN_ID_REF: - case JavabeanPackage.WIRING_TYPE__PROPERTY: - case JavabeanPackage.WIRING_TYPE__SETTER_METHOD: - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT: - case JavabeanPackage.WIRING_TYPE__WIRE_ON_ELEMENT_NS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Javabean1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/ExpressionTypeItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/ExpressionTypeItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/ExpressionTypeItemProvider.java (working copy) @@ -1,255 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider; -import org.jboss.tools.smooks.model.javabean.ExpressionType; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; - - -/** - * This is the item provider adapter for a {@link javabean.ExpressionType} object. - * - * - * @generated - */ -public class ExpressionTypeItemProvider - extends AbstractAnyTypeItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ExpressionTypeItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addValuePropertyDescriptor(object); - addExecOnElementPropertyDescriptor(object); - addExecOnElementNSPropertyDescriptor(object); - addPropertyPropertyDescriptor(object); - addSetterMethodPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Value feature. - * - * - * @generated - */ - protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ExpressionType_value_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ExpressionType_value_feature", "_UI_ExpressionType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.EXPRESSION_TYPE__VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Exec On Element feature. - * - * - * @generated - */ - protected void addExecOnElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ExpressionType_execOnElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ExpressionType_execOnElement_feature", "_UI_ExpressionType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Exec On Element NS feature. - * - * - * @generated - */ - protected void addExecOnElementNSPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ExpressionType_execOnElementNS_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ExpressionType_execOnElementNS_feature", "_UI_ExpressionType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Property feature. - * - * - * @generated - */ - protected void addPropertyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ExpressionType_property_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ExpressionType_property_feature", "_UI_ExpressionType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.EXPRESSION_TYPE__PROPERTY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Setter Method feature. - * - * - * @generated - */ - protected void addSetterMethodPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ExpressionType_setterMethod_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ExpressionType_setterMethod_feature", "_UI_ExpressionType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JavabeanPackage.Literals.EXPRESSION_TYPE__SETTER_METHOD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns ExpressionType.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/expression_binding")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ExpressionType)object).getProperty(); - return label == null || label.length() == 0 ? - getString("_UI_ExpressionType_type") : //$NON-NLS-1$ - getString("_UI_ExpressionType_type") + " (" + label+")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ExpressionType.class)) { - case JavabeanPackage.EXPRESSION_TYPE__VALUE: - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT: - case JavabeanPackage.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS: - case JavabeanPackage.EXPRESSION_TYPE__PROPERTY: - case JavabeanPackage.EXPRESSION_TYPE__SETTER_METHOD: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Javabean1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/javabean/provider/Javabean1EditPlugin.java =================================================================== --- src/org/jboss/tools/smooks/model/javabean/provider/Javabean1EditPlugin.java (revision 20973) +++ src/org/jboss/tools/smooks/model/javabean/provider/Javabean1EditPlugin.java (working copy) @@ -1,93 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.javabean.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the Javabean-1 edit plugin. - * - * - * @generated - */ -public final class Javabean1EditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final Javabean1EditPlugin INSTANCE = new Javabean1EditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public Javabean1EditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} Index: src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java (working copy) @@ -46,8 +46,6 @@ import org.jboss.tools.smooks.model.iorouting.IoroutingPackage; import org.jboss.tools.smooks.model.javabean12.Javabean12Factory; import org.jboss.tools.smooks.model.javabean12.Javabean12Package; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Factory; import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Package; import org.jboss.tools.smooks.model.json12.Json12Factory; @@ -368,12 +366,6 @@ .createEntry(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER, IoroutingFactory.eINSTANCE .createIORouter()))); - // for JMS routing - newChildDescriptors.add(createChildParameter( - SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil - .createEntry(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, JmsroutingFactory.eINSTANCE - .createJmsRouter()))); - // for File routing newChildDescriptors.add(createChildParameter( SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil Index: src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java (working copy) @@ -1,207 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'High Water Mark'. - * - * - * - * - * The configuration for the max number of messages that can be sitting in the - * JMS Destination at any any time. - * - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark Mark}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency Poll Frequency}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout Timeout}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getHighWaterMark() - * @model extendedMetaData="name='highWaterMark' kind='empty'" - * @generated - */ -public interface HighWaterMark extends EObject { - /** - * Returns the value of the 'Mark' attribute. - * The default value is "200". - * - * - * - * - * The max number of messages that can be sitting in the JMS Destination at any any time. Default is 200. - * - * - * @return the value of the 'Mark' attribute. - * @see #isSetMark() - * @see #unsetMark() - * @see #setMark(int) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getHighWaterMark_Mark() - * @model default="200" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" - * extendedMetaData="kind='attribute' name='mark'" - * @generated - */ - int getMark(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark Mark}' attribute. - * - * - * @param value the new value of the 'Mark' attribute. - * @see #isSetMark() - * @see #unsetMark() - * @see #getMark() - * @generated - */ - void setMark(int value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark Mark}' attribute. - * - * - * @see #isSetMark() - * @see #getMark() - * @see #setMark(int) - * @generated - */ - void unsetMark(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark Mark}' attribute is set. - * - * - * @return whether the value of the 'Mark' attribute is set. - * @see #unsetMark() - * @see #getMark() - * @see #setMark(int) - * @generated - */ - boolean isSetMark(); - - /** - * Returns the value of the 'Poll Frequency' attribute. - * The default value is "1000". - * - * - * - * - * The number of milliseconds to wait between checks on the High Water Mark, while waiting for it to drop. - * Default is 1000 ms. - * - * - * @return the value of the 'Poll Frequency' attribute. - * @see #isSetPollFrequency() - * @see #unsetPollFrequency() - * @see #setPollFrequency(int) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getHighWaterMark_PollFrequency() - * @model default="1000" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" - * extendedMetaData="kind='attribute' name='pollFrequency'" - * @generated - */ - int getPollFrequency(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency Poll Frequency}' attribute. - * - * - * @param value the new value of the 'Poll Frequency' attribute. - * @see #isSetPollFrequency() - * @see #unsetPollFrequency() - * @see #getPollFrequency() - * @generated - */ - void setPollFrequency(int value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency Poll Frequency}' attribute. - * - * - * @see #isSetPollFrequency() - * @see #getPollFrequency() - * @see #setPollFrequency(int) - * @generated - */ - void unsetPollFrequency(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency Poll Frequency}' attribute is set. - * - * - * @return whether the value of the 'Poll Frequency' attribute is set. - * @see #unsetPollFrequency() - * @see #getPollFrequency() - * @see #setPollFrequency(int) - * @generated - */ - boolean isSetPollFrequency(); - - /** - * Returns the value of the 'Timeout' attribute. - * The default value is "60000". - * - * - * - * - * The number of milliseconds to wait for the system to process JMS Messages from the JMS destination so that the - * number of JMS Messages drops below the highWaterMark. Default is 60000 ms. - * - * - * @return the value of the 'Timeout' attribute. - * @see #isSetTimeout() - * @see #unsetTimeout() - * @see #setTimeout(int) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getHighWaterMark_Timeout() - * @model default="60000" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" - * extendedMetaData="kind='attribute' name='timeout'" - * @generated - */ - int getTimeout(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout Timeout}' attribute. - * - * - * @param value the new value of the 'Timeout' attribute. - * @see #isSetTimeout() - * @see #unsetTimeout() - * @see #getTimeout() - * @generated - */ - void setTimeout(int value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout Timeout}' attribute. - * - * - * @see #isSetTimeout() - * @see #getTimeout() - * @see #setTimeout(int) - * @generated - */ - void unsetTimeout(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout Timeout}' attribute is set. - * - * - * @return whether the value of the 'Timeout' attribute is set. - * @see #unsetTimeout() - * @see #getTimeout() - * @see #setTimeout(int) - * @generated - */ - boolean isSetTimeout(); - -} // HighWaterMark Index: src/org/jboss/tools/smooks/model/jmsrouting/Connection.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/Connection.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/Connection.java (working copy) @@ -1,148 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Connection'. - * - * - * - * - * The JMS connection configuration. - * - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory Factory}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential Security Credential}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal Security Principal}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection() - * @model extendedMetaData="name='connection' kind='empty'" - * @generated - */ -public interface Connection extends EObject { - /** - * Returns the value of the 'Factory' attribute. - * The default value is "ConnectionFactory". - * - * - * - * - * The ConnectionFactory to look up - * - * - * @return the value of the 'Factory' attribute. - * @see #isSetFactory() - * @see #unsetFactory() - * @see #setFactory(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection_Factory() - * @model default="ConnectionFactory" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='factory'" - * @generated - */ - String getFactory(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory Factory}' attribute. - * - * - * @param value the new value of the 'Factory' attribute. - * @see #isSetFactory() - * @see #unsetFactory() - * @see #getFactory() - * @generated - */ - void setFactory(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory Factory}' attribute. - * - * - * @see #isSetFactory() - * @see #getFactory() - * @see #setFactory(String) - * @generated - */ - void unsetFactory(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory Factory}' attribute is set. - * - * - * @return whether the value of the 'Factory' attribute is set. - * @see #unsetFactory() - * @see #getFactory() - * @see #setFactory(String) - * @generated - */ - boolean isSetFactory(); - - /** - * Returns the value of the 'Security Credential' attribute. - * - * - * - * - * The security credentials to use when creating the JMS connection. - * - * - * @return the value of the 'Security Credential' attribute. - * @see #setSecurityCredential(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection_SecurityCredential() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='securityCredential'" - * @generated - */ - String getSecurityCredential(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential Security Credential}' attribute. - * - * - * @param value the new value of the 'Security Credential' attribute. - * @see #getSecurityCredential() - * @generated - */ - void setSecurityCredential(String value); - - /** - * Returns the value of the 'Security Principal' attribute. - * - * - * - * - * The security principal use when creating the JMS connection. - * - * - * @return the value of the 'Security Principal' attribute. - * @see #setSecurityPrincipal(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection_SecurityPrincipal() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='securityPrincipal'" - * @generated - */ - String getSecurityPrincipal(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal Security Principal}' attribute. - * - * - * @param value the new value of the 'Security Principal' attribute. - * @see #getSecurityPrincipal() - * @generated - */ - void setSecurityPrincipal(String value); - -} // Connection Index: src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java (working copy) @@ -1,1437 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * Smooks JMS Routing Configuration - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory - * @model kind="package" - * @generated - */ -public interface JmsroutingPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "jmsrouting"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "jms"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - JmsroutingPackage eINSTANCE = org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl.init(); - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl Connection}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getConnection() - * @generated - */ - int CONNECTION = 0; - - /** - * The feature id for the 'Factory' attribute. - * - * - * @generated - * @ordered - */ - int CONNECTION__FACTORY = 0; - - /** - * The feature id for the 'Security Credential' attribute. - * - * - * @generated - * @ordered - */ - int CONNECTION__SECURITY_CREDENTIAL = 1; - - /** - * The feature id for the 'Security Principal' attribute. - * - * - * @generated - * @ordered - */ - int CONNECTION__SECURITY_PRINCIPAL = 2; - - /** - * The number of structural features of the 'Connection' class. - * - * - * @generated - * @ordered - */ - int CONNECTION_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl Jms Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsDocumentRoot() - * @generated - */ - int JMS_DOCUMENT_ROOT = 1; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int JMS_DOCUMENT_ROOT__MIXED = 0; - - /** - * The feature id for the 'XMLNS Prefix Map' map. - * - * - * @generated - * @ordered - */ - int JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; - - /** - * The feature id for the 'XSI Schema Location' map. - * - * - * @generated - * @ordered - */ - int JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; - - /** - * The feature id for the 'Router' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_DOCUMENT_ROOT__ROUTER = 3; - - /** - * The number of structural features of the 'Jms Document Root' class. - * - * - * @generated - * @ordered - */ - int JMS_DOCUMENT_ROOT_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl High Water Mark}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getHighWaterMark() - * @generated - */ - int HIGH_WATER_MARK = 2; - - /** - * The feature id for the 'Mark' attribute. - * - * - * @generated - * @ordered - */ - int HIGH_WATER_MARK__MARK = 0; - - /** - * The feature id for the 'Poll Frequency' attribute. - * - * - * @generated - * @ordered - */ - int HIGH_WATER_MARK__POLL_FREQUENCY = 1; - - /** - * The feature id for the 'Timeout' attribute. - * - * - * @generated - * @ordered - */ - int HIGH_WATER_MARK__TIMEOUT = 2; - - /** - * The number of structural features of the 'High Water Mark' class. - * - * - * @generated - * @ordered - */ - int HIGH_WATER_MARK_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl Jndi}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJndi() - * @generated - */ - int JNDI = 3; - - /** - * The feature id for the 'Context Factory' attribute. - * - * - * @generated - * @ordered - */ - int JNDI__CONTEXT_FACTORY = 0; - - /** - * The feature id for the 'Naming Factory' attribute. - * - * - * @generated - * @ordered - */ - int JNDI__NAMING_FACTORY = 1; - - /** - * The feature id for the 'Provider Url' attribute. - * - * - * @generated - * @ordered - */ - int JNDI__PROVIDER_URL = 2; - - /** - * The number of structural features of the 'Jndi' class. - * - * - * @generated - * @ordered - */ - int JNDI_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl Message}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessage() - * @generated - */ - int MESSAGE = 4; - - /** - * The feature id for the 'Correlation Id Pattern' attribute. - * - * - * @generated - * @ordered - */ - int MESSAGE__CORRELATION_ID_PATTERN = 0; - - /** - * The feature id for the 'Delivery Mode' attribute. - * - * - * @generated - * @ordered - */ - int MESSAGE__DELIVERY_MODE = 1; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int MESSAGE__PRIORITY = 2; - - /** - * The feature id for the 'Time To Live' attribute. - * - * - * @generated - * @ordered - */ - int MESSAGE__TIME_TO_LIVE = 3; - - /** - * The feature id for the 'Type' attribute. - * - * - * @generated - * @ordered - */ - int MESSAGE__TYPE = 4; - - /** - * The number of structural features of the 'Message' class. - * - * - * @generated - * @ordered - */ - int MESSAGE_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl Jms Router}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsRouter() - * @generated - */ - int JMS_ROUTER = 5; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__MIXED = SmooksPackage.ELEMENT_VISITOR__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__ANY = SmooksPackage.ELEMENT_VISITOR__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__ANY_ATTRIBUTE = SmooksPackage.ELEMENT_VISITOR__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Condition' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__CONDITION = SmooksPackage.ELEMENT_VISITOR__CONDITION; - - /** - * The feature id for the 'Target Profile' attribute. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE; - - /** - * The feature id for the 'Message' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__MESSAGE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Connection' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__CONNECTION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Session' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__SESSION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Jndi' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__JNDI = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3; - - /** - * The feature id for the 'High Water Mark' containment reference. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__HIGH_WATER_MARK = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Bean Id' attribute. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__BEAN_ID = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5; - - /** - * The feature id for the 'Destination' attribute. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__DESTINATION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6; - - /** - * The feature id for the 'Execute Before' attribute. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__EXECUTE_BEFORE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 7; - - /** - * The feature id for the 'Route On Element' attribute. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__ROUTE_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 8; - - /** - * The feature id for the 'Route On Element NS' attribute. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER__ROUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 9; - - /** - * The number of structural features of the 'Jms Router' class. - * - * - * @generated - * @ordered - */ - int JMS_ROUTER_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 10; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl Session}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getSession() - * @generated - */ - int SESSION = 6; - - /** - * The feature id for the 'Acknowledge Mode' attribute. - * - * - * @generated - * @ordered - */ - int SESSION__ACKNOWLEDGE_MODE = 0; - - /** - * The feature id for the 'Transacted' attribute. - * - * - * @generated - * @ordered - */ - int SESSION__TRANSACTED = 1; - - /** - * The number of structural features of the 'Session' class. - * - * - * @generated - * @ordered - */ - int SESSION_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode Acknowledge Mode}' enum. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeMode() - * @generated - */ - int ACKNOWLEDGE_MODE = 7; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.DeliveryMode Delivery Mode}' enum. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryMode() - * @generated - */ - int DELIVERY_MODE = 8; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.jmsrouting.MessageType Message Type}' enum. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageType() - * @generated - */ - int MESSAGE_TYPE = 9; - - /** - * The meta object id for the 'Acknowledge Mode Object' data type. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeModeObject() - * @generated - */ - int ACKNOWLEDGE_MODE_OBJECT = 10; - - /** - * The meta object id for the 'Delivery Mode Object' data type. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryModeObject() - * @generated - */ - int DELIVERY_MODE_OBJECT = 11; - - /** - * The meta object id for the 'Message Type Object' data type. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageTypeObject() - * @generated - */ - int MESSAGE_TYPE_OBJECT = 12; - - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.Connection Connection}'. - * - * - * @return the meta object for class 'Connection'. - * @see org.jboss.tools.smooks.model.jmsrouting.Connection - * @generated - */ - EClass getConnection(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory Factory}'. - * - * - * @return the meta object for the attribute 'Factory'. - * @see org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory() - * @see #getConnection() - * @generated - */ - EAttribute getConnection_Factory(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential Security Credential}'. - * - * - * @return the meta object for the attribute 'Security Credential'. - * @see org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential() - * @see #getConnection() - * @generated - */ - EAttribute getConnection_SecurityCredential(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal Security Principal}'. - * - * - * @return the meta object for the attribute 'Security Principal'. - * @see org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal() - * @see #getConnection() - * @generated - */ - EAttribute getConnection_SecurityPrincipal(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot Jms Document Root}'. - * - * - * @return the meta object for class 'Jms Document Root'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot - * @generated - */ - EClass getJmsDocumentRoot(); - - /** - * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getMixed Mixed}'. - * - * - * @return the meta object for the attribute list 'Mixed'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getMixed() - * @see #getJmsDocumentRoot() - * @generated - */ - EAttribute getJmsDocumentRoot_Mixed(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}'. - * - * - * @return the meta object for the map 'XMLNS Prefix Map'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXMLNSPrefixMap() - * @see #getJmsDocumentRoot() - * @generated - */ - EReference getJmsDocumentRoot_XMLNSPrefixMap(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXSISchemaLocation XSI Schema Location}'. - * - * - * @return the meta object for the map 'XSI Schema Location'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXSISchemaLocation() - * @see #getJmsDocumentRoot() - * @generated - */ - EReference getJmsDocumentRoot_XSISchemaLocation(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter Router}'. - * - * - * @return the meta object for the containment reference 'Router'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter() - * @see #getJmsDocumentRoot() - * @generated - */ - EReference getJmsDocumentRoot_Router(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark High Water Mark}'. - * - * - * @return the meta object for class 'High Water Mark'. - * @see org.jboss.tools.smooks.model.jmsrouting.HighWaterMark - * @generated - */ - EClass getHighWaterMark(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark Mark}'. - * - * - * @return the meta object for the attribute 'Mark'. - * @see org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark() - * @see #getHighWaterMark() - * @generated - */ - EAttribute getHighWaterMark_Mark(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency Poll Frequency}'. - * - * - * @return the meta object for the attribute 'Poll Frequency'. - * @see org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency() - * @see #getHighWaterMark() - * @generated - */ - EAttribute getHighWaterMark_PollFrequency(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout Timeout}'. - * - * - * @return the meta object for the attribute 'Timeout'. - * @see org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout() - * @see #getHighWaterMark() - * @generated - */ - EAttribute getHighWaterMark_Timeout(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi Jndi}'. - * - * - * @return the meta object for class 'Jndi'. - * @see org.jboss.tools.smooks.model.jmsrouting.Jndi - * @generated - */ - EClass getJndi(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory Context Factory}'. - * - * - * @return the meta object for the attribute 'Context Factory'. - * @see org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory() - * @see #getJndi() - * @generated - */ - EAttribute getJndi_ContextFactory(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory Naming Factory}'. - * - * - * @return the meta object for the attribute 'Naming Factory'. - * @see org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory() - * @see #getJndi() - * @generated - */ - EAttribute getJndi_NamingFactory(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl Provider Url}'. - * - * - * @return the meta object for the attribute 'Provider Url'. - * @see org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl() - * @see #getJndi() - * @generated - */ - EAttribute getJndi_ProviderUrl(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.Message Message}'. - * - * - * @return the meta object for class 'Message'. - * @see org.jboss.tools.smooks.model.jmsrouting.Message - * @generated - */ - EClass getMessage(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern Correlation Id Pattern}'. - * - * - * @return the meta object for the attribute 'Correlation Id Pattern'. - * @see org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern() - * @see #getMessage() - * @generated - */ - EAttribute getMessage_CorrelationIdPattern(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode Delivery Mode}'. - * - * - * @return the meta object for the attribute 'Delivery Mode'. - * @see org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode() - * @see #getMessage() - * @generated - */ - EAttribute getMessage_DeliveryMode(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getPriority Priority}'. - * - * - * @return the meta object for the attribute 'Priority'. - * @see org.jboss.tools.smooks.model.jmsrouting.Message#getPriority() - * @see #getMessage() - * @generated - */ - EAttribute getMessage_Priority(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive Time To Live}'. - * - * - * @return the meta object for the attribute 'Time To Live'. - * @see org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive() - * @see #getMessage() - * @generated - */ - EAttribute getMessage_TimeToLive(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getType Type}'. - * - * - * @return the meta object for the attribute 'Type'. - * @see org.jboss.tools.smooks.model.jmsrouting.Message#getType() - * @see #getMessage() - * @generated - */ - EAttribute getMessage_Type(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter Jms Router}'. - * - * - * @return the meta object for class 'Jms Router'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter - * @generated - */ - EClass getJmsRouter(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage Message}'. - * - * - * @return the meta object for the containment reference 'Message'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage() - * @see #getJmsRouter() - * @generated - */ - EReference getJmsRouter_Message(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection Connection}'. - * - * - * @return the meta object for the containment reference 'Connection'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection() - * @see #getJmsRouter() - * @generated - */ - EReference getJmsRouter_Connection(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession Session}'. - * - * - * @return the meta object for the containment reference 'Session'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession() - * @see #getJmsRouter() - * @generated - */ - EReference getJmsRouter_Session(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi Jndi}'. - * - * - * @return the meta object for the containment reference 'Jndi'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi() - * @see #getJmsRouter() - * @generated - */ - EReference getJmsRouter_Jndi(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getHighWaterMark High Water Mark}'. - * - * - * @return the meta object for the containment reference 'High Water Mark'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getHighWaterMark() - * @see #getJmsRouter() - * @generated - */ - EReference getJmsRouter_HighWaterMark(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId Bean Id}'. - * - * - * @return the meta object for the attribute 'Bean Id'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId() - * @see #getJmsRouter() - * @generated - */ - EAttribute getJmsRouter_BeanId(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination Destination}'. - * - * - * @return the meta object for the attribute 'Destination'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination() - * @see #getJmsRouter() - * @generated - */ - EAttribute getJmsRouter_Destination(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore Execute Before}'. - * - * - * @return the meta object for the attribute 'Execute Before'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore() - * @see #getJmsRouter() - * @generated - */ - EAttribute getJmsRouter_ExecuteBefore(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement Route On Element}'. - * - * - * @return the meta object for the attribute 'Route On Element'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement() - * @see #getJmsRouter() - * @generated - */ - EAttribute getJmsRouter_RouteOnElement(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS Route On Element NS}'. - * - * - * @return the meta object for the attribute 'Route On Element NS'. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS() - * @see #getJmsRouter() - * @generated - */ - EAttribute getJmsRouter_RouteOnElementNS(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.jmsrouting.Session Session}'. - * - * - * @return the meta object for class 'Session'. - * @see org.jboss.tools.smooks.model.jmsrouting.Session - * @generated - */ - EClass getSession(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode Acknowledge Mode}'. - * - * - * @return the meta object for the attribute 'Acknowledge Mode'. - * @see org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode() - * @see #getSession() - * @generated - */ - EAttribute getSession_AcknowledgeMode(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted Transacted}'. - * - * - * @return the meta object for the attribute 'Transacted'. - * @see org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted() - * @see #getSession() - * @generated - */ - EAttribute getSession_Transacted(); - - /** - * Returns the meta object for enum '{@link org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode Acknowledge Mode}'. - * - * - * @return the meta object for enum 'Acknowledge Mode'. - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @generated - */ - EEnum getAcknowledgeMode(); - - /** - * Returns the meta object for enum '{@link org.jboss.tools.smooks.model.jmsrouting.DeliveryMode Delivery Mode}'. - * - * - * @return the meta object for enum 'Delivery Mode'. - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @generated - */ - EEnum getDeliveryMode(); - - /** - * Returns the meta object for enum '{@link org.jboss.tools.smooks.model.jmsrouting.MessageType Message Type}'. - * - * - * @return the meta object for enum 'Message Type'. - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @generated - */ - EEnum getMessageType(); - - /** - * Returns the meta object for data type '{@link org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode Acknowledge Mode Object}'. - * - * - * @return the meta object for data type 'Acknowledge Mode Object'. - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @model instanceClass="jmsrouting.AcknowledgeMode" - * extendedMetaData="name='acknowledgeMode:Object' baseType='acknowledgeMode'" - * @generated - */ - EDataType getAcknowledgeModeObject(); - - /** - * Returns the meta object for data type '{@link org.jboss.tools.smooks.model.jmsrouting.DeliveryMode Delivery Mode Object}'. - * - * - * @return the meta object for data type 'Delivery Mode Object'. - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @model instanceClass="jmsrouting.DeliveryMode" - * extendedMetaData="name='deliveryMode:Object' baseType='deliveryMode'" - * @generated - */ - EDataType getDeliveryModeObject(); - - /** - * Returns the meta object for data type '{@link org.jboss.tools.smooks.model.jmsrouting.MessageType Message Type Object}'. - * - * - * @return the meta object for data type 'Message Type Object'. - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @model instanceClass="jmsrouting.MessageType" - * extendedMetaData="name='messageType:Object' baseType='messageType'" - * @generated - */ - EDataType getMessageTypeObject(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - JmsroutingFactory getJmsroutingFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl Connection}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getConnection() - * @generated - */ - EClass CONNECTION = eINSTANCE.getConnection(); - - /** - * The meta object literal for the 'Factory' attribute feature. - * - * - * @generated - */ - EAttribute CONNECTION__FACTORY = eINSTANCE.getConnection_Factory(); - - /** - * The meta object literal for the 'Security Credential' attribute feature. - * - * - * @generated - */ - EAttribute CONNECTION__SECURITY_CREDENTIAL = eINSTANCE.getConnection_SecurityCredential(); - - /** - * The meta object literal for the 'Security Principal' attribute feature. - * - * - * @generated - */ - EAttribute CONNECTION__SECURITY_PRINCIPAL = eINSTANCE.getConnection_SecurityPrincipal(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl Jms Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsDocumentRoot() - * @generated - */ - EClass JMS_DOCUMENT_ROOT = eINSTANCE.getJmsDocumentRoot(); - - /** - * The meta object literal for the 'Mixed' attribute list feature. - * - * - * @generated - */ - EAttribute JMS_DOCUMENT_ROOT__MIXED = eINSTANCE.getJmsDocumentRoot_Mixed(); - - /** - * The meta object literal for the 'XMLNS Prefix Map' map feature. - * - * - * @generated - */ - EReference JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getJmsDocumentRoot_XMLNSPrefixMap(); - - /** - * The meta object literal for the 'XSI Schema Location' map feature. - * - * - * @generated - */ - EReference JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getJmsDocumentRoot_XSISchemaLocation(); - - /** - * The meta object literal for the 'Router' containment reference feature. - * - * - * @generated - */ - EReference JMS_DOCUMENT_ROOT__ROUTER = eINSTANCE.getJmsDocumentRoot_Router(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl High Water Mark}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getHighWaterMark() - * @generated - */ - EClass HIGH_WATER_MARK = eINSTANCE.getHighWaterMark(); - - /** - * The meta object literal for the 'Mark' attribute feature. - * - * - * @generated - */ - EAttribute HIGH_WATER_MARK__MARK = eINSTANCE.getHighWaterMark_Mark(); - - /** - * The meta object literal for the 'Poll Frequency' attribute feature. - * - * - * @generated - */ - EAttribute HIGH_WATER_MARK__POLL_FREQUENCY = eINSTANCE.getHighWaterMark_PollFrequency(); - - /** - * The meta object literal for the 'Timeout' attribute feature. - * - * - * @generated - */ - EAttribute HIGH_WATER_MARK__TIMEOUT = eINSTANCE.getHighWaterMark_Timeout(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl Jndi}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJndi() - * @generated - */ - EClass JNDI = eINSTANCE.getJndi(); - - /** - * The meta object literal for the 'Context Factory' attribute feature. - * - * - * @generated - */ - EAttribute JNDI__CONTEXT_FACTORY = eINSTANCE.getJndi_ContextFactory(); - - /** - * The meta object literal for the 'Naming Factory' attribute feature. - * - * - * @generated - */ - EAttribute JNDI__NAMING_FACTORY = eINSTANCE.getJndi_NamingFactory(); - - /** - * The meta object literal for the 'Provider Url' attribute feature. - * - * - * @generated - */ - EAttribute JNDI__PROVIDER_URL = eINSTANCE.getJndi_ProviderUrl(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl Message}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessage() - * @generated - */ - EClass MESSAGE = eINSTANCE.getMessage(); - - /** - * The meta object literal for the 'Correlation Id Pattern' attribute feature. - * - * - * @generated - */ - EAttribute MESSAGE__CORRELATION_ID_PATTERN = eINSTANCE.getMessage_CorrelationIdPattern(); - - /** - * The meta object literal for the 'Delivery Mode' attribute feature. - * - * - * @generated - */ - EAttribute MESSAGE__DELIVERY_MODE = eINSTANCE.getMessage_DeliveryMode(); - - /** - * The meta object literal for the 'Priority' attribute feature. - * - * - * @generated - */ - EAttribute MESSAGE__PRIORITY = eINSTANCE.getMessage_Priority(); - - /** - * The meta object literal for the 'Time To Live' attribute feature. - * - * - * @generated - */ - EAttribute MESSAGE__TIME_TO_LIVE = eINSTANCE.getMessage_TimeToLive(); - - /** - * The meta object literal for the 'Type' attribute feature. - * - * - * @generated - */ - EAttribute MESSAGE__TYPE = eINSTANCE.getMessage_Type(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl Jms Router}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsRouter() - * @generated - */ - EClass JMS_ROUTER = eINSTANCE.getJmsRouter(); - - /** - * The meta object literal for the 'Message' containment reference feature. - * - * - * @generated - */ - EReference JMS_ROUTER__MESSAGE = eINSTANCE.getJmsRouter_Message(); - - /** - * The meta object literal for the 'Connection' containment reference feature. - * - * - * @generated - */ - EReference JMS_ROUTER__CONNECTION = eINSTANCE.getJmsRouter_Connection(); - - /** - * The meta object literal for the 'Session' containment reference feature. - * - * - * @generated - */ - EReference JMS_ROUTER__SESSION = eINSTANCE.getJmsRouter_Session(); - - /** - * The meta object literal for the 'Jndi' containment reference feature. - * - * - * @generated - */ - EReference JMS_ROUTER__JNDI = eINSTANCE.getJmsRouter_Jndi(); - - /** - * The meta object literal for the 'High Water Mark' containment reference feature. - * - * - * @generated - */ - EReference JMS_ROUTER__HIGH_WATER_MARK = eINSTANCE.getJmsRouter_HighWaterMark(); - - /** - * The meta object literal for the 'Bean Id' attribute feature. - * - * - * @generated - */ - EAttribute JMS_ROUTER__BEAN_ID = eINSTANCE.getJmsRouter_BeanId(); - - /** - * The meta object literal for the 'Destination' attribute feature. - * - * - * @generated - */ - EAttribute JMS_ROUTER__DESTINATION = eINSTANCE.getJmsRouter_Destination(); - - /** - * The meta object literal for the 'Execute Before' attribute feature. - * - * - * @generated - */ - EAttribute JMS_ROUTER__EXECUTE_BEFORE = eINSTANCE.getJmsRouter_ExecuteBefore(); - - /** - * The meta object literal for the 'Route On Element' attribute feature. - * - * - * @generated - */ - EAttribute JMS_ROUTER__ROUTE_ON_ELEMENT = eINSTANCE.getJmsRouter_RouteOnElement(); - - /** - * The meta object literal for the 'Route On Element NS' attribute feature. - * - * - * @generated - */ - EAttribute JMS_ROUTER__ROUTE_ON_ELEMENT_NS = eINSTANCE.getJmsRouter_RouteOnElementNS(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl Session}' class. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getSession() - * @generated - */ - EClass SESSION = eINSTANCE.getSession(); - - /** - * The meta object literal for the 'Acknowledge Mode' attribute feature. - * - * - * @generated - */ - EAttribute SESSION__ACKNOWLEDGE_MODE = eINSTANCE.getSession_AcknowledgeMode(); - - /** - * The meta object literal for the 'Transacted' attribute feature. - * - * - * @generated - */ - EAttribute SESSION__TRANSACTED = eINSTANCE.getSession_Transacted(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode Acknowledge Mode}' enum. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeMode() - * @generated - */ - EEnum ACKNOWLEDGE_MODE = eINSTANCE.getAcknowledgeMode(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.DeliveryMode Delivery Mode}' enum. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryMode() - * @generated - */ - EEnum DELIVERY_MODE = eINSTANCE.getDeliveryMode(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.jmsrouting.MessageType Message Type}' enum. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageType() - * @generated - */ - EEnum MESSAGE_TYPE = eINSTANCE.getMessageType(); - - /** - * The meta object literal for the 'Acknowledge Mode Object' data type. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeModeObject() - * @generated - */ - EDataType ACKNOWLEDGE_MODE_OBJECT = eINSTANCE.getAcknowledgeModeObject(); - - /** - * The meta object literal for the 'Delivery Mode Object' data type. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryModeObject() - * @generated - */ - EDataType DELIVERY_MODE_OBJECT = eINSTANCE.getDeliveryModeObject(); - - /** - * The meta object literal for the 'Message Type Object' data type. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageTypeObject() - * @generated - */ - EDataType MESSAGE_TYPE_OBJECT = eINSTANCE.getMessageTypeObject(); - - } - -} //JmsroutingPackage Index: src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java (working copy) @@ -1,249 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Acknowledge Mode', - * and utility methods for working with them. - * - * - * - * The possible JMS acknowledge modes - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getAcknowledgeMode() - * @model extendedMetaData="name='acknowledgeMode'" - * @generated - */ -public enum AcknowledgeMode implements Enumerator { - /** - * The 'AUTOACKNOWLEDGE' literal object. - * - * - * @see #AUTOACKNOWLEDGE_VALUE - * @generated - * @ordered - */ - AUTOACKNOWLEDGE(0, "AUTOACKNOWLEDGE", "AUTO_ACKNOWLEDGE"), //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'CLIENTACKNOWLEDGE' literal object. - * - * - * @see #CLIENTACKNOWLEDGE_VALUE - * @generated - * @ordered - */ - CLIENTACKNOWLEDGE(1, "CLIENTACKNOWLEDGE", "CLIENT_ACKNOWLEDGE"), //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'DUPSOKACKNOWLEDGE' literal object. - * - * - * @see #DUPSOKACKNOWLEDGE_VALUE - * @generated - * @ordered - */ - DUPSOKACKNOWLEDGE(2, "DUPSOKACKNOWLEDGE", "DUPS_OK_ACKNOWLEDGE"); //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'AUTOACKNOWLEDGE' literal value. - * - * - * - * - * With this acknowledgement mode, the session automatically acknowledges a client's receipt of a - * message when it has either successfully returned from a call to receive or the message listener - * it has called to process the message successfully returns. - * - * - * @see #AUTOACKNOWLEDGE - * @model literal="AUTO_ACKNOWLEDGE" - * @generated - * @ordered - */ - public static final int AUTOACKNOWLEDGE_VALUE = 0; - - /** - * The 'CLIENTACKNOWLEDGE' literal value. - * - * - * - * - * With this acknowledgement mode, the client acknowledges a message by calling a message's acknowledge method. - * - * - * @see #CLIENTACKNOWLEDGE - * @model literal="CLIENT_ACKNOWLEDGE" - * @generated - * @ordered - */ - public static final int CLIENTACKNOWLEDGE_VALUE = 1; - - /** - * The 'DUPSOKACKNOWLEDGE' literal value. - * - * - * - * - * This acknowledgement mode instructs the session to lazily acknowledge the delivery of messages. - * - * - * @see #DUPSOKACKNOWLEDGE - * @model literal="DUPS_OK_ACKNOWLEDGE" - * @generated - * @ordered - */ - public static final int DUPSOKACKNOWLEDGE_VALUE = 2; - - /** - * An array of all the 'Acknowledge Mode' enumerators. - * - * - * @generated - */ - private static final AcknowledgeMode[] VALUES_ARRAY = - new AcknowledgeMode[] { - AUTOACKNOWLEDGE, - CLIENTACKNOWLEDGE, - DUPSOKACKNOWLEDGE, - }; - - /** - * A public read-only list of all the 'Acknowledge Mode' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Acknowledge Mode' literal with the specified literal value. - * - * - * @generated - */ - public static AcknowledgeMode get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - AcknowledgeMode result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Acknowledge Mode' literal with the specified name. - * - * - * @generated - */ - public static AcknowledgeMode getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - AcknowledgeMode result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Acknowledge Mode' literal with the specified integer value. - * - * - * @generated - */ - public static AcknowledgeMode get(int value) { - switch (value) { - case AUTOACKNOWLEDGE_VALUE: return AUTOACKNOWLEDGE; - case CLIENTACKNOWLEDGE_VALUE: return CLIENTACKNOWLEDGE; - case DUPSOKACKNOWLEDGE_VALUE: return DUPSOKACKNOWLEDGE; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private AcknowledgeMode(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - public int getValue() { - return value; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public String getLiteral() { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() { - return literal; - } - -} //AcknowledgeMode Index: src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java (working copy) @@ -1,252 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Message Type', - * and utility methods for working with them. - * - * - * - * The possible JMS message types. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessageType() - * @model extendedMetaData="name='messageType'" - * @generated - */ -public enum MessageType implements Enumerator { - /** - * The 'Text Message' literal object. - * - * - * @see #TEXT_MESSAGE_VALUE - * @generated - * @ordered - */ - TEXT_MESSAGE(0, "TextMessage", "TextMessage"), //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'Object Message' literal object. - * - * - * @see #OBJECT_MESSAGE_VALUE - * @generated - * @ordered - */ - OBJECT_MESSAGE(1, "ObjectMessage", "ObjectMessage"), //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'Map Message' literal object. - * - * - * @see #MAP_MESSAGE_VALUE - * @generated - * @ordered - */ - MAP_MESSAGE(2, "MapMessage", "MapMessage"); //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'Text Message' literal value. - * - * - * - * - * A TextMessage is used to send a message containing a java.lang.String. - * To retrieve the string the cartridge calls the 'toString()' method of the target bean. - * - * - * @see #TEXT_MESSAGE - * @model name="TextMessage" - * @generated - * @ordered - */ - public static final int TEXT_MESSAGE_VALUE = 0; - - /** - * The 'Object Message' literal value. - * - * - * - * - * An ObjectMessage is used to send a message that contains a serializable Java object. - * Only Serializable Java objects can be used. - * - * - * @see #OBJECT_MESSAGE - * @model name="ObjectMessage" - * @generated - * @ordered - */ - public static final int OBJECT_MESSAGE_VALUE = 1; - - /** - * The 'Map Message' literal value. - * - * - * - * - * A MapMessage is used to send a set of name-value pairs where names are Strings and values are Java primitive types or Strings. - * Only Map Java objects can be used. - * For the keys of the map the 'toString()' method is called to retrieve the String representation. - * Objects that aren't primitive types or Strings get the toString() method called to return the String representation. - * - * - * @see #MAP_MESSAGE - * @model name="MapMessage" - * @generated - * @ordered - */ - public static final int MAP_MESSAGE_VALUE = 2; - - /** - * An array of all the 'Message Type' enumerators. - * - * - * @generated - */ - private static final MessageType[] VALUES_ARRAY = - new MessageType[] { - TEXT_MESSAGE, - OBJECT_MESSAGE, - MAP_MESSAGE, - }; - - /** - * A public read-only list of all the 'Message Type' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Message Type' literal with the specified literal value. - * - * - * @generated - */ - public static MessageType get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - MessageType result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Message Type' literal with the specified name. - * - * - * @generated - */ - public static MessageType getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - MessageType result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Message Type' literal with the specified integer value. - * - * - * @generated - */ - public static MessageType get(int value) { - switch (value) { - case TEXT_MESSAGE_VALUE: return TEXT_MESSAGE; - case OBJECT_MESSAGE_VALUE: return OBJECT_MESSAGE; - case MAP_MESSAGE_VALUE: return MAP_MESSAGE; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private MessageType(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - public int getValue() { - return value; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public String getLiteral() { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() { - return literal; - } - -} //MessageType Index: src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java (working copy) @@ -1,120 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.util.FeatureMap; - -/** - * - * A representation of the model object 'Jms Document Root'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter Router}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot() - * @model extendedMetaData="name='' kind='mixed'" - * @generated - */ -public interface JmsDocumentRoot extends EObject { - /** - * Returns the value of the 'Mixed' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * - *

- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Mixed' attribute list. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_Mixed() - * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='elementWildcard' name=':mixed'" - * @generated - */ - FeatureMap getMixed(); - - /** - * Returns the value of the 'XMLNS Prefix Map' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XMLNS Prefix Map' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XMLNS Prefix Map' map. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_XMLNSPrefixMap() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xmlns:prefix'" - * @generated - */ - EMap getXMLNSPrefixMap(); - - /** - * Returns the value of the 'XSI Schema Location' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XSI Schema Location' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XSI Schema Location' map. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_XSISchemaLocation() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" - * @generated - */ - EMap getXSISchemaLocation(); - - /** - * Returns the value of the 'Router' containment reference. - * - * - * - * - * JMS router configuration - * The JMS router routes messages to a JMS destination (Queue or Topic). - * The message payload is created from a bean out of the bean context. It is possible - * to send Text or Object messages. The correlation id can be generated out of a FreeMarker - * template. - * - * - * @return the value of the 'Router' containment reference. - * @see #setRouter(JmsRouter) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_Router() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='router' namespace='##targetNamespace' affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config'" - * @generated - */ - JmsRouter getRouter(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter Router}' containment reference. - * - * - * @param value the new value of the 'Router' containment reference. - * @see #getRouter() - * @generated - */ - void setRouter(JmsRouter value); - -} // JmsDocumentRoot Index: src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java (working copy) @@ -1,219 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Delivery Mode', - * and utility methods for working with them. - * - * - * - * The possible JMS delivery modes. - * - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDeliveryMode() - * @model extendedMetaData="name='deliveryMode'" - * @generated - */ -public enum DeliveryMode implements Enumerator { - /** - * The 'Persistent' literal object. - * - * - * @see #PERSISTENT_VALUE - * @generated - * @ordered - */ - PERSISTENT(0, "persistent", "persistent"), //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'Non Persistent' literal object. - * - * - * @see #NON_PERSISTENT_VALUE - * @generated - * @ordered - */ - NON_PERSISTENT(1, "nonPersistent", "non-persistent"); //$NON-NLS-1$ //$NON-NLS-2$ - - /** - * The 'Persistent' literal value. - * - * - * - * - * This mode instructs the JMS provider to log the message to stable storage as part of the client's send operation. - * - * - * @see #PERSISTENT - * @model name="persistent" - * @generated - * @ordered - */ - public static final int PERSISTENT_VALUE = 0; - - /** - * The 'Non Persistent' literal value. - * - * - * - * - * This is the lowest overhead delivery mode because it does not require that the message be logged to stable storage. - * - * - * @see #NON_PERSISTENT - * @model name="nonPersistent" literal="non-persistent" - * @generated - * @ordered - */ - public static final int NON_PERSISTENT_VALUE = 1; - - /** - * An array of all the 'Delivery Mode' enumerators. - * - * - * @generated - */ - private static final DeliveryMode[] VALUES_ARRAY = - new DeliveryMode[] { - PERSISTENT, - NON_PERSISTENT, - }; - - /** - * A public read-only list of all the 'Delivery Mode' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Delivery Mode' literal with the specified literal value. - * - * - * @generated - */ - public static DeliveryMode get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - DeliveryMode result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Delivery Mode' literal with the specified name. - * - * - * @generated - */ - public static DeliveryMode getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - DeliveryMode result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Delivery Mode' literal with the specified integer value. - * - * - * @generated - */ - public static DeliveryMode get(int value) { - switch (value) { - case PERSISTENT_VALUE: return PERSISTENT; - case NON_PERSISTENT_VALUE: return NON_PERSISTENT; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private DeliveryMode(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - public int getValue() { - return value; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public String getLiteral() { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() { - return literal; - } - -} //DeliveryMode Index: src/org/jboss/tools/smooks/model/jmsrouting/Message.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/Message.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/Message.java (working copy) @@ -1,297 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Message'. - * - * - * - * - * The message configuration. - * - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern Correlation Id Pattern}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode Delivery Mode}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Message#getPriority Priority}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive Time To Live}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Message#getType Type}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage() - * @model extendedMetaData="name='message' kind='elementOnly'" - * @generated - */ -public interface Message extends EObject { - /** - * Returns the value of the 'Correlation Id Pattern' attribute. - * - * - * - * - * JMS Correlation pattern that will be used for the outgoing message. - * Templating support is available via the FreeMarker template engine. - * - * - * @return the value of the 'Correlation Id Pattern' attribute. - * @see #setCorrelationIdPattern(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_CorrelationIdPattern() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='element' name='correlationIdPattern' namespace='##targetNamespace'" - * @generated - */ - String getCorrelationIdPattern(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern Correlation Id Pattern}' attribute. - * - * - * @param value the new value of the 'Correlation Id Pattern' attribute. - * @see #getCorrelationIdPattern() - * @generated - */ - void setCorrelationIdPattern(String value); - - /** - * Returns the value of the 'Delivery Mode' attribute. - * The default value is "persistent". - * The literals are from the enumeration {@link org.jboss.tools.smooks.model.jmsrouting.DeliveryMode}. - * - * - * - * - * The JMS DeliveryMode. 'persistent'(default) or 'non-persistent'. - * - * - * @return the value of the 'Delivery Mode' attribute. - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @see #isSetDeliveryMode() - * @see #unsetDeliveryMode() - * @see #setDeliveryMode(DeliveryMode) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_DeliveryMode() - * @model default="persistent" unsettable="true" - * extendedMetaData="kind='attribute' name='deliveryMode'" - * @generated - */ - DeliveryMode getDeliveryMode(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode Delivery Mode}' attribute. - * - * - * @param value the new value of the 'Delivery Mode' attribute. - * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode - * @see #isSetDeliveryMode() - * @see #unsetDeliveryMode() - * @see #getDeliveryMode() - * @generated - */ - void setDeliveryMode(DeliveryMode value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode Delivery Mode}' attribute. - * - * - * @see #isSetDeliveryMode() - * @see #getDeliveryMode() - * @see #setDeliveryMode(DeliveryMode) - * @generated - */ - void unsetDeliveryMode(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode Delivery Mode}' attribute is set. - * - * - * @return whether the value of the 'Delivery Mode' attribute is set. - * @see #unsetDeliveryMode() - * @see #getDeliveryMode() - * @see #setDeliveryMode(DeliveryMode) - * @generated - */ - boolean isSetDeliveryMode(); - - /** - * Returns the value of the 'Priority' attribute. - * The default value is "4". - * - * - * - * - * The JMS Priority to be used - * - * - * @return the value of the 'Priority' attribute. - * @see #isSetPriority() - * @see #unsetPriority() - * @see #setPriority(int) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_Priority() - * @model default="4" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" - * extendedMetaData="kind='attribute' name='priority'" - * @generated - */ - int getPriority(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getPriority Priority}' attribute. - * - * - * @param value the new value of the 'Priority' attribute. - * @see #isSetPriority() - * @see #unsetPriority() - * @see #getPriority() - * @generated - */ - void setPriority(int value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getPriority Priority}' attribute. - * - * - * @see #isSetPriority() - * @see #getPriority() - * @see #setPriority(int) - * @generated - */ - void unsetPriority(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getPriority Priority}' attribute is set. - * - * - * @return whether the value of the 'Priority' attribute is set. - * @see #unsetPriority() - * @see #getPriority() - * @see #setPriority(int) - * @generated - */ - boolean isSetPriority(); - - /** - * Returns the value of the 'Time To Live' attribute. - * The default value is "0". - * - * - * - * - * The JMS Time-To-Live to be used. - * - * - * @return the value of the 'Time To Live' attribute. - * @see #isSetTimeToLive() - * @see #unsetTimeToLive() - * @see #setTimeToLive(long) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_TimeToLive() - * @model default="0" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" - * extendedMetaData="kind='attribute' name='timeToLive'" - * @generated - */ - long getTimeToLive(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive Time To Live}' attribute. - * - * - * @param value the new value of the 'Time To Live' attribute. - * @see #isSetTimeToLive() - * @see #unsetTimeToLive() - * @see #getTimeToLive() - * @generated - */ - void setTimeToLive(long value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive Time To Live}' attribute. - * - * - * @see #isSetTimeToLive() - * @see #getTimeToLive() - * @see #setTimeToLive(long) - * @generated - */ - void unsetTimeToLive(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive Time To Live}' attribute is set. - * - * - * @return whether the value of the 'Time To Live' attribute is set. - * @see #unsetTimeToLive() - * @see #getTimeToLive() - * @see #setTimeToLive(long) - * @generated - */ - boolean isSetTimeToLive(); - - /** - * Returns the value of the 'Type' attribute. - * The default value is "TextMessage". - * The literals are from the enumeration {@link org.jboss.tools.smooks.model.jmsrouting.MessageType}. - * - * - * - * - * The type of JMS Message that should be sent. 'TextMessage'(default) or 'ObjectMessage'. - * - * - * @return the value of the 'Type' attribute. - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @see #isSetType() - * @see #unsetType() - * @see #setType(MessageType) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_Type() - * @model default="TextMessage" unsettable="true" - * extendedMetaData="kind='attribute' name='type'" - * @generated - */ - MessageType getType(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getType Type}' attribute. - * - * - * @param value the new value of the 'Type' attribute. - * @see org.jboss.tools.smooks.model.jmsrouting.MessageType - * @see #isSetType() - * @see #unsetType() - * @see #getType() - * @generated - */ - void setType(MessageType value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getType Type}' attribute. - * - * - * @see #isSetType() - * @see #getType() - * @see #setType(MessageType) - * @generated - */ - void unsetType(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Message#getType Type}' attribute is set. - * - * - * @return whether the value of the 'Type' attribute is set. - * @see #unsetType() - * @see #getType() - * @see #setType(MessageType) - * @generated - */ - boolean isSetType(); - -} // Message Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java (working copy) @@ -1,171 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot} object. - * - * - * @generated - */ -public class JmsDocumentRootItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public JmsDocumentRootItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns JmsDocumentRoot.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/JmsDocumentRoot")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_JmsDocumentRoot_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(JmsDocumentRoot.class)) { - case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, - JmsroutingFactory.eINSTANCE.createJmsRouter())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java (working copy) @@ -1,257 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Message; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Message} object. - * - * - * @generated - */ -public class MessageItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public MessageItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCorrelationIdPatternPropertyDescriptor(object); - addDeliveryModePropertyDescriptor(object); - addPriorityPropertyDescriptor(object); - addTimeToLivePropertyDescriptor(object); - addTypePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Correlation Id Pattern feature. - * - * - * @generated - */ - protected void addCorrelationIdPatternPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Message_correlationIdPattern_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Message_correlationIdPattern_feature", "_UI_Message_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.MESSAGE__CORRELATION_ID_PATTERN, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Delivery Mode feature. - * - * - * @generated - */ - protected void addDeliveryModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Message_deliveryMode_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Message_deliveryMode_feature", "_UI_Message_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.MESSAGE__DELIVERY_MODE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Priority feature. - * - * - * @generated - */ - protected void addPriorityPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Message_priority_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Message_priority_feature", "_UI_Message_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.MESSAGE__PRIORITY, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Time To Live feature. - * - * - * @generated - */ - protected void addTimeToLivePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Message_timeToLive_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Message_timeToLive_feature", "_UI_Message_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.MESSAGE__TIME_TO_LIVE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Type feature. - * - * - * @generated - */ - protected void addTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Message_type_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Message_type_feature", "_UI_Message_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.MESSAGE__TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Message.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Message")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((Message)object).getCorrelationIdPattern(); - return label == null || label.length() == 0 ? - getString("_UI_Message_type") : //$NON-NLS-1$ - getString("_UI_Message_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Message.class)) { - case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN: - case JmsroutingPackage.MESSAGE__DELIVERY_MODE: - case JmsroutingPackage.MESSAGE__PRIORITY: - case JmsroutingPackage.MESSAGE__TIME_TO_LIVE: - case JmsroutingPackage.MESSAGE__TYPE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java (working copy) @@ -1,207 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark} object. - * - * - * @generated - */ -public class HighWaterMarkItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public HighWaterMarkItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addMarkPropertyDescriptor(object); - addPollFrequencyPropertyDescriptor(object); - addTimeoutPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Mark feature. - * - * - * @generated - */ - protected void addMarkPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HighWaterMark_mark_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HighWaterMark_mark_feature", "_UI_HighWaterMark_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.HIGH_WATER_MARK__MARK, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Poll Frequency feature. - * - * - * @generated - */ - protected void addPollFrequencyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HighWaterMark_pollFrequency_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HighWaterMark_pollFrequency_feature", "_UI_HighWaterMark_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.HIGH_WATER_MARK__POLL_FREQUENCY, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Timeout feature. - * - * - * @generated - */ - protected void addTimeoutPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HighWaterMark_timeout_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HighWaterMark_timeout_feature", "_UI_HighWaterMark_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.HIGH_WATER_MARK__TIMEOUT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns HighWaterMark.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/HighWaterMark")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - HighWaterMark highWaterMark = (HighWaterMark)object; - return getString("_UI_HighWaterMark_type") + " " + highWaterMark.getMark(); //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(HighWaterMark.class)) { - case JmsroutingPackage.HIGH_WATER_MARK__MARK: - case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY: - case JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java (working copy) @@ -1,187 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Session; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Session} object. - * - * - * @generated - */ -public class SessionItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public SessionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addAcknowledgeModePropertyDescriptor(object); - addTransactedPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Acknowledge Mode feature. - * - * - * @generated - */ - protected void addAcknowledgeModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Session_acknowledgeMode_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Session_acknowledgeMode_feature", "_UI_Session_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.SESSION__ACKNOWLEDGE_MODE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Transacted feature. - * - * - * @generated - */ - protected void addTransactedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Session_transacted_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Session_transacted_feature", "_UI_Session_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.SESSION__TRANSACTED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Session.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Session")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - AcknowledgeMode labelValue = ((Session)object).getAcknowledgeMode(); - String label = labelValue == null ? null : labelValue.toString(); - return label == null || label.length() == 0 ? - getString("_UI_Session_type") : //$NON-NLS-1$ - getString("_UI_Session_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Session.class)) { - case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE: - case JmsroutingPackage.SESSION__TRANSACTED: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java (working copy) @@ -1,323 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter} object. - * - * - * @generated - */ -public class JmsRouterItemProvider - extends ElementVisitorItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public JmsRouterItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addBeanIdPropertyDescriptor(object); - addDestinationPropertyDescriptor(object); - addExecuteBeforePropertyDescriptor(object); - addRouteOnElementPropertyDescriptor(object); - addRouteOnElementNSPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Bean Id feature. - * - * - * @generated - */ - protected void addBeanIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JmsRouter_beanId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JmsRouter_beanId_feature", "_UI_JmsRouter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JMS_ROUTER__BEAN_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Destination feature. - * - * - * @generated - */ - protected void addDestinationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JmsRouter_destination_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JmsRouter_destination_feature", "_UI_JmsRouter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JMS_ROUTER__DESTINATION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Execute Before feature. - * - * - * @generated - */ - protected void addExecuteBeforePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JmsRouter_executeBefore_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JmsRouter_executeBefore_feature", "_UI_JmsRouter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JMS_ROUTER__EXECUTE_BEFORE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Route On Element feature. - * - * - * @generated - */ - protected void addRouteOnElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JmsRouter_routeOnElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JmsRouter_routeOnElement_feature", "_UI_JmsRouter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Route On Element NS feature. - * - * - * @generated - */ - protected void addRouteOnElementNSPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_JmsRouter_routeOnElementNS_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_JmsRouter_routeOnElementNS_feature", "_UI_JmsRouter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT_NS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__MESSAGE); - childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__CONNECTION); - childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__SESSION); - childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__JNDI); - childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__HIGH_WATER_MARK); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns JmsRouter.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/JmsRouter")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((JmsRouter)object).getTargetProfile(); - return label == null || label.length() == 0 ? - getString("_UI_JmsRouter_type") : //$NON-NLS-1$ - getString("_UI_JmsRouter_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(JmsRouter.class)) { - case JmsroutingPackage.JMS_ROUTER__BEAN_ID: - case JmsroutingPackage.JMS_ROUTER__DESTINATION: - case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE: - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT: - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case JmsroutingPackage.JMS_ROUTER__MESSAGE: - case JmsroutingPackage.JMS_ROUTER__CONNECTION: - case JmsroutingPackage.JMS_ROUTER__SESSION: - case JmsroutingPackage.JMS_ROUTER__JNDI: - case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (JmsroutingPackage.Literals.JMS_ROUTER__MESSAGE, - JmsroutingFactory.eINSTANCE.createMessage())); - - newChildDescriptors.add - (createChildParameter - (JmsroutingPackage.Literals.JMS_ROUTER__CONNECTION, - JmsroutingFactory.eINSTANCE.createConnection())); - - newChildDescriptors.add - (createChildParameter - (JmsroutingPackage.Literals.JMS_ROUTER__SESSION, - JmsroutingFactory.eINSTANCE.createSession())); - - newChildDescriptors.add - (createChildParameter - (JmsroutingPackage.Literals.JMS_ROUTER__JNDI, - JmsroutingFactory.eINSTANCE.createJndi())); - - newChildDescriptors.add - (createChildParameter - (JmsroutingPackage.Literals.JMS_ROUTER__HIGH_WATER_MARK, - JmsroutingFactory.eINSTANCE.createHighWaterMark())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java (working copy) @@ -1,93 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the Jms-routing-1 edit plugin. - * - * - * @generated - */ -public final class Jmsrouting1EditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final Jmsrouting1EditPlugin INSTANCE = new Jmsrouting1EditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public Jmsrouting1EditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java (working copy) @@ -1,209 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Jndi} object. - * - * - * @generated - */ -public class JndiItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public JndiItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContextFactoryPropertyDescriptor(object); - addNamingFactoryPropertyDescriptor(object); - addProviderUrlPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Context Factory feature. - * - * - * @generated - */ - protected void addContextFactoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Jndi_contextFactory_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Jndi_contextFactory_feature", "_UI_Jndi_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JNDI__CONTEXT_FACTORY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Naming Factory feature. - * - * - * @generated - */ - protected void addNamingFactoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Jndi_namingFactory_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Jndi_namingFactory_feature", "_UI_Jndi_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JNDI__NAMING_FACTORY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Provider Url feature. - * - * - * @generated - */ - protected void addProviderUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Jndi_providerUrl_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Jndi_providerUrl_feature", "_UI_Jndi_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.JNDI__PROVIDER_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Jndi.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Jndi")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((Jndi)object).getContextFactory(); - return label == null || label.length() == 0 ? - getString("_UI_Jndi_type") : //$NON-NLS-1$ - getString("_UI_Jndi_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Jndi.class)) { - case JmsroutingPackage.JNDI__CONTEXT_FACTORY: - case JmsroutingPackage.JNDI__NAMING_FACTORY: - case JmsroutingPackage.JNDI__PROVIDER_URL: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java (working copy) @@ -1,209 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - - -import java.util.Collection; -import java.util.List; - - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Connection} object. - * - * - * @generated - */ -public class ConnectionItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ConnectionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addFactoryPropertyDescriptor(object); - addSecurityCredentialPropertyDescriptor(object); - addSecurityPrincipalPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Factory feature. - * - * - * @generated - */ - protected void addFactoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Connection_factory_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Connection_factory_feature", "_UI_Connection_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.CONNECTION__FACTORY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Security Credential feature. - * - * - * @generated - */ - protected void addSecurityCredentialPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Connection_securityCredential_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Connection_securityCredential_feature", "_UI_Connection_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.CONNECTION__SECURITY_CREDENTIAL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Security Principal feature. - * - * - * @generated - */ - protected void addSecurityPrincipalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Connection_securityPrincipal_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Connection_securityPrincipal_feature", "_UI_Connection_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - JmsroutingPackage.Literals.CONNECTION__SECURITY_PRINCIPAL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Connection.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Connection")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((Connection)object).getFactory(); - return label == null || label.length() == 0 ? - getString("_UI_Connection_type") : //$NON-NLS-1$ - getString("_UI_Connection_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Connection.class)) { - case JmsroutingPackage.CONNECTION__FACTORY: - case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL: - case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Jmsrouting1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java (working copy) @@ -1,346 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.provider; - -import java.util.ArrayList; -import java.util.Collection; - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.jboss.tools.smooks.model.jmsrouting.util.JmsroutingAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class JmsroutingItemProviderAdapterFactory extends JmsroutingAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public JmsroutingItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.Connection} instances. - * - * - * @generated - */ - protected ConnectionItemProvider connectionItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Connection}. - * - * - * @generated - */ - @Override - public Adapter createConnectionAdapter() { - if (connectionItemProvider == null) { - connectionItemProvider = new ConnectionItemProvider(this); - } - - return connectionItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot} instances. - * - * - * @generated - */ - protected JmsDocumentRootItemProvider jmsDocumentRootItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot}. - * - * - * @generated - */ - @Override - public Adapter createJmsDocumentRootAdapter() { - if (jmsDocumentRootItemProvider == null) { - jmsDocumentRootItemProvider = new JmsDocumentRootItemProvider(this); - } - - return jmsDocumentRootItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark} instances. - * - * - * @generated - */ - protected HighWaterMarkItemProvider highWaterMarkItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark}. - * - * - * @generated - */ - @Override - public Adapter createHighWaterMarkAdapter() { - if (highWaterMarkItemProvider == null) { - highWaterMarkItemProvider = new HighWaterMarkItemProvider(this); - } - - return highWaterMarkItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.Jndi} instances. - * - * - * @generated - */ - protected JndiItemProvider jndiItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Jndi}. - * - * - * @generated - */ - @Override - public Adapter createJndiAdapter() { - if (jndiItemProvider == null) { - jndiItemProvider = new JndiItemProvider(this); - } - - return jndiItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.Message} instances. - * - * - * @generated - */ - protected MessageItemProvider messageItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Message}. - * - * - * @generated - */ - @Override - public Adapter createMessageAdapter() { - if (messageItemProvider == null) { - messageItemProvider = new MessageItemProvider(this); - } - - return messageItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter} instances. - * - * - * @generated - */ - protected JmsRouterItemProvider jmsRouterItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter}. - * - * - * @generated - */ - @Override - public Adapter createJmsRouterAdapter() { - if (jmsRouterItemProvider == null) { - jmsRouterItemProvider = new JmsRouterItemProvider(this); - } - - return jmsRouterItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.jmsrouting.Session} instances. - * - * - * @generated - */ - protected SessionItemProvider sessionItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Session}. - * - * - * @generated - */ - @Override - public Adapter createSessionAdapter() { - if (sessionItemProvider == null) { - sessionItemProvider = new SessionItemProvider(this); - } - - return sessionItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (connectionItemProvider != null) connectionItemProvider.dispose(); - if (jmsDocumentRootItemProvider != null) jmsDocumentRootItemProvider.dispose(); - if (highWaterMarkItemProvider != null) highWaterMarkItemProvider.dispose(); - if (jndiItemProvider != null) jndiItemProvider.dispose(); - if (messageItemProvider != null) messageItemProvider.dispose(); - if (jmsRouterItemProvider != null) jmsRouterItemProvider.dispose(); - if (sessionItemProvider != null) sessionItemProvider.dispose(); - } - -} Index: src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java (working copy) @@ -1,204 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Jndi'. - * - * - * - * - * The JNDI configuration. - * - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory Context Factory}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory Naming Factory}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl Provider Url}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi() - * @model extendedMetaData="name='jndi' kind='empty'" - * @generated - */ -public interface Jndi extends EObject { - /** - * Returns the value of the 'Context Factory' attribute. - * The default value is "org.jnp.interfaces.NamingContextFactory". - * - * - * - * - * The JNDI ContextFactory to use - * - * - * @return the value of the 'Context Factory' attribute. - * @see #isSetContextFactory() - * @see #unsetContextFactory() - * @see #setContextFactory(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi_ContextFactory() - * @model default="org.jnp.interfaces.NamingContextFactory" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='contextFactory'" - * @generated - */ - String getContextFactory(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory Context Factory}' attribute. - * - * - * @param value the new value of the 'Context Factory' attribute. - * @see #isSetContextFactory() - * @see #unsetContextFactory() - * @see #getContextFactory() - * @generated - */ - void setContextFactory(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory Context Factory}' attribute. - * - * - * @see #isSetContextFactory() - * @see #getContextFactory() - * @see #setContextFactory(String) - * @generated - */ - void unsetContextFactory(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory Context Factory}' attribute is set. - * - * - * @return whether the value of the 'Context Factory' attribute is set. - * @see #unsetContextFactory() - * @see #getContextFactory() - * @see #setContextFactory(String) - * @generated - */ - boolean isSetContextFactory(); - - /** - * Returns the value of the 'Naming Factory' attribute. - * The default value is "org.jboss.naming:java.naming.factory.url.pkgs". - * - * - * - * - * The JNDI NamingFactory to use - * - * - * @return the value of the 'Naming Factory' attribute. - * @see #isSetNamingFactory() - * @see #unsetNamingFactory() - * @see #setNamingFactory(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi_NamingFactory() - * @model default="org.jboss.naming:java.naming.factory.url.pkgs" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='namingFactory'" - * @generated - */ - String getNamingFactory(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory Naming Factory}' attribute. - * - * - * @param value the new value of the 'Naming Factory' attribute. - * @see #isSetNamingFactory() - * @see #unsetNamingFactory() - * @see #getNamingFactory() - * @generated - */ - void setNamingFactory(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory Naming Factory}' attribute. - * - * - * @see #isSetNamingFactory() - * @see #getNamingFactory() - * @see #setNamingFactory(String) - * @generated - */ - void unsetNamingFactory(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory Naming Factory}' attribute is set. - * - * - * @return whether the value of the 'Naming Factory' attribute is set. - * @see #unsetNamingFactory() - * @see #getNamingFactory() - * @see #setNamingFactory(String) - * @generated - */ - boolean isSetNamingFactory(); - - /** - * Returns the value of the 'Provider Url' attribute. - * The default value is "jnp://localhost:1099". - * - * - * - * - * The JNDI Provider URL to use. - * - * - * @return the value of the 'Provider Url' attribute. - * @see #isSetProviderUrl() - * @see #unsetProviderUrl() - * @see #setProviderUrl(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi_ProviderUrl() - * @model default="jnp://localhost:1099" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='providerUrl'" - * @generated - */ - String getProviderUrl(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl Provider Url}' attribute. - * - * - * @param value the new value of the 'Provider Url' attribute. - * @see #isSetProviderUrl() - * @see #unsetProviderUrl() - * @see #getProviderUrl() - * @generated - */ - void setProviderUrl(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl Provider Url}' attribute. - * - * - * @see #isSetProviderUrl() - * @see #getProviderUrl() - * @see #setProviderUrl(String) - * @generated - */ - void unsetProviderUrl(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl Provider Url}' attribute is set. - * - * - * @return whether the value of the 'Provider Url' attribute is set. - * @see #unsetProviderUrl() - * @see #getProviderUrl() - * @see #setProviderUrl(String) - * @generated - */ - boolean isSetProviderUrl(); - -} // Jndi Index: src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java (working copy) @@ -1,313 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.util; - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; -import org.jboss.tools.smooks.model.jmsrouting.Message; -import org.jboss.tools.smooks.model.jmsrouting.Session; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; -import org.jboss.tools.smooks.model.smooks.ElementVisitor; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage - * @generated - */ -public class JmsroutingAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static JmsroutingPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public JmsroutingAdapterFactory() { - if (modelPackage == null) { - modelPackage = JmsroutingPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected JmsroutingSwitch modelSwitch = - new JmsroutingSwitch() { - @Override - public Adapter caseConnection(Connection object) { - return createConnectionAdapter(); - } - @Override - public Adapter caseJmsDocumentRoot(JmsDocumentRoot object) { - return createJmsDocumentRootAdapter(); - } - @Override - public Adapter caseHighWaterMark(HighWaterMark object) { - return createHighWaterMarkAdapter(); - } - @Override - public Adapter caseJndi(Jndi object) { - return createJndiAdapter(); - } - @Override - public Adapter caseMessage(Message object) { - return createMessageAdapter(); - } - @Override - public Adapter caseJmsRouter(JmsRouter object) { - return createJmsRouterAdapter(); - } - @Override - public Adapter caseSession(Session object) { - return createSessionAdapter(); - } - @Override - public Adapter caseAnyType(AnyType object) { - return createAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractAnyType(AbstractAnyType object) { - return createAbstractAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) { - return createAbstractResourceConfigAdapter(); - } - @Override - public Adapter caseElementVisitor(ElementVisitor object) { - return createElementVisitorAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.Connection Connection}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.Connection - * @generated - */ - public Adapter createConnectionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot Jms Document Root}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot - * @generated - */ - public Adapter createJmsDocumentRootAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark High Water Mark}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.HighWaterMark - * @generated - */ - public Adapter createHighWaterMarkAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.Jndi Jndi}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.Jndi - * @generated - */ - public Adapter createJndiAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.Message Message}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.Message - * @generated - */ - public Adapter createMessageAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter Jms Router}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter - * @generated - */ - public Adapter createJmsRouterAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.jmsrouting.Session Session}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.jmsrouting.Session - * @generated - */ - public Adapter createSessionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.xml.type.AnyType - * @generated - */ - public Adapter createAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link common.AbstractAnyType Abstract Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see common.AbstractAnyType - * @generated - */ - public Adapter createAbstractAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractResourceConfig Abstract Resource Config}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractResourceConfig - * @generated - */ - public Adapter createAbstractResourceConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.ElementVisitor Element Visitor}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.ElementVisitor - * @generated - */ - public Adapter createElementVisitorAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //JmsroutingAdapterFactory Index: src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java (working copy) @@ -1,56 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.jboss.tools.smooks.model.jmsrouting.util.JmsroutingResourceImpl - * @generated - */ -public class JmsroutingResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public JmsroutingResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - XMLResource result = new JmsroutingResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); - return result; - } - -} //JmsroutingResourceFactoryImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java (working copy) @@ -1,32 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.jboss.tools.smooks.model.jmsrouting.util.JmsroutingResourceFactoryImpl - * @generated - */ -public class JmsroutingResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public JmsroutingResourceImpl(URI uri) { - super(uri); - } - -} //JmsroutingResourceImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java (working copy) @@ -1,54 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.util; - -import java.util.Map; - - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class JmsroutingXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public JmsroutingXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - JmsroutingPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the JmsroutingResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new JmsroutingResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new JmsroutingResourceFactoryImpl()); - } - return registrations; - } - -} //JmsroutingXMLProcessor Index: src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java (working copy) @@ -1,331 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.util; - -import java.util.List; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; -import org.jboss.tools.smooks.model.jmsrouting.Message; -import org.jboss.tools.smooks.model.jmsrouting.Session; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; -import org.jboss.tools.smooks.model.smooks.ElementVisitor; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage - * @generated - */ -public class JmsroutingSwitch { - /** - * The cached model package - * - * - * @generated - */ - protected static JmsroutingPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public JmsroutingSwitch() { - if (modelPackage == null) { - modelPackage = JmsroutingPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case JmsroutingPackage.CONNECTION: { - Connection connection = (Connection)theEObject; - T result = caseConnection(connection); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JmsroutingPackage.JMS_DOCUMENT_ROOT: { - JmsDocumentRoot jmsDocumentRoot = (JmsDocumentRoot)theEObject; - T result = caseJmsDocumentRoot(jmsDocumentRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JmsroutingPackage.HIGH_WATER_MARK: { - HighWaterMark highWaterMark = (HighWaterMark)theEObject; - T result = caseHighWaterMark(highWaterMark); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JmsroutingPackage.JNDI: { - Jndi jndi = (Jndi)theEObject; - T result = caseJndi(jndi); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JmsroutingPackage.MESSAGE: { - Message message = (Message)theEObject; - T result = caseMessage(message); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JmsroutingPackage.JMS_ROUTER: { - JmsRouter jmsRouter = (JmsRouter)theEObject; - T result = caseJmsRouter(jmsRouter); - if (result == null) result = caseElementVisitor(jmsRouter); - if (result == null) result = caseAbstractResourceConfig(jmsRouter); - if (result == null) result = caseAbstractAnyType(jmsRouter); - if (result == null) result = caseAnyType(jmsRouter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JmsroutingPackage.SESSION: { - Session session = (Session)theEObject; - T result = caseSession(session); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Connection'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Connection'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConnection(Connection object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Jms Document Root'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Jms Document Root'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseJmsDocumentRoot(JmsDocumentRoot object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'High Water Mark'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'High Water Mark'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseHighWaterMark(HighWaterMark object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Jndi'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Jndi'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseJndi(Jndi object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Message'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Message'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMessage(Message object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Jms Router'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Jms Router'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseJmsRouter(JmsRouter object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Session'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Session'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSession(Session object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAnyType(AnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAnyType(AbstractAnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Resource Config'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Resource Config'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractResourceConfig(AbstractResourceConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Element Visitor'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Element Visitor'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseElementVisitor(ElementVisitor object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} //JmsroutingSwitch Index: src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java (working copy) @@ -1,352 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.jboss.tools.smooks.model.smooks.ElementVisitor; - -/** - * - * A representation of the model object 'Jms Router'. - * - * - * - * - * JMS Router - * - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage Message}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection Connection}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession Session}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi Jndi}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getHighWaterMark High Water Mark}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId Bean Id}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination Destination}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore Execute Before}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement Route On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS Route On Element NS}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter() - * @model extendedMetaData="name='router' kind='elementOnly'" - * @generated - */ -public interface JmsRouter extends ElementVisitor { - /** - * Returns the value of the 'Message' containment reference. - * - * - * - * - * The message configuration. - * - * - * @return the value of the 'Message' containment reference. - * @see #setMessage(Message) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Message() - * @model containment="true" - * extendedMetaData="kind='element' name='message' namespace='##targetNamespace'" - * @generated - */ - Message getMessage(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage Message}' containment reference. - * - * - * @param value the new value of the 'Message' containment reference. - * @see #getMessage() - * @generated - */ - void setMessage(Message value); - - /** - * Returns the value of the 'Connection' containment reference. - * - * - * - * - * The JMS connection configuration. - * - * - * @return the value of the 'Connection' containment reference. - * @see #setConnection(Connection) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Connection() - * @model containment="true" - * extendedMetaData="kind='element' name='connection' namespace='##targetNamespace'" - * @generated - */ - Connection getConnection(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection Connection}' containment reference. - * - * - * @param value the new value of the 'Connection' containment reference. - * @see #getConnection() - * @generated - */ - void setConnection(Connection value); - - /** - * Returns the value of the 'Session' containment reference. - * - * - * - * - * The JMS session configuration. - * - * - * @return the value of the 'Session' containment reference. - * @see #setSession(Session) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Session() - * @model containment="true" - * extendedMetaData="kind='element' name='session' namespace='##targetNamespace'" - * @generated - */ - Session getSession(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession Session}' containment reference. - * - * - * @param value the new value of the 'Session' containment reference. - * @see #getSession() - * @generated - */ - void setSession(Session value); - - /** - * Returns the value of the 'Jndi' containment reference. - * - * - * - * - * The JNDI configuration. - * - * - * @return the value of the 'Jndi' containment reference. - * @see #setJndi(Jndi) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Jndi() - * @model containment="true" - * extendedMetaData="kind='element' name='jndi' namespace='##targetNamespace'" - * @generated - */ - Jndi getJndi(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi Jndi}' containment reference. - * - * - * @param value the new value of the 'Jndi' containment reference. - * @see #getJndi() - * @generated - */ - void setJndi(Jndi value); - - /** - * Returns the value of the 'High Water Mark' containment reference. - * - * - * - * - * The configuration for the max number of messages that can be sitting in the - * JMS Destination at any any time. - * - * - * @return the value of the 'High Water Mark' containment reference. - * @see #setHighWaterMark(HighWaterMark) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_HighWaterMark() - * @model containment="true" - * extendedMetaData="kind='element' name='highWaterMark' namespace='##targetNamespace'" - * @generated - */ - HighWaterMark getHighWaterMark(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getHighWaterMark High Water Mark}' containment reference. - * - * - * @param value the new value of the 'High Water Mark' containment reference. - * @see #getHighWaterMark() - * @generated - */ - void setHighWaterMark(HighWaterMark value); - - /** - * Returns the value of the 'Bean Id' attribute. - * - * - * - * - * The beanId of the bean from the bean context to be used as message payload. - * - * - * @return the value of the 'Bean Id' attribute. - * @see #setBeanId(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_BeanId() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='beanId'" - * @generated - */ - String getBeanId(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId Bean Id}' attribute. - * - * - * @param value the new value of the 'Bean Id' attribute. - * @see #getBeanId() - * @generated - */ - void setBeanId(String value); - - /** - * Returns the value of the 'Destination' attribute. - * - * - * - * - * The JMS destination string - * - * - * @return the value of the 'Destination' attribute. - * @see #setDestination(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Destination() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='destination'" - * @generated - */ - String getDestination(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination Destination}' attribute. - * - * - * @param value the new value of the 'Destination' attribute. - * @see #getDestination() - * @generated - */ - void setDestination(String value); - - /** - * Returns the value of the 'Execute Before' attribute. - * The default value is "false". - * - * - * - * - * If the routing is done before or after the selected element. Default is 'false'. - * - * - * @return the value of the 'Execute Before' attribute. - * @see #isSetExecuteBefore() - * @see #unsetExecuteBefore() - * @see #setExecuteBefore(boolean) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_ExecuteBefore() - * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" - * extendedMetaData="kind='attribute' name='executeBefore'" - * @generated - */ - boolean isExecuteBefore(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore Execute Before}' attribute. - * - * - * @param value the new value of the 'Execute Before' attribute. - * @see #isSetExecuteBefore() - * @see #unsetExecuteBefore() - * @see #isExecuteBefore() - * @generated - */ - void setExecuteBefore(boolean value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore Execute Before}' attribute. - * - * - * @see #isSetExecuteBefore() - * @see #isExecuteBefore() - * @see #setExecuteBefore(boolean) - * @generated - */ - void unsetExecuteBefore(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore Execute Before}' attribute is set. - * - * - * @return whether the value of the 'Execute Before' attribute is set. - * @see #unsetExecuteBefore() - * @see #isExecuteBefore() - * @see #setExecuteBefore(boolean) - * @generated - */ - boolean isSetExecuteBefore(); - - /** - * Returns the value of the 'Route On Element' attribute. - * - * - * - * - * The element to route on. - * - * - * @return the value of the 'Route On Element' attribute. - * @see #setRouteOnElement(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_RouteOnElement() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" - * extendedMetaData="kind='attribute' name='routeOnElement'" - * @generated - */ - String getRouteOnElement(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement Route On Element}' attribute. - * - * - * @param value the new value of the 'Route On Element' attribute. - * @see #getRouteOnElement() - * @generated - */ - void setRouteOnElement(String value); - - /** - * Returns the value of the 'Route On Element NS' attribute. - * - * - * - * - * The namespace of the routeOnElement element. - * - * - * @return the value of the 'Route On Element NS' attribute. - * @see #setRouteOnElementNS(String) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_RouteOnElementNS() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='routeOnElementNS'" - * @generated - */ - String getRouteOnElementNS(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS Route On Element NS}' attribute. - * - * - * @param value the new value of the 'Route On Element NS' attribute. - * @see #getRouteOnElementNS() - * @generated - */ - void setRouteOnElementNS(String value); - -} // JmsRouter Index: src/org/jboss/tools/smooks/model/jmsrouting/Session.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/Session.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/Session.java (working copy) @@ -1,150 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Session'. - * - * - * - * - * The JMS session configuration. - * - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode Acknowledge Mode}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted Transacted}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getSession() - * @model extendedMetaData="name='session' kind='empty'" - * @generated - */ -public interface Session extends EObject { - /** - * Returns the value of the 'Acknowledge Mode' attribute. - * The default value is "AUTO_ACKNOWLEDGE". - * The literals are from the enumeration {@link org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode}. - * - * - * - * - * The acknowledge mode to use. One of 'AUTO_ACKNOWLEDGE'(default), 'CLIENT_ACKNOWLEDGE', 'DUPS_OK_ACKNOWLEDGE'. - * - * - * @return the value of the 'Acknowledge Mode' attribute. - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @see #isSetAcknowledgeMode() - * @see #unsetAcknowledgeMode() - * @see #setAcknowledgeMode(AcknowledgeMode) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getSession_AcknowledgeMode() - * @model default="AUTO_ACKNOWLEDGE" unsettable="true" - * extendedMetaData="kind='attribute' name='acknowledgeMode'" - * @generated - */ - AcknowledgeMode getAcknowledgeMode(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode Acknowledge Mode}' attribute. - * - * - * @param value the new value of the 'Acknowledge Mode' attribute. - * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode - * @see #isSetAcknowledgeMode() - * @see #unsetAcknowledgeMode() - * @see #getAcknowledgeMode() - * @generated - */ - void setAcknowledgeMode(AcknowledgeMode value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode Acknowledge Mode}' attribute. - * - * - * @see #isSetAcknowledgeMode() - * @see #getAcknowledgeMode() - * @see #setAcknowledgeMode(AcknowledgeMode) - * @generated - */ - void unsetAcknowledgeMode(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode Acknowledge Mode}' attribute is set. - * - * - * @return whether the value of the 'Acknowledge Mode' attribute is set. - * @see #unsetAcknowledgeMode() - * @see #getAcknowledgeMode() - * @see #setAcknowledgeMode(AcknowledgeMode) - * @generated - */ - boolean isSetAcknowledgeMode(); - - /** - * Returns the value of the 'Transacted' attribute. - * The default value is "false". - * - * - * - * - * Determines if the session should be transacted. Defaults to 'false'. - * - * - * @return the value of the 'Transacted' attribute. - * @see #isSetTransacted() - * @see #unsetTransacted() - * @see #setTransacted(boolean) - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getSession_Transacted() - * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" - * extendedMetaData="kind='attribute' name='transacted'" - * @generated - */ - boolean isTransacted(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted Transacted}' attribute. - * - * - * @param value the new value of the 'Transacted' attribute. - * @see #isSetTransacted() - * @see #unsetTransacted() - * @see #isTransacted() - * @generated - */ - void setTransacted(boolean value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted Transacted}' attribute. - * - * - * @see #isSetTransacted() - * @see #isTransacted() - * @see #setTransacted(boolean) - * @generated - */ - void unsetTransacted(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted Transacted}' attribute is set. - * - * - * @return whether the value of the 'Transacted' attribute is set. - * @see #unsetTransacted() - * @see #isTransacted() - * @see #setTransacted(boolean) - * @generated - */ - boolean isSetTransacted(); - -} // Session Index: src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java (working copy) @@ -1,100 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage - * @generated - */ -public interface JmsroutingFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - JmsroutingFactory eINSTANCE = org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingFactoryImpl.init(); - - /** - * Returns a new object of class 'Connection'. - * - * - * @return a new object of class 'Connection'. - * @generated - */ - Connection createConnection(); - - /** - * Returns a new object of class 'Jms Document Root'. - * - * - * @return a new object of class 'Jms Document Root'. - * @generated - */ - JmsDocumentRoot createJmsDocumentRoot(); - - /** - * Returns a new object of class 'High Water Mark'. - * - * - * @return a new object of class 'High Water Mark'. - * @generated - */ - HighWaterMark createHighWaterMark(); - - /** - * Returns a new object of class 'Jndi'. - * - * - * @return a new object of class 'Jndi'. - * @generated - */ - Jndi createJndi(); - - /** - * Returns a new object of class 'Message'. - * - * - * @return a new object of class 'Message'. - * @generated - */ - Message createMessage(); - - /** - * Returns a new object of class 'Jms Router'. - * - * - * @return a new object of class 'Jms Router'. - * @generated - */ - JmsRouter createJmsRouter(); - - /** - * Returns a new object of class 'Session'. - * - * - * @return a new object of class 'Session'. - * @generated - */ - Session createSession(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - JmsroutingPackage getJmsroutingPackage(); - -} //JmsroutingFactory Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java (working copy) @@ -1,377 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; - -/** - * - * An implementation of the model object 'Jndi'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl#getContextFactory Context Factory}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl#getNamingFactory Naming Factory}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl#getProviderUrl Provider Url}
  • - *
- *

- * - * @generated - */ -public class JndiImpl extends EObjectImpl implements Jndi { - /** - * The default value of the '{@link #getContextFactory() Context Factory}' attribute. - * - * - * @see #getContextFactory() - * @generated - * @ordered - */ - protected static final String CONTEXT_FACTORY_EDEFAULT = "org.jnp.interfaces.NamingContextFactory"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getContextFactory() Context Factory}' attribute. - * - * - * @see #getContextFactory() - * @generated - * @ordered - */ - protected String contextFactory = CONTEXT_FACTORY_EDEFAULT; - - /** - * This is true if the Context Factory attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean contextFactoryESet; - - /** - * The default value of the '{@link #getNamingFactory() Naming Factory}' attribute. - * - * - * @see #getNamingFactory() - * @generated - * @ordered - */ - protected static final String NAMING_FACTORY_EDEFAULT = "org.jboss.naming:java.naming.factory.url.pkgs"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getNamingFactory() Naming Factory}' attribute. - * - * - * @see #getNamingFactory() - * @generated - * @ordered - */ - protected String namingFactory = NAMING_FACTORY_EDEFAULT; - - /** - * This is true if the Naming Factory attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean namingFactoryESet; - - /** - * The default value of the '{@link #getProviderUrl() Provider Url}' attribute. - * - * - * @see #getProviderUrl() - * @generated - * @ordered - */ - protected static final String PROVIDER_URL_EDEFAULT = "jnp://localhost:1099"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getProviderUrl() Provider Url}' attribute. - * - * - * @see #getProviderUrl() - * @generated - * @ordered - */ - protected String providerUrl = PROVIDER_URL_EDEFAULT; - - /** - * This is true if the Provider Url attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean providerUrlESet; - - /** - * - * - * @generated - */ - protected JndiImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.JNDI; - } - - /** - * - * - * @generated - */ - public String getContextFactory() { - return contextFactory; - } - - /** - * - * - * @generated - */ - public void setContextFactory(String newContextFactory) { - String oldContextFactory = contextFactory; - contextFactory = newContextFactory; - boolean oldContextFactoryESet = contextFactoryESet; - contextFactoryESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JNDI__CONTEXT_FACTORY, oldContextFactory, contextFactory, !oldContextFactoryESet)); - } - - /** - * - * - * @generated - */ - public void unsetContextFactory() { - String oldContextFactory = contextFactory; - boolean oldContextFactoryESet = contextFactoryESet; - contextFactory = CONTEXT_FACTORY_EDEFAULT; - contextFactoryESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.JNDI__CONTEXT_FACTORY, oldContextFactory, CONTEXT_FACTORY_EDEFAULT, oldContextFactoryESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetContextFactory() { - return contextFactoryESet; - } - - /** - * - * - * @generated - */ - public String getNamingFactory() { - return namingFactory; - } - - /** - * - * - * @generated - */ - public void setNamingFactory(String newNamingFactory) { - String oldNamingFactory = namingFactory; - namingFactory = newNamingFactory; - boolean oldNamingFactoryESet = namingFactoryESet; - namingFactoryESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JNDI__NAMING_FACTORY, oldNamingFactory, namingFactory, !oldNamingFactoryESet)); - } - - /** - * - * - * @generated - */ - public void unsetNamingFactory() { - String oldNamingFactory = namingFactory; - boolean oldNamingFactoryESet = namingFactoryESet; - namingFactory = NAMING_FACTORY_EDEFAULT; - namingFactoryESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.JNDI__NAMING_FACTORY, oldNamingFactory, NAMING_FACTORY_EDEFAULT, oldNamingFactoryESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetNamingFactory() { - return namingFactoryESet; - } - - /** - * - * - * @generated - */ - public String getProviderUrl() { - return providerUrl; - } - - /** - * - * - * @generated - */ - public void setProviderUrl(String newProviderUrl) { - String oldProviderUrl = providerUrl; - providerUrl = newProviderUrl; - boolean oldProviderUrlESet = providerUrlESet; - providerUrlESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JNDI__PROVIDER_URL, oldProviderUrl, providerUrl, !oldProviderUrlESet)); - } - - /** - * - * - * @generated - */ - public void unsetProviderUrl() { - String oldProviderUrl = providerUrl; - boolean oldProviderUrlESet = providerUrlESet; - providerUrl = PROVIDER_URL_EDEFAULT; - providerUrlESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.JNDI__PROVIDER_URL, oldProviderUrl, PROVIDER_URL_EDEFAULT, oldProviderUrlESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetProviderUrl() { - return providerUrlESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.JNDI__CONTEXT_FACTORY: - return getContextFactory(); - case JmsroutingPackage.JNDI__NAMING_FACTORY: - return getNamingFactory(); - case JmsroutingPackage.JNDI__PROVIDER_URL: - return getProviderUrl(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.JNDI__CONTEXT_FACTORY: - setContextFactory((String)newValue); - return; - case JmsroutingPackage.JNDI__NAMING_FACTORY: - setNamingFactory((String)newValue); - return; - case JmsroutingPackage.JNDI__PROVIDER_URL: - setProviderUrl((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.JNDI__CONTEXT_FACTORY: - unsetContextFactory(); - return; - case JmsroutingPackage.JNDI__NAMING_FACTORY: - unsetNamingFactory(); - return; - case JmsroutingPackage.JNDI__PROVIDER_URL: - unsetProviderUrl(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.JNDI__CONTEXT_FACTORY: - return isSetContextFactory(); - case JmsroutingPackage.JNDI__NAMING_FACTORY: - return isSetNamingFactory(); - case JmsroutingPackage.JNDI__PROVIDER_URL: - return isSetProviderUrl(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (contextFactory: "); //$NON-NLS-1$ - if (contextFactoryESet) result.append(contextFactory); else result.append(""); //$NON-NLS-1$ - result.append(", namingFactory: "); //$NON-NLS-1$ - if (namingFactoryESet) result.append(namingFactory); else result.append(""); //$NON-NLS-1$ - result.append(", providerUrl: "); //$NON-NLS-1$ - if (providerUrlESet) result.append(providerUrl); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //JndiImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java (working copy) @@ -1,1105 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.jboss.tools.smooks.model.common.CommonPackage; -import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl; -import org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.DeliveryMode; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; -import org.jboss.tools.smooks.model.jmsrouting.Message; -import org.jboss.tools.smooks.model.jmsrouting.MessageType; -import org.jboss.tools.smooks.model.jmsrouting.Session; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; -import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class JmsroutingPackageImpl extends EPackageImpl implements JmsroutingPackage { - /** - * - * - * @generated - */ - private EClass connectionEClass = null; - - /** - * - * - * @generated - */ - private EClass jmsDocumentRootEClass = null; - - /** - * - * - * @generated - */ - private EClass highWaterMarkEClass = null; - - /** - * - * - * @generated - */ - private EClass jndiEClass = null; - - /** - * - * - * @generated - */ - private EClass messageEClass = null; - - /** - * - * - * @generated - */ - private EClass jmsRouterEClass = null; - - /** - * - * - * @generated - */ - private EClass sessionEClass = null; - - /** - * - * - * @generated - */ - private EEnum acknowledgeModeEEnum = null; - - /** - * - * - * @generated - */ - private EEnum deliveryModeEEnum = null; - - /** - * - * - * @generated - */ - private EEnum messageTypeEEnum = null; - - /** - * - * - * @generated - */ - private EDataType acknowledgeModeObjectEDataType = null; - - /** - * - * - * @generated - */ - private EDataType deliveryModeObjectEDataType = null; - - /** - * - * - * @generated - */ - private EDataType messageTypeObjectEDataType = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#eNS_URI - * @see #init() - * @generated - */ - private JmsroutingPackageImpl() { - super(eNS_URI, JmsroutingFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *

Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *

Invocation of this method will not affect any packages that have - * already been initialized. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static JmsroutingPackage init() { - if (isInited) return (JmsroutingPackage)EPackage.Registry.INSTANCE.getEPackage(JmsroutingPackage.eNS_URI); - - // Obtain or create and register package - JmsroutingPackageImpl theJmsroutingPackage = (JmsroutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JmsroutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JmsroutingPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - - // Create package meta-data objects - theJmsroutingPackage.createPackageContents(); - theSmooksPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - - // Initialize created meta-data - theJmsroutingPackage.initializePackageContents(); - theSmooksPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theJmsroutingPackage.freeze(); - - return theJmsroutingPackage; - } - - /** - * - * - * @generated - */ - public EClass getConnection() { - return connectionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getConnection_Factory() { - return (EAttribute)connectionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getConnection_SecurityCredential() { - return (EAttribute)connectionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getConnection_SecurityPrincipal() { - return (EAttribute)connectionEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getJmsDocumentRoot() { - return jmsDocumentRootEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getJmsDocumentRoot_Mixed() { - return (EAttribute)jmsDocumentRootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getJmsDocumentRoot_XMLNSPrefixMap() { - return (EReference)jmsDocumentRootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getJmsDocumentRoot_XSISchemaLocation() { - return (EReference)jmsDocumentRootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getJmsDocumentRoot_Router() { - return (EReference)jmsDocumentRootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getHighWaterMark() { - return highWaterMarkEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHighWaterMark_Mark() { - return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getHighWaterMark_PollFrequency() { - return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getHighWaterMark_Timeout() { - return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getJndi() { - return jndiEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getJndi_ContextFactory() { - return (EAttribute)jndiEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getJndi_NamingFactory() { - return (EAttribute)jndiEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getJndi_ProviderUrl() { - return (EAttribute)jndiEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getMessage() { - return messageEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMessage_CorrelationIdPattern() { - return (EAttribute)messageEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getMessage_DeliveryMode() { - return (EAttribute)messageEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getMessage_Priority() { - return (EAttribute)messageEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getMessage_TimeToLive() { - return (EAttribute)messageEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getMessage_Type() { - return (EAttribute)messageEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EClass getJmsRouter() { - return jmsRouterEClass; - } - - /** - * - * - * @generated - */ - public EReference getJmsRouter_Message() { - return (EReference)jmsRouterEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getJmsRouter_Connection() { - return (EReference)jmsRouterEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getJmsRouter_Session() { - return (EReference)jmsRouterEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getJmsRouter_Jndi() { - return (EReference)jmsRouterEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EReference getJmsRouter_HighWaterMark() { - return (EReference)jmsRouterEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getJmsRouter_BeanId() { - return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getJmsRouter_Destination() { - return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getJmsRouter_ExecuteBefore() { - return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EAttribute getJmsRouter_RouteOnElement() { - return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EAttribute getJmsRouter_RouteOnElementNS() { - return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - public EClass getSession() { - return sessionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getSession_AcknowledgeMode() { - return (EAttribute)sessionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getSession_Transacted() { - return (EAttribute)sessionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EEnum getAcknowledgeMode() { - return acknowledgeModeEEnum; - } - - /** - * - * - * @generated - */ - public EEnum getDeliveryMode() { - return deliveryModeEEnum; - } - - /** - * - * - * @generated - */ - public EEnum getMessageType() { - return messageTypeEEnum; - } - - /** - * - * - * @generated - */ - public EDataType getAcknowledgeModeObject() { - return acknowledgeModeObjectEDataType; - } - - /** - * - * - * @generated - */ - public EDataType getDeliveryModeObject() { - return deliveryModeObjectEDataType; - } - - /** - * - * - * @generated - */ - public EDataType getMessageTypeObject() { - return messageTypeObjectEDataType; - } - - /** - * - * - * @generated - */ - public JmsroutingFactory getJmsroutingFactory() { - return (JmsroutingFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - connectionEClass = createEClass(CONNECTION); - createEAttribute(connectionEClass, CONNECTION__FACTORY); - createEAttribute(connectionEClass, CONNECTION__SECURITY_CREDENTIAL); - createEAttribute(connectionEClass, CONNECTION__SECURITY_PRINCIPAL); - - jmsDocumentRootEClass = createEClass(JMS_DOCUMENT_ROOT); - createEAttribute(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__MIXED); - createEReference(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - createEReference(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - createEReference(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__ROUTER); - - highWaterMarkEClass = createEClass(HIGH_WATER_MARK); - createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__MARK); - createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__POLL_FREQUENCY); - createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__TIMEOUT); - - jndiEClass = createEClass(JNDI); - createEAttribute(jndiEClass, JNDI__CONTEXT_FACTORY); - createEAttribute(jndiEClass, JNDI__NAMING_FACTORY); - createEAttribute(jndiEClass, JNDI__PROVIDER_URL); - - messageEClass = createEClass(MESSAGE); - createEAttribute(messageEClass, MESSAGE__CORRELATION_ID_PATTERN); - createEAttribute(messageEClass, MESSAGE__DELIVERY_MODE); - createEAttribute(messageEClass, MESSAGE__PRIORITY); - createEAttribute(messageEClass, MESSAGE__TIME_TO_LIVE); - createEAttribute(messageEClass, MESSAGE__TYPE); - - jmsRouterEClass = createEClass(JMS_ROUTER); - createEReference(jmsRouterEClass, JMS_ROUTER__MESSAGE); - createEReference(jmsRouterEClass, JMS_ROUTER__CONNECTION); - createEReference(jmsRouterEClass, JMS_ROUTER__SESSION); - createEReference(jmsRouterEClass, JMS_ROUTER__JNDI); - createEReference(jmsRouterEClass, JMS_ROUTER__HIGH_WATER_MARK); - createEAttribute(jmsRouterEClass, JMS_ROUTER__BEAN_ID); - createEAttribute(jmsRouterEClass, JMS_ROUTER__DESTINATION); - createEAttribute(jmsRouterEClass, JMS_ROUTER__EXECUTE_BEFORE); - createEAttribute(jmsRouterEClass, JMS_ROUTER__ROUTE_ON_ELEMENT); - createEAttribute(jmsRouterEClass, JMS_ROUTER__ROUTE_ON_ELEMENT_NS); - - sessionEClass = createEClass(SESSION); - createEAttribute(sessionEClass, SESSION__ACKNOWLEDGE_MODE); - createEAttribute(sessionEClass, SESSION__TRANSACTED); - - // Create enums - acknowledgeModeEEnum = createEEnum(ACKNOWLEDGE_MODE); - deliveryModeEEnum = createEEnum(DELIVERY_MODE); - messageTypeEEnum = createEEnum(MESSAGE_TYPE); - - // Create data types - acknowledgeModeObjectEDataType = createEDataType(ACKNOWLEDGE_MODE_OBJECT); - deliveryModeObjectEDataType = createEDataType(DELIVERY_MODE_OBJECT); - messageTypeObjectEDataType = createEDataType(MESSAGE_TYPE_OBJECT); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - jmsRouterEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor()); - - // Initialize classes and features; add operations and parameters - initEClass(connectionEClass, Connection.class, "Connection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getConnection_Factory(), theXMLTypePackage.getString(), "factory", "ConnectionFactory", 0, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getConnection_SecurityCredential(), theXMLTypePackage.getString(), "securityCredential", null, 0, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getConnection_SecurityPrincipal(), theXMLTypePackage.getString(), "securityPrincipal", null, 0, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(jmsDocumentRootEClass, JmsDocumentRoot.class, "JmsDocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getJmsDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsDocumentRoot_Router(), this.getJmsRouter(), null, "router", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(highWaterMarkEClass, HighWaterMark.class, "HighWaterMark", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getHighWaterMark_Mark(), theXMLTypePackage.getInt(), "mark", "200", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getHighWaterMark_PollFrequency(), theXMLTypePackage.getInt(), "pollFrequency", "1000", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getHighWaterMark_Timeout(), theXMLTypePackage.getInt(), "timeout", "60000", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(jndiEClass, Jndi.class, "Jndi", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getJndi_ContextFactory(), theXMLTypePackage.getString(), "contextFactory", "org.jnp.interfaces.NamingContextFactory", 0, 1, Jndi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getJndi_NamingFactory(), theXMLTypePackage.getString(), "namingFactory", "org.jboss.naming:java.naming.factory.url.pkgs", 0, 1, Jndi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getJndi_ProviderUrl(), theXMLTypePackage.getString(), "providerUrl", "jnp://localhost:1099", 0, 1, Jndi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(messageEClass, Message.class, "Message", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getMessage_CorrelationIdPattern(), theXMLTypePackage.getString(), "correlationIdPattern", null, 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getMessage_DeliveryMode(), this.getDeliveryMode(), "deliveryMode", "persistent", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getMessage_Priority(), theXMLTypePackage.getInt(), "priority", "4", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getMessage_TimeToLive(), theXMLTypePackage.getLong(), "timeToLive", "0", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getMessage_Type(), this.getMessageType(), "type", "TextMessage", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(jmsRouterEClass, JmsRouter.class, "JmsRouter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getJmsRouter_Message(), this.getMessage(), null, "message", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsRouter_Connection(), this.getConnection(), null, "connection", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsRouter_Session(), this.getSession(), null, "session", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsRouter_Jndi(), this.getJndi(), null, "jndi", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getJmsRouter_HighWaterMark(), this.getHighWaterMark(), null, "highWaterMark", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJmsRouter_BeanId(), theXMLTypePackage.getString(), "beanId", null, 1, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJmsRouter_Destination(), theXMLTypePackage.getString(), "destination", null, 1, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJmsRouter_ExecuteBefore(), theXMLTypePackage.getBoolean(), "executeBefore", "false", 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getJmsRouter_RouteOnElement(), theXMLTypePackage.getString(), "routeOnElement", null, 1, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getJmsRouter_RouteOnElementNS(), theXMLTypePackage.getString(), "routeOnElementNS", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(sessionEClass, Session.class, "Session", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getSession_AcknowledgeMode(), this.getAcknowledgeMode(), "acknowledgeMode", "AUTO_ACKNOWLEDGE", 0, 1, Session.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getSession_Transacted(), theXMLTypePackage.getBoolean(), "transacted", "false", 0, 1, Session.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - // Initialize enums and add enum literals - initEEnum(acknowledgeModeEEnum, AcknowledgeMode.class, "AcknowledgeMode"); //$NON-NLS-1$ - addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.AUTOACKNOWLEDGE); - addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.CLIENTACKNOWLEDGE); - addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.DUPSOKACKNOWLEDGE); - - initEEnum(deliveryModeEEnum, DeliveryMode.class, "DeliveryMode"); //$NON-NLS-1$ - addEEnumLiteral(deliveryModeEEnum, DeliveryMode.PERSISTENT); - addEEnumLiteral(deliveryModeEEnum, DeliveryMode.NON_PERSISTENT); - - initEEnum(messageTypeEEnum, MessageType.class, "MessageType"); //$NON-NLS-1$ - addEEnumLiteral(messageTypeEEnum, MessageType.TEXT_MESSAGE); - addEEnumLiteral(messageTypeEEnum, MessageType.OBJECT_MESSAGE); - addEEnumLiteral(messageTypeEEnum, MessageType.MAP_MESSAGE); - - // Initialize data types - initEDataType(acknowledgeModeObjectEDataType, AcknowledgeMode.class, "AcknowledgeModeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(deliveryModeObjectEDataType, DeliveryMode.class, "DeliveryModeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(messageTypeObjectEDataType, MessageType.class, "MessageTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * - * - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (acknowledgeModeEEnum, - source, - new String[] { - "name", "acknowledgeMode" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (acknowledgeModeObjectEDataType, - source, - new String[] { - "name", "acknowledgeMode:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "acknowledgeMode" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (connectionEClass, - source, - new String[] { - "name", "connection", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getConnection_Factory(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "factory" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getConnection_SecurityCredential(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "securityCredential" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getConnection_SecurityPrincipal(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "securityPrincipal" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (deliveryModeEEnum, - source, - new String[] { - "name", "deliveryMode" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (deliveryModeObjectEDataType, - source, - new String[] { - "name", "deliveryMode:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "deliveryMode" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (jmsDocumentRootEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsDocumentRoot_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsDocumentRoot_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsDocumentRoot_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsDocumentRoot_Router(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "router", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (highWaterMarkEClass, - source, - new String[] { - "name", "highWaterMark", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getHighWaterMark_Mark(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "mark" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getHighWaterMark_PollFrequency(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "pollFrequency" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getHighWaterMark_Timeout(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "timeout" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (jndiEClass, - source, - new String[] { - "name", "jndi", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJndi_ContextFactory(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "contextFactory" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJndi_NamingFactory(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "namingFactory" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJndi_ProviderUrl(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "providerUrl" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (messageEClass, - source, - new String[] { - "name", "message", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMessage_CorrelationIdPattern(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "correlationIdPattern", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMessage_DeliveryMode(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "deliveryMode" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMessage_Priority(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "priority" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMessage_TimeToLive(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "timeToLive" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMessage_Type(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "type" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (messageTypeEEnum, - source, - new String[] { - "name", "messageType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (messageTypeObjectEDataType, - source, - new String[] { - "name", "messageType:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "messageType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (jmsRouterEClass, - source, - new String[] { - "name", "router", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_Message(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "message", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_Connection(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "connection", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_Session(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "session", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_Jndi(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "jndi", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_HighWaterMark(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "highWaterMark", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_BeanId(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "beanId" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_Destination(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "destination" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_ExecuteBefore(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "executeBefore" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_RouteOnElement(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "routeOnElement" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getJmsRouter_RouteOnElementNS(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "routeOnElementNS" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (sessionEClass, - source, - new String[] { - "name", "session", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSession_AcknowledgeMode(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "acknowledgeMode" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSession_Transacted(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "transacted" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //JmsroutingPackageImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java (working copy) @@ -1,377 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * - * An implementation of the model object 'High Water Mark'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl#getMark Mark}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl#getPollFrequency Poll Frequency}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl#getTimeout Timeout}
  • - *
- *

- * - * @generated - */ -public class HighWaterMarkImpl extends EObjectImpl implements HighWaterMark { - /** - * The default value of the '{@link #getMark() Mark}' attribute. - * - * - * @see #getMark() - * @generated - * @ordered - */ - protected static final int MARK_EDEFAULT = 200; - - /** - * The cached value of the '{@link #getMark() Mark}' attribute. - * - * - * @see #getMark() - * @generated - * @ordered - */ - protected int mark = MARK_EDEFAULT; - - /** - * This is true if the Mark attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean markESet; - - /** - * The default value of the '{@link #getPollFrequency() Poll Frequency}' attribute. - * - * - * @see #getPollFrequency() - * @generated - * @ordered - */ - protected static final int POLL_FREQUENCY_EDEFAULT = 1000; - - /** - * The cached value of the '{@link #getPollFrequency() Poll Frequency}' attribute. - * - * - * @see #getPollFrequency() - * @generated - * @ordered - */ - protected int pollFrequency = POLL_FREQUENCY_EDEFAULT; - - /** - * This is true if the Poll Frequency attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean pollFrequencyESet; - - /** - * The default value of the '{@link #getTimeout() Timeout}' attribute. - * - * - * @see #getTimeout() - * @generated - * @ordered - */ - protected static final int TIMEOUT_EDEFAULT = 60000; - - /** - * The cached value of the '{@link #getTimeout() Timeout}' attribute. - * - * - * @see #getTimeout() - * @generated - * @ordered - */ - protected int timeout = TIMEOUT_EDEFAULT; - - /** - * This is true if the Timeout attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean timeoutESet; - - /** - * - * - * @generated - */ - protected HighWaterMarkImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.HIGH_WATER_MARK; - } - - /** - * - * - * @generated - */ - public int getMark() { - return mark; - } - - /** - * - * - * @generated - */ - public void setMark(int newMark) { - int oldMark = mark; - mark = newMark; - boolean oldMarkESet = markESet; - markESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.HIGH_WATER_MARK__MARK, oldMark, mark, !oldMarkESet)); - } - - /** - * - * - * @generated - */ - public void unsetMark() { - int oldMark = mark; - boolean oldMarkESet = markESet; - mark = MARK_EDEFAULT; - markESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.HIGH_WATER_MARK__MARK, oldMark, MARK_EDEFAULT, oldMarkESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetMark() { - return markESet; - } - - /** - * - * - * @generated - */ - public int getPollFrequency() { - return pollFrequency; - } - - /** - * - * - * @generated - */ - public void setPollFrequency(int newPollFrequency) { - int oldPollFrequency = pollFrequency; - pollFrequency = newPollFrequency; - boolean oldPollFrequencyESet = pollFrequencyESet; - pollFrequencyESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY, oldPollFrequency, pollFrequency, !oldPollFrequencyESet)); - } - - /** - * - * - * @generated - */ - public void unsetPollFrequency() { - int oldPollFrequency = pollFrequency; - boolean oldPollFrequencyESet = pollFrequencyESet; - pollFrequency = POLL_FREQUENCY_EDEFAULT; - pollFrequencyESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY, oldPollFrequency, POLL_FREQUENCY_EDEFAULT, oldPollFrequencyESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetPollFrequency() { - return pollFrequencyESet; - } - - /** - * - * - * @generated - */ - public int getTimeout() { - return timeout; - } - - /** - * - * - * @generated - */ - public void setTimeout(int newTimeout) { - int oldTimeout = timeout; - timeout = newTimeout; - boolean oldTimeoutESet = timeoutESet; - timeoutESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT, oldTimeout, timeout, !oldTimeoutESet)); - } - - /** - * - * - * @generated - */ - public void unsetTimeout() { - int oldTimeout = timeout; - boolean oldTimeoutESet = timeoutESet; - timeout = TIMEOUT_EDEFAULT; - timeoutESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT, oldTimeout, TIMEOUT_EDEFAULT, oldTimeoutESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetTimeout() { - return timeoutESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.HIGH_WATER_MARK__MARK: - return new Integer(getMark()); - case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY: - return new Integer(getPollFrequency()); - case JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT: - return new Integer(getTimeout()); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.HIGH_WATER_MARK__MARK: - setMark(((Integer)newValue).intValue()); - return; - case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY: - setPollFrequency(((Integer)newValue).intValue()); - return; - case JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT: - setTimeout(((Integer)newValue).intValue()); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.HIGH_WATER_MARK__MARK: - unsetMark(); - return; - case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY: - unsetPollFrequency(); - return; - case JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT: - unsetTimeout(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.HIGH_WATER_MARK__MARK: - return isSetMark(); - case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY: - return isSetPollFrequency(); - case JmsroutingPackage.HIGH_WATER_MARK__TIMEOUT: - return isSetTimeout(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mark: "); //$NON-NLS-1$ - if (markESet) result.append(mark); else result.append(""); //$NON-NLS-1$ - result.append(", pollFrequency: "); //$NON-NLS-1$ - if (pollFrequencyESet) result.append(pollFrequency); else result.append(""); //$NON-NLS-1$ - result.append(", timeout: "); //$NON-NLS-1$ - if (timeoutESet) result.append(timeout); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //HighWaterMarkImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java (working copy) @@ -1,764 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; -import org.jboss.tools.smooks.model.jmsrouting.Message; -import org.jboss.tools.smooks.model.jmsrouting.Session; -import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl; - -/** - * - * An implementation of the model object 'Jms Router'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getMessage Message}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getConnection Connection}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getSession Session}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getJndi Jndi}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getHighWaterMark High Water Mark}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getBeanId Bean Id}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getDestination Destination}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#isExecuteBefore Execute Before}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getRouteOnElement Route On Element}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getRouteOnElementNS Route On Element NS}
  • - *
- *

- * - * @generated - */ -public class JmsRouterImpl extends ElementVisitorImpl implements JmsRouter { - /** - * The cached value of the '{@link #getMessage() Message}' containment reference. - * - * - * @see #getMessage() - * @generated - * @ordered - */ - protected Message message; - - /** - * The cached value of the '{@link #getConnection() Connection}' containment reference. - * - * - * @see #getConnection() - * @generated - * @ordered - */ - protected Connection connection; - - /** - * The cached value of the '{@link #getSession() Session}' containment reference. - * - * - * @see #getSession() - * @generated - * @ordered - */ - protected Session session; - - /** - * The cached value of the '{@link #getJndi() Jndi}' containment reference. - * - * - * @see #getJndi() - * @generated - * @ordered - */ - protected Jndi jndi; - - /** - * The cached value of the '{@link #getHighWaterMark() High Water Mark}' containment reference. - * - * - * @see #getHighWaterMark() - * @generated - * @ordered - */ - protected HighWaterMark highWaterMark; - - /** - * The default value of the '{@link #getBeanId() Bean Id}' attribute. - * - * - * @see #getBeanId() - * @generated - * @ordered - */ - protected static final String BEAN_ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getBeanId() Bean Id}' attribute. - * - * - * @see #getBeanId() - * @generated - * @ordered - */ - protected String beanId = BEAN_ID_EDEFAULT; - - /** - * The default value of the '{@link #getDestination() Destination}' attribute. - * - * - * @see #getDestination() - * @generated - * @ordered - */ - protected static final String DESTINATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDestination() Destination}' attribute. - * - * - * @see #getDestination() - * @generated - * @ordered - */ - protected String destination = DESTINATION_EDEFAULT; - - /** - * The default value of the '{@link #isExecuteBefore() Execute Before}' attribute. - * - * - * @see #isExecuteBefore() - * @generated - * @ordered - */ - protected static final boolean EXECUTE_BEFORE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isExecuteBefore() Execute Before}' attribute. - * - * - * @see #isExecuteBefore() - * @generated - * @ordered - */ - protected boolean executeBefore = EXECUTE_BEFORE_EDEFAULT; - - /** - * This is true if the Execute Before attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean executeBeforeESet; - - /** - * The default value of the '{@link #getRouteOnElement() Route On Element}' attribute. - * - * - * @see #getRouteOnElement() - * @generated - * @ordered - */ - protected static final String ROUTE_ON_ELEMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRouteOnElement() Route On Element}' attribute. - * - * - * @see #getRouteOnElement() - * @generated - * @ordered - */ - protected String routeOnElement = ROUTE_ON_ELEMENT_EDEFAULT; - - /** - * The default value of the '{@link #getRouteOnElementNS() Route On Element NS}' attribute. - * - * - * @see #getRouteOnElementNS() - * @generated - * @ordered - */ - protected static final String ROUTE_ON_ELEMENT_NS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRouteOnElementNS() Route On Element NS}' attribute. - * - * - * @see #getRouteOnElementNS() - * @generated - * @ordered - */ - protected String routeOnElementNS = ROUTE_ON_ELEMENT_NS_EDEFAULT; - - /** - * - * - * @generated - */ - protected JmsRouterImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.JMS_ROUTER; - } - - /** - * - * - * @generated - */ - public Message getMessage() { - return message; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetMessage(Message newMessage, NotificationChain msgs) { - Message oldMessage = message; - message = newMessage; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__MESSAGE, oldMessage, newMessage); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setMessage(Message newMessage) { - if (newMessage != message) { - NotificationChain msgs = null; - if (message != null) - msgs = ((InternalEObject)message).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__MESSAGE, null, msgs); - if (newMessage != null) - msgs = ((InternalEObject)newMessage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__MESSAGE, null, msgs); - msgs = basicSetMessage(newMessage, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__MESSAGE, newMessage, newMessage)); - } - - /** - * - * - * @generated - */ - public Connection getConnection() { - return connection; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetConnection(Connection newConnection, NotificationChain msgs) { - Connection oldConnection = connection; - connection = newConnection; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__CONNECTION, oldConnection, newConnection); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setConnection(Connection newConnection) { - if (newConnection != connection) { - NotificationChain msgs = null; - if (connection != null) - msgs = ((InternalEObject)connection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__CONNECTION, null, msgs); - if (newConnection != null) - msgs = ((InternalEObject)newConnection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__CONNECTION, null, msgs); - msgs = basicSetConnection(newConnection, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__CONNECTION, newConnection, newConnection)); - } - - /** - * - * - * @generated - */ - public Session getSession() { - return session; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSession(Session newSession, NotificationChain msgs) { - Session oldSession = session; - session = newSession; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__SESSION, oldSession, newSession); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setSession(Session newSession) { - if (newSession != session) { - NotificationChain msgs = null; - if (session != null) - msgs = ((InternalEObject)session).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__SESSION, null, msgs); - if (newSession != null) - msgs = ((InternalEObject)newSession).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__SESSION, null, msgs); - msgs = basicSetSession(newSession, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__SESSION, newSession, newSession)); - } - - /** - * - * - * @generated - */ - public Jndi getJndi() { - return jndi; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetJndi(Jndi newJndi, NotificationChain msgs) { - Jndi oldJndi = jndi; - jndi = newJndi; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__JNDI, oldJndi, newJndi); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setJndi(Jndi newJndi) { - if (newJndi != jndi) { - NotificationChain msgs = null; - if (jndi != null) - msgs = ((InternalEObject)jndi).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__JNDI, null, msgs); - if (newJndi != null) - msgs = ((InternalEObject)newJndi).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__JNDI, null, msgs); - msgs = basicSetJndi(newJndi, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__JNDI, newJndi, newJndi)); - } - - /** - * - * - * @generated - */ - public HighWaterMark getHighWaterMark() { - return highWaterMark; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetHighWaterMark(HighWaterMark newHighWaterMark, NotificationChain msgs) { - HighWaterMark oldHighWaterMark = highWaterMark; - highWaterMark = newHighWaterMark; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, oldHighWaterMark, newHighWaterMark); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setHighWaterMark(HighWaterMark newHighWaterMark) { - if (newHighWaterMark != highWaterMark) { - NotificationChain msgs = null; - if (highWaterMark != null) - msgs = ((InternalEObject)highWaterMark).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, null, msgs); - if (newHighWaterMark != null) - msgs = ((InternalEObject)newHighWaterMark).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, null, msgs); - msgs = basicSetHighWaterMark(newHighWaterMark, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, newHighWaterMark, newHighWaterMark)); - } - - /** - * - * - * @generated - */ - public String getBeanId() { - return beanId; - } - - /** - * - * - * @generated - */ - public void setBeanId(String newBeanId) { - String oldBeanId = beanId; - beanId = newBeanId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__BEAN_ID, oldBeanId, beanId)); - } - - /** - * - * - * @generated - */ - public String getDestination() { - return destination; - } - - /** - * - * - * @generated - */ - public void setDestination(String newDestination) { - String oldDestination = destination; - destination = newDestination; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__DESTINATION, oldDestination, destination)); - } - - /** - * - * - * @generated - */ - public boolean isExecuteBefore() { - return executeBefore; - } - - /** - * - * - * @generated - */ - public void setExecuteBefore(boolean newExecuteBefore) { - boolean oldExecuteBefore = executeBefore; - executeBefore = newExecuteBefore; - boolean oldExecuteBeforeESet = executeBeforeESet; - executeBeforeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE, oldExecuteBefore, executeBefore, !oldExecuteBeforeESet)); - } - - /** - * - * - * @generated - */ - public void unsetExecuteBefore() { - boolean oldExecuteBefore = executeBefore; - boolean oldExecuteBeforeESet = executeBeforeESet; - executeBefore = EXECUTE_BEFORE_EDEFAULT; - executeBeforeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE, oldExecuteBefore, EXECUTE_BEFORE_EDEFAULT, oldExecuteBeforeESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetExecuteBefore() { - return executeBeforeESet; - } - - /** - * - * - * @generated - */ - public String getRouteOnElement() { - return routeOnElement; - } - - /** - * - * - * @generated - */ - public void setRouteOnElement(String newRouteOnElement) { - String oldRouteOnElement = routeOnElement; - routeOnElement = newRouteOnElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT, oldRouteOnElement, routeOnElement)); - } - - /** - * - * - * @generated - */ - public String getRouteOnElementNS() { - return routeOnElementNS; - } - - /** - * - * - * @generated - */ - public void setRouteOnElementNS(String newRouteOnElementNS) { - String oldRouteOnElementNS = routeOnElementNS; - routeOnElementNS = newRouteOnElementNS; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS, oldRouteOnElementNS, routeOnElementNS)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JmsroutingPackage.JMS_ROUTER__MESSAGE: - return basicSetMessage(null, msgs); - case JmsroutingPackage.JMS_ROUTER__CONNECTION: - return basicSetConnection(null, msgs); - case JmsroutingPackage.JMS_ROUTER__SESSION: - return basicSetSession(null, msgs); - case JmsroutingPackage.JMS_ROUTER__JNDI: - return basicSetJndi(null, msgs); - case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK: - return basicSetHighWaterMark(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.JMS_ROUTER__MESSAGE: - return getMessage(); - case JmsroutingPackage.JMS_ROUTER__CONNECTION: - return getConnection(); - case JmsroutingPackage.JMS_ROUTER__SESSION: - return getSession(); - case JmsroutingPackage.JMS_ROUTER__JNDI: - return getJndi(); - case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK: - return getHighWaterMark(); - case JmsroutingPackage.JMS_ROUTER__BEAN_ID: - return getBeanId(); - case JmsroutingPackage.JMS_ROUTER__DESTINATION: - return getDestination(); - case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE: - return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE; - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT: - return getRouteOnElement(); - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS: - return getRouteOnElementNS(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.JMS_ROUTER__MESSAGE: - setMessage((Message)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__CONNECTION: - setConnection((Connection)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__SESSION: - setSession((Session)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__JNDI: - setJndi((Jndi)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK: - setHighWaterMark((HighWaterMark)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__BEAN_ID: - setBeanId((String)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__DESTINATION: - setDestination((String)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE: - setExecuteBefore(((Boolean)newValue).booleanValue()); - return; - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT: - setRouteOnElement((String)newValue); - return; - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS: - setRouteOnElementNS((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.JMS_ROUTER__MESSAGE: - setMessage((Message)null); - return; - case JmsroutingPackage.JMS_ROUTER__CONNECTION: - setConnection((Connection)null); - return; - case JmsroutingPackage.JMS_ROUTER__SESSION: - setSession((Session)null); - return; - case JmsroutingPackage.JMS_ROUTER__JNDI: - setJndi((Jndi)null); - return; - case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK: - setHighWaterMark((HighWaterMark)null); - return; - case JmsroutingPackage.JMS_ROUTER__BEAN_ID: - setBeanId(BEAN_ID_EDEFAULT); - return; - case JmsroutingPackage.JMS_ROUTER__DESTINATION: - setDestination(DESTINATION_EDEFAULT); - return; - case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE: - unsetExecuteBefore(); - return; - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT: - setRouteOnElement(ROUTE_ON_ELEMENT_EDEFAULT); - return; - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS: - setRouteOnElementNS(ROUTE_ON_ELEMENT_NS_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.JMS_ROUTER__MESSAGE: - return message != null; - case JmsroutingPackage.JMS_ROUTER__CONNECTION: - return connection != null; - case JmsroutingPackage.JMS_ROUTER__SESSION: - return session != null; - case JmsroutingPackage.JMS_ROUTER__JNDI: - return jndi != null; - case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK: - return highWaterMark != null; - case JmsroutingPackage.JMS_ROUTER__BEAN_ID: - return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId); - case JmsroutingPackage.JMS_ROUTER__DESTINATION: - return DESTINATION_EDEFAULT == null ? destination != null : !DESTINATION_EDEFAULT.equals(destination); - case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE: - return isSetExecuteBefore(); - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT: - return ROUTE_ON_ELEMENT_EDEFAULT == null ? routeOnElement != null : !ROUTE_ON_ELEMENT_EDEFAULT.equals(routeOnElement); - case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS: - return ROUTE_ON_ELEMENT_NS_EDEFAULT == null ? routeOnElementNS != null : !ROUTE_ON_ELEMENT_NS_EDEFAULT.equals(routeOnElementNS); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (beanId: "); //$NON-NLS-1$ - result.append(beanId); - result.append(", destination: "); //$NON-NLS-1$ - result.append(destination); - result.append(", executeBefore: "); //$NON-NLS-1$ - if (executeBeforeESet) result.append(executeBefore); else result.append(""); //$NON-NLS-1$ - result.append(", routeOnElement: "); //$NON-NLS-1$ - result.append(routeOnElement); - result.append(", routeOnElementNS: "); //$NON-NLS-1$ - result.append(routeOnElementNS); - result.append(')'); - return result.toString(); - } - -} //JmsRouterImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/Messages.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/Messages.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/Messages.java (working copy) @@ -1,19 +0,0 @@ -package org.jboss.tools.smooks.model.jmsrouting.impl; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - private static final String BUNDLE_NAME = "org.jboss.tools.smooks.model.jmsrouting.impl.messages"; //$NON-NLS-1$ - public static String JmsroutingFactoryImpl_Error_Class_Not_Valid; - public static String JmsroutingFactoryImpl_Error_Datatype_Not_Valid; - public static String JmsroutingFactoryImpl_Error_Not_Valid_Classifier; - public static String JmsroutingFactoryImpl_Error_Not_Valid_Enumerator; - public static String JmsroutingFactoryImpl_Error_Value; - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - private Messages() { - } -} Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java (working copy) @@ -1,339 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.DeliveryMode; -import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark; -import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Jndi; -import org.jboss.tools.smooks.model.jmsrouting.Message; -import org.jboss.tools.smooks.model.jmsrouting.MessageType; -import org.jboss.tools.smooks.model.jmsrouting.Session; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class JmsroutingFactoryImpl extends EFactoryImpl implements JmsroutingFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static JmsroutingFactory init() { - try { - JmsroutingFactory theJmsroutingFactory = (JmsroutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd"); //$NON-NLS-1$ - if (theJmsroutingFactory != null) { - return theJmsroutingFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new JmsroutingFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public JmsroutingFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JmsroutingPackage.CONNECTION: return createConnection(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT: return createJmsDocumentRoot(); - case JmsroutingPackage.HIGH_WATER_MARK: return createHighWaterMark(); - case JmsroutingPackage.JNDI: return createJndi(); - case JmsroutingPackage.MESSAGE: return createMessage(); - case JmsroutingPackage.JMS_ROUTER: return createJmsRouter(); - case JmsroutingPackage.SESSION: return createSession(); - default: - throw new IllegalArgumentException(Messages.JmsroutingFactoryImpl_Error_Class_Not_Valid + eClass.getName() + Messages.JmsroutingFactoryImpl_Error_Not_Valid_Classifier); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case JmsroutingPackage.ACKNOWLEDGE_MODE: - return createAcknowledgeModeFromString(eDataType, initialValue); - case JmsroutingPackage.DELIVERY_MODE: - return createDeliveryModeFromString(eDataType, initialValue); - case JmsroutingPackage.MESSAGE_TYPE: - return createMessageTypeFromString(eDataType, initialValue); - case JmsroutingPackage.ACKNOWLEDGE_MODE_OBJECT: - return createAcknowledgeModeObjectFromString(eDataType, initialValue); - case JmsroutingPackage.DELIVERY_MODE_OBJECT: - return createDeliveryModeObjectFromString(eDataType, initialValue); - case JmsroutingPackage.MESSAGE_TYPE_OBJECT: - return createMessageTypeObjectFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException(Messages.JmsroutingFactoryImpl_Error_Datatype_Not_Valid + eDataType.getName() + Messages.JmsroutingFactoryImpl_Error_Not_Valid_Classifier); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case JmsroutingPackage.ACKNOWLEDGE_MODE: - return convertAcknowledgeModeToString(eDataType, instanceValue); - case JmsroutingPackage.DELIVERY_MODE: - return convertDeliveryModeToString(eDataType, instanceValue); - case JmsroutingPackage.MESSAGE_TYPE: - return convertMessageTypeToString(eDataType, instanceValue); - case JmsroutingPackage.ACKNOWLEDGE_MODE_OBJECT: - return convertAcknowledgeModeObjectToString(eDataType, instanceValue); - case JmsroutingPackage.DELIVERY_MODE_OBJECT: - return convertDeliveryModeObjectToString(eDataType, instanceValue); - case JmsroutingPackage.MESSAGE_TYPE_OBJECT: - return convertMessageTypeObjectToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException(Messages.JmsroutingFactoryImpl_Error_Datatype_Not_Valid + eDataType.getName() + Messages.JmsroutingFactoryImpl_Error_Not_Valid_Classifier); - } - } - - /** - * - * - * @generated - */ - public Connection createConnection() { - ConnectionImpl connection = new ConnectionImpl(); - return connection; - } - - /** - * - * - * @generated - */ - public JmsDocumentRoot createJmsDocumentRoot() { - JmsDocumentRootImpl jmsDocumentRoot = new JmsDocumentRootImpl(); - return jmsDocumentRoot; - } - - /** - * - * - * @generated - */ - public HighWaterMark createHighWaterMark() { - HighWaterMarkImpl highWaterMark = new HighWaterMarkImpl(); - return highWaterMark; - } - - /** - * - * - * @generated - */ - public Jndi createJndi() { - JndiImpl jndi = new JndiImpl(); - return jndi; - } - - /** - * - * - * @generated - */ - public Message createMessage() { - MessageImpl message = new MessageImpl(); - return message; - } - - /** - * - * - * @generated - */ - public JmsRouter createJmsRouter() { - JmsRouterImpl jmsRouter = new JmsRouterImpl(); - return jmsRouter; - } - - /** - * - * - * @generated - */ - public Session createSession() { - SessionImpl session = new SessionImpl(); - return session; - } - - /** - * - * - * @generated - */ - public AcknowledgeMode createAcknowledgeModeFromString(EDataType eDataType, String initialValue) { - AcknowledgeMode result = AcknowledgeMode.get(initialValue); - if (result == null) throw new IllegalArgumentException(Messages.JmsroutingFactoryImpl_Error_Value + initialValue + Messages.JmsroutingFactoryImpl_Error_Not_Valid_Enumerator + eDataType.getName() + "'"); //$NON-NLS-3$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$ - return result; - } - - /** - * - * - * @generated - */ - public String convertAcknowledgeModeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public DeliveryMode createDeliveryModeFromString(EDataType eDataType, String initialValue) { - DeliveryMode result = DeliveryMode.get(initialValue); - if (result == null) throw new IllegalArgumentException(Messages.JmsroutingFactoryImpl_Error_Value + initialValue + Messages.JmsroutingFactoryImpl_Error_Not_Valid_Enumerator + eDataType.getName() + "'"); //$NON-NLS-3$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$ - return result; - } - - /** - * - * - * @generated - */ - public String convertDeliveryModeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public MessageType createMessageTypeFromString(EDataType eDataType, String initialValue) { - MessageType result = MessageType.get(initialValue); - if (result == null) throw new IllegalArgumentException(Messages.JmsroutingFactoryImpl_Error_Value + initialValue + Messages.JmsroutingFactoryImpl_Error_Not_Valid_Enumerator + eDataType.getName() + "'"); //$NON-NLS-3$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$ - return result; - } - - /** - * - * - * @generated - */ - public String convertMessageTypeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public AcknowledgeMode createAcknowledgeModeObjectFromString(EDataType eDataType, String initialValue) { - return createAcknowledgeModeFromString(JmsroutingPackage.Literals.ACKNOWLEDGE_MODE, initialValue); - } - - /** - * - * - * @generated - */ - public String convertAcknowledgeModeObjectToString(EDataType eDataType, Object instanceValue) { - return convertAcknowledgeModeToString(JmsroutingPackage.Literals.ACKNOWLEDGE_MODE, instanceValue); - } - - /** - * - * - * @generated - */ - public DeliveryMode createDeliveryModeObjectFromString(EDataType eDataType, String initialValue) { - return createDeliveryModeFromString(JmsroutingPackage.Literals.DELIVERY_MODE, initialValue); - } - - /** - * - * - * @generated - */ - public String convertDeliveryModeObjectToString(EDataType eDataType, Object instanceValue) { - return convertDeliveryModeToString(JmsroutingPackage.Literals.DELIVERY_MODE, instanceValue); - } - - /** - * - * - * @generated - */ - public MessageType createMessageTypeObjectFromString(EDataType eDataType, String initialValue) { - return createMessageTypeFromString(JmsroutingPackage.Literals.MESSAGE_TYPE, initialValue); - } - - /** - * - * - * @generated - */ - public String convertMessageTypeObjectToString(EDataType eDataType, Object instanceValue) { - return convertMessageTypeToString(JmsroutingPackage.Literals.MESSAGE_TYPE, instanceValue); - } - - /** - * - * - * @generated - */ - public JmsroutingPackage getJmsroutingPackage() { - return (JmsroutingPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static JmsroutingPackage getPackage() { - return JmsroutingPackage.eINSTANCE; - } - -} //JmsroutingFactoryImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java (working copy) @@ -1,521 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.jboss.tools.smooks.model.jmsrouting.DeliveryMode; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Message; -import org.jboss.tools.smooks.model.jmsrouting.MessageType; - -/** - * - * An implementation of the model object 'Message'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getCorrelationIdPattern Correlation Id Pattern}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getDeliveryMode Delivery Mode}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getPriority Priority}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getTimeToLive Time To Live}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getType Type}
  • - *
- *

- * - * @generated - */ -public class MessageImpl extends EObjectImpl implements Message { - /** - * The default value of the '{@link #getCorrelationIdPattern() Correlation Id Pattern}' attribute. - * - * - * @see #getCorrelationIdPattern() - * @generated - * @ordered - */ - protected static final String CORRELATION_ID_PATTERN_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCorrelationIdPattern() Correlation Id Pattern}' attribute. - * - * - * @see #getCorrelationIdPattern() - * @generated - * @ordered - */ - protected String correlationIdPattern = CORRELATION_ID_PATTERN_EDEFAULT; - - /** - * The default value of the '{@link #getDeliveryMode() Delivery Mode}' attribute. - * - * - * @see #getDeliveryMode() - * @generated not - * @ordered - */ - protected static final DeliveryMode DELIVERY_MODE_EDEFAULT = null;//DeliveryMode.PERSISTENT; - - /** - * The cached value of the '{@link #getDeliveryMode() Delivery Mode}' attribute. - * - * - * @see #getDeliveryMode() - * @generated - * @ordered - */ - protected DeliveryMode deliveryMode = DELIVERY_MODE_EDEFAULT; - - /** - * This is true if the Delivery Mode attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean deliveryModeESet; - - /** - * The default value of the '{@link #getPriority() Priority}' attribute. - * - * - * @see #getPriority() - * @generated - * @ordered - */ - protected static final int PRIORITY_EDEFAULT = 4; - - /** - * The cached value of the '{@link #getPriority() Priority}' attribute. - * - * - * @see #getPriority() - * @generated - * @ordered - */ - protected int priority = PRIORITY_EDEFAULT; - - /** - * This is true if the Priority attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean priorityESet; - - /** - * The default value of the '{@link #getTimeToLive() Time To Live}' attribute. - * - * - * @see #getTimeToLive() - * @generated - * @ordered - */ - protected static final long TIME_TO_LIVE_EDEFAULT = 0L; - - /** - * The cached value of the '{@link #getTimeToLive() Time To Live}' attribute. - * - * - * @see #getTimeToLive() - * @generated - * @ordered - */ - protected long timeToLive = TIME_TO_LIVE_EDEFAULT; - - /** - * This is true if the Time To Live attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean timeToLiveESet; - - /** - * The default value of the '{@link #getType() Type}' attribute. - * - * - * @see #getType() - * @generated not - * @ordered - */ - protected static final MessageType TYPE_EDEFAULT = null;//MessageType.TEXT_MESSAGE; - - /** - * The cached value of the '{@link #getType() Type}' attribute. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected MessageType type = TYPE_EDEFAULT; - - /** - * This is true if the Type attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean typeESet; - - /** - * - * - * @generated - */ - protected MessageImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.MESSAGE; - } - - /** - * - * - * @generated - */ - public String getCorrelationIdPattern() { - return correlationIdPattern; - } - - /** - * - * - * @generated - */ - public void setCorrelationIdPattern(String newCorrelationIdPattern) { - String oldCorrelationIdPattern = correlationIdPattern; - correlationIdPattern = newCorrelationIdPattern; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN, oldCorrelationIdPattern, correlationIdPattern)); - } - - /** - * - * - * @generated - */ - public DeliveryMode getDeliveryMode() { - return deliveryMode; - } - - /** - * - * - * @generated - */ - public void setDeliveryMode(DeliveryMode newDeliveryMode) { - DeliveryMode oldDeliveryMode = deliveryMode; - deliveryMode = newDeliveryMode == null ? DELIVERY_MODE_EDEFAULT : newDeliveryMode; - boolean oldDeliveryModeESet = deliveryModeESet; - deliveryModeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.MESSAGE__DELIVERY_MODE, oldDeliveryMode, deliveryMode, !oldDeliveryModeESet)); - } - - /** - * - * - * @generated - */ - public void unsetDeliveryMode() { - DeliveryMode oldDeliveryMode = deliveryMode; - boolean oldDeliveryModeESet = deliveryModeESet; - deliveryMode = DELIVERY_MODE_EDEFAULT; - deliveryModeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.MESSAGE__DELIVERY_MODE, oldDeliveryMode, DELIVERY_MODE_EDEFAULT, oldDeliveryModeESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetDeliveryMode() { - return deliveryModeESet; - } - - /** - * - * - * @generated - */ - public int getPriority() { - return priority; - } - - /** - * - * - * @generated - */ - public void setPriority(int newPriority) { - int oldPriority = priority; - priority = newPriority; - boolean oldPriorityESet = priorityESet; - priorityESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.MESSAGE__PRIORITY, oldPriority, priority, !oldPriorityESet)); - } - - /** - * - * - * @generated - */ - public void unsetPriority() { - int oldPriority = priority; - boolean oldPriorityESet = priorityESet; - priority = PRIORITY_EDEFAULT; - priorityESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.MESSAGE__PRIORITY, oldPriority, PRIORITY_EDEFAULT, oldPriorityESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetPriority() { - return priorityESet; - } - - /** - * - * - * @generated - */ - public long getTimeToLive() { - return timeToLive; - } - - /** - * - * - * @generated - */ - public void setTimeToLive(long newTimeToLive) { - long oldTimeToLive = timeToLive; - timeToLive = newTimeToLive; - boolean oldTimeToLiveESet = timeToLiveESet; - timeToLiveESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.MESSAGE__TIME_TO_LIVE, oldTimeToLive, timeToLive, !oldTimeToLiveESet)); - } - - /** - * - * - * @generated - */ - public void unsetTimeToLive() { - long oldTimeToLive = timeToLive; - boolean oldTimeToLiveESet = timeToLiveESet; - timeToLive = TIME_TO_LIVE_EDEFAULT; - timeToLiveESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.MESSAGE__TIME_TO_LIVE, oldTimeToLive, TIME_TO_LIVE_EDEFAULT, oldTimeToLiveESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetTimeToLive() { - return timeToLiveESet; - } - - /** - * - * - * @generated - */ - public MessageType getType() { - return type; - } - - /** - * - * - * @generated - */ - public void setType(MessageType newType) { - MessageType oldType = type; - type = newType == null ? TYPE_EDEFAULT : newType; - boolean oldTypeESet = typeESet; - typeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.MESSAGE__TYPE, oldType, type, !oldTypeESet)); - } - - /** - * - * - * @generated - */ - public void unsetType() { - MessageType oldType = type; - boolean oldTypeESet = typeESet; - type = TYPE_EDEFAULT; - typeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.MESSAGE__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetType() { - return typeESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN: - return getCorrelationIdPattern(); - case JmsroutingPackage.MESSAGE__DELIVERY_MODE: - return getDeliveryMode(); - case JmsroutingPackage.MESSAGE__PRIORITY: - return new Integer(getPriority()); - case JmsroutingPackage.MESSAGE__TIME_TO_LIVE: - return new Long(getTimeToLive()); - case JmsroutingPackage.MESSAGE__TYPE: - return getType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN: - setCorrelationIdPattern((String)newValue); - return; - case JmsroutingPackage.MESSAGE__DELIVERY_MODE: - setDeliveryMode((DeliveryMode)newValue); - return; - case JmsroutingPackage.MESSAGE__PRIORITY: - setPriority(((Integer)newValue).intValue()); - return; - case JmsroutingPackage.MESSAGE__TIME_TO_LIVE: - setTimeToLive(((Long)newValue).longValue()); - return; - case JmsroutingPackage.MESSAGE__TYPE: - setType((MessageType)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN: - setCorrelationIdPattern(CORRELATION_ID_PATTERN_EDEFAULT); - return; - case JmsroutingPackage.MESSAGE__DELIVERY_MODE: - unsetDeliveryMode(); - return; - case JmsroutingPackage.MESSAGE__PRIORITY: - unsetPriority(); - return; - case JmsroutingPackage.MESSAGE__TIME_TO_LIVE: - unsetTimeToLive(); - return; - case JmsroutingPackage.MESSAGE__TYPE: - unsetType(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN: - return CORRELATION_ID_PATTERN_EDEFAULT == null ? correlationIdPattern != null : !CORRELATION_ID_PATTERN_EDEFAULT.equals(correlationIdPattern); - case JmsroutingPackage.MESSAGE__DELIVERY_MODE: - return isSetDeliveryMode(); - case JmsroutingPackage.MESSAGE__PRIORITY: - return isSetPriority(); - case JmsroutingPackage.MESSAGE__TIME_TO_LIVE: - return isSetTimeToLive(); - case JmsroutingPackage.MESSAGE__TYPE: - return isSetType(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (correlationIdPattern: "); //$NON-NLS-1$ - result.append(correlationIdPattern); - result.append(", deliveryMode: "); //$NON-NLS-1$ - if (deliveryModeESet) result.append(deliveryMode); else result.append(""); //$NON-NLS-1$ - result.append(", priority: "); //$NON-NLS-1$ - if (priorityESet) result.append(priority); else result.append(""); //$NON-NLS-1$ - result.append(", timeToLive: "); //$NON-NLS-1$ - if (timeToLiveESet) result.append(timeToLive); else result.append(""); //$NON-NLS-1$ - result.append(", type: "); //$NON-NLS-1$ - if (typeESet) result.append(type); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //MessageImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/messages.properties =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/messages.properties (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/messages.properties (working copy) @@ -1,5 +0,0 @@ -JmsroutingFactoryImpl_Error_Class_Not_Valid=The class ' -JmsroutingFactoryImpl_Error_Datatype_Not_Valid=The datatype ' -JmsroutingFactoryImpl_Error_Not_Valid_Classifier=' is not a valid classifier -JmsroutingFactoryImpl_Error_Not_Valid_Enumerator=' is not a valid enumerator of ' -JmsroutingFactoryImpl_Error_Value=The value ' Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java (working copy) @@ -1,290 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; -import org.jboss.tools.smooks.model.jmsrouting.Session; - -/** - * - * An implementation of the model object 'Session'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl#getAcknowledgeMode Acknowledge Mode}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl#isTransacted Transacted}
  • - *
- *

- * - * @generated - */ -public class SessionImpl extends EObjectImpl implements Session { - /** - * The default value of the '{@link #getAcknowledgeMode() Acknowledge Mode}' attribute. - * - * - * @see #getAcknowledgeMode() - * @generated not - * @ordered - */ - protected static final AcknowledgeMode ACKNOWLEDGE_MODE_EDEFAULT = null;// AcknowledgeMode.AUTOACKNOWLEDGE; - - /** - * The cached value of the '{@link #getAcknowledgeMode() Acknowledge Mode}' attribute. - * - * - * @see #getAcknowledgeMode() - * @generated - * @ordered - */ - protected AcknowledgeMode acknowledgeMode = ACKNOWLEDGE_MODE_EDEFAULT; - - /** - * This is true if the Acknowledge Mode attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean acknowledgeModeESet; - - /** - * The default value of the '{@link #isTransacted() Transacted}' attribute. - * - * - * @see #isTransacted() - * @generated - * @ordered - */ - protected static final boolean TRANSACTED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isTransacted() Transacted}' attribute. - * - * - * @see #isTransacted() - * @generated - * @ordered - */ - protected boolean transacted = TRANSACTED_EDEFAULT; - - /** - * This is true if the Transacted attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean transactedESet; - - /** - * - * - * @generated - */ - protected SessionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.SESSION; - } - - /** - * - * - * @generated - */ - public AcknowledgeMode getAcknowledgeMode() { - return acknowledgeMode; - } - - /** - * - * - * @generated - */ - public void setAcknowledgeMode(AcknowledgeMode newAcknowledgeMode) { - AcknowledgeMode oldAcknowledgeMode = acknowledgeMode; - acknowledgeMode = newAcknowledgeMode == null ? ACKNOWLEDGE_MODE_EDEFAULT : newAcknowledgeMode; - boolean oldAcknowledgeModeESet = acknowledgeModeESet; - acknowledgeModeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE, oldAcknowledgeMode, acknowledgeMode, !oldAcknowledgeModeESet)); - } - - /** - * - * - * @generated - */ - public void unsetAcknowledgeMode() { - AcknowledgeMode oldAcknowledgeMode = acknowledgeMode; - boolean oldAcknowledgeModeESet = acknowledgeModeESet; - acknowledgeMode = ACKNOWLEDGE_MODE_EDEFAULT; - acknowledgeModeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE, oldAcknowledgeMode, ACKNOWLEDGE_MODE_EDEFAULT, oldAcknowledgeModeESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetAcknowledgeMode() { - return acknowledgeModeESet; - } - - /** - * - * - * @generated - */ - public boolean isTransacted() { - return transacted; - } - - /** - * - * - * @generated - */ - public void setTransacted(boolean newTransacted) { - boolean oldTransacted = transacted; - transacted = newTransacted; - boolean oldTransactedESet = transactedESet; - transactedESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.SESSION__TRANSACTED, oldTransacted, transacted, !oldTransactedESet)); - } - - /** - * - * - * @generated - */ - public void unsetTransacted() { - boolean oldTransacted = transacted; - boolean oldTransactedESet = transactedESet; - transacted = TRANSACTED_EDEFAULT; - transactedESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.SESSION__TRANSACTED, oldTransacted, TRANSACTED_EDEFAULT, oldTransactedESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetTransacted() { - return transactedESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE: - return getAcknowledgeMode(); - case JmsroutingPackage.SESSION__TRANSACTED: - return isTransacted() ? Boolean.TRUE : Boolean.FALSE; - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE: - setAcknowledgeMode((AcknowledgeMode)newValue); - return; - case JmsroutingPackage.SESSION__TRANSACTED: - setTransacted(((Boolean)newValue).booleanValue()); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE: - unsetAcknowledgeMode(); - return; - case JmsroutingPackage.SESSION__TRANSACTED: - unsetTransacted(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE: - return isSetAcknowledgeMode(); - case JmsroutingPackage.SESSION__TRANSACTED: - return isSetTransacted(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (acknowledgeMode: "); //$NON-NLS-1$ - if (acknowledgeModeESet) result.append(acknowledgeMode); else result.append(""); //$NON-NLS-1$ - result.append(", transacted: "); //$NON-NLS-1$ - if (transactedESet) result.append(transacted); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //SessionImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java (working copy) @@ -1,309 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.jboss.tools.smooks.model.jmsrouting.Connection; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * - * An implementation of the model object 'Connection'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl#getFactory Factory}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl#getSecurityCredential Security Credential}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl#getSecurityPrincipal Security Principal}
  • - *
- *

- * - * @generated - */ -public class ConnectionImpl extends EObjectImpl implements Connection { - /** - * The default value of the '{@link #getFactory() Factory}' attribute. - * - * - * @see #getFactory() - * @generated - * @ordered - */ - protected static final String FACTORY_EDEFAULT = "ConnectionFactory"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getFactory() Factory}' attribute. - * - * - * @see #getFactory() - * @generated - * @ordered - */ - protected String factory = FACTORY_EDEFAULT; - - /** - * This is true if the Factory attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean factoryESet; - - /** - * The default value of the '{@link #getSecurityCredential() Security Credential}' attribute. - * - * - * @see #getSecurityCredential() - * @generated - * @ordered - */ - protected static final String SECURITY_CREDENTIAL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSecurityCredential() Security Credential}' attribute. - * - * - * @see #getSecurityCredential() - * @generated - * @ordered - */ - protected String securityCredential = SECURITY_CREDENTIAL_EDEFAULT; - - /** - * The default value of the '{@link #getSecurityPrincipal() Security Principal}' attribute. - * - * - * @see #getSecurityPrincipal() - * @generated - * @ordered - */ - protected static final String SECURITY_PRINCIPAL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSecurityPrincipal() Security Principal}' attribute. - * - * - * @see #getSecurityPrincipal() - * @generated - * @ordered - */ - protected String securityPrincipal = SECURITY_PRINCIPAL_EDEFAULT; - - /** - * - * - * @generated - */ - protected ConnectionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.CONNECTION; - } - - /** - * - * - * @generated - */ - public String getFactory() { - return factory; - } - - /** - * - * - * @generated - */ - public void setFactory(String newFactory) { - String oldFactory = factory; - factory = newFactory; - boolean oldFactoryESet = factoryESet; - factoryESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.CONNECTION__FACTORY, oldFactory, factory, !oldFactoryESet)); - } - - /** - * - * - * @generated - */ - public void unsetFactory() { - String oldFactory = factory; - boolean oldFactoryESet = factoryESet; - factory = FACTORY_EDEFAULT; - factoryESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JmsroutingPackage.CONNECTION__FACTORY, oldFactory, FACTORY_EDEFAULT, oldFactoryESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetFactory() { - return factoryESet; - } - - /** - * - * - * @generated - */ - public String getSecurityCredential() { - return securityCredential; - } - - /** - * - * - * @generated - */ - public void setSecurityCredential(String newSecurityCredential) { - String oldSecurityCredential = securityCredential; - securityCredential = newSecurityCredential; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL, oldSecurityCredential, securityCredential)); - } - - /** - * - * - * @generated - */ - public String getSecurityPrincipal() { - return securityPrincipal; - } - - /** - * - * - * @generated - */ - public void setSecurityPrincipal(String newSecurityPrincipal) { - String oldSecurityPrincipal = securityPrincipal; - securityPrincipal = newSecurityPrincipal; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL, oldSecurityPrincipal, securityPrincipal)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.CONNECTION__FACTORY: - return getFactory(); - case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL: - return getSecurityCredential(); - case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL: - return getSecurityPrincipal(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.CONNECTION__FACTORY: - setFactory((String)newValue); - return; - case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL: - setSecurityCredential((String)newValue); - return; - case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL: - setSecurityPrincipal((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.CONNECTION__FACTORY: - unsetFactory(); - return; - case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL: - setSecurityCredential(SECURITY_CREDENTIAL_EDEFAULT); - return; - case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL: - setSecurityPrincipal(SECURITY_PRINCIPAL_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.CONNECTION__FACTORY: - return isSetFactory(); - case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL: - return SECURITY_CREDENTIAL_EDEFAULT == null ? securityCredential != null : !SECURITY_CREDENTIAL_EDEFAULT.equals(securityCredential); - case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL: - return SECURITY_PRINCIPAL_EDEFAULT == null ? securityPrincipal != null : !SECURITY_PRINCIPAL_EDEFAULT.equals(securityPrincipal); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (factory: "); //$NON-NLS-1$ - if (factoryESet) result.append(factory); else result.append(""); //$NON-NLS-1$ - result.append(", securityCredential: "); //$NON-NLS-1$ - result.append(securityCredential); - result.append(", securityPrincipal: "); //$NON-NLS-1$ - result.append(securityPrincipal); - result.append(')'); - return result.toString(); - } - -} //ConnectionImpl Index: src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java (working copy) @@ -1,286 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.jmsrouting.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot; -import org.jboss.tools.smooks.model.jmsrouting.JmsRouter; -import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage; - -/** - * - * An implementation of the model object 'Jms Document Root'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getRouter Router}
  • - *
- *

- * - * @generated - */ -public class JmsDocumentRootImpl extends EObjectImpl implements JmsDocumentRoot { - /** - * The cached value of the '{@link #getMixed() Mixed}' attribute list. - * - * - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map. - * - * - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap; - - /** - * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map. - * - * - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation; - - /** - * - * - * @generated - */ - protected JmsDocumentRootImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT; - } - - /** - * - * - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED); - } - return mixed; - } - - /** - * - * - * @generated - */ - public EMap getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap; - } - - /** - * - * - * @generated - */ - public EMap getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation; - } - - /** - * - * - * @generated - */ - public JmsRouter getRouter() { - return (JmsRouter)getMixed().get(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetRouter(JmsRouter newRouter, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, newRouter, msgs); - } - - /** - * - * - * @generated - */ - public void setRouter(JmsRouter newRouter) { - ((FeatureMap.Internal)getMixed()).set(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, newRouter); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER: - return basicSetRouter(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - if (coreType) return getXMLNSPrefixMap(); - else return getXMLNSPrefixMap().map(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - if (coreType) return getXSISchemaLocation(); - else return getXSISchemaLocation().map(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER: - return getRouter(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue); - return; - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue); - return; - case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER: - setRouter((JmsRouter)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED: - getMixed().clear(); - return; - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER: - setRouter((JmsRouter)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED: - return mixed != null && !mixed.isEmpty(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER: - return getRouter() != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //JmsDocumentRootImpl Index: src/org/jboss/tools/smooks/model/common/Test.java =================================================================== --- src/org/jboss/tools/smooks/model/common/Test.java (revision 20973) +++ src/org/jboss/tools/smooks/model/common/Test.java (working copy) @@ -11,7 +11,6 @@ import org.eclipse.emf.ecore.resource.Resource; import org.jboss.tools.smooks.model.common.util.CommonResourceFactoryImpl; import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage; -import org.jboss.tools.smooks.model.javabean.JavabeanPackage; import org.jboss.tools.smooks.model.medi.MEdiPackage; import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; import org.jboss.tools.smooks.model.smooks.SmooksPackage; @@ -28,7 +27,6 @@ Registry.INSTANCE.put(FreemarkerPackage.eNS_URI, FreemarkerPackage.eINSTANCE); Registry.INSTANCE.put(XslPackage.eNS_URI, XslPackage.eINSTANCE); Registry.INSTANCE.put(SmooksPackage.eNS_URI, SmooksPackage.eINSTANCE); - Registry.INSTANCE.put(JavabeanPackage.eNS_URI, JavabeanPackage.eINSTANCE); Registry.INSTANCE.put(MEdiPackage.eNS_URI, MEdiPackage.eINSTANCE); Index: src/org/jboss/tools/smooks/model/edi/EdiFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/EdiFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/EdiFactory.java (working copy) @@ -1,55 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.jboss.tools.smooks.model.edi.EdiPackage - * @generated - */ -public interface EdiFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - EdiFactory eINSTANCE = org.jboss.tools.smooks.model.edi.impl.EdiFactoryImpl.init(); - - /** - * Returns a new object of class 'EDI Document Root'. - * - * - * @return a new object of class 'EDI Document Root'. - * @generated - */ - EDIDocumentRoot createEDIDocumentRoot(); - - /** - * Returns a new object of class 'EDI Reader'. - * - * - * @return a new object of class 'EDI Reader'. - * @generated - */ - EDIReader createEDIReader(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - EdiPackage getEdiPackage(); - -} //EdiFactory Index: src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java (working copy) @@ -1,32 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.jboss.tools.smooks.model.edi.util.EdiResourceFactoryImpl - * @generated - */ -public class EdiResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public EdiResourceImpl(URI uri) { - super(uri); - } - -} //EdiResourceImpl Index: src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java (working copy) @@ -1,221 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.edi.EDIDocumentRoot; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiPackage; -import org.jboss.tools.smooks.model.smooks.AbstractReader; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; - - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.jboss.tools.smooks.model.edi.EdiPackage - * @generated - */ -public class EdiSwitch { - /** - * The cached model package - * - * - * @generated - */ - protected static EdiPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public EdiSwitch() { - if (modelPackage == null) { - modelPackage = EdiPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case EdiPackage.EDI_DOCUMENT_ROOT: { - EDIDocumentRoot ediDocumentRoot = (EDIDocumentRoot)theEObject; - T result = caseEDIDocumentRoot(ediDocumentRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EdiPackage.EDI_READER: { - EDIReader ediReader = (EDIReader)theEObject; - T result = caseEDIReader(ediReader); - if (result == null) result = caseAbstractReader(ediReader); - if (result == null) result = caseAbstractResourceConfig(ediReader); - if (result == null) result = caseAbstractAnyType(ediReader); - if (result == null) result = caseAnyType(ediReader); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'EDI Document Root'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EDI Document Root'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEDIDocumentRoot(EDIDocumentRoot object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EDI Reader'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EDI Reader'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEDIReader(EDIReader object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAnyType(AnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Any Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Any Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAnyType(AbstractAnyType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Resource Config'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Resource Config'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractResourceConfig(AbstractResourceConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Reader'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Reader'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractReader(AbstractReader object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} //EdiSwitch Index: src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java (working copy) @@ -1,56 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.jboss.tools.smooks.model.edi.util.EdiResourceImpl - * @generated - */ -public class EdiResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public EdiResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - XMLResource result = new EdiResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); - return result; - } - -} //EdiResourceFactoryImpl Index: src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java (working copy) @@ -1,218 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xml.type.AnyType; -import org.jboss.tools.smooks.model.common.AbstractAnyType; -import org.jboss.tools.smooks.model.edi.EDIDocumentRoot; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiPackage; -import org.jboss.tools.smooks.model.smooks.AbstractReader; -import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; - - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.jboss.tools.smooks.model.edi.EdiPackage - * @generated - */ -public class EdiAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static EdiPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public EdiAdapterFactory() { - if (modelPackage == null) { - modelPackage = EdiPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected EdiSwitch modelSwitch = - new EdiSwitch() { - @Override - public Adapter caseEDIDocumentRoot(EDIDocumentRoot object) { - return createEDIDocumentRootAdapter(); - } - @Override - public Adapter caseEDIReader(EDIReader object) { - return createEDIReaderAdapter(); - } - @Override - public Adapter caseAnyType(AnyType object) { - return createAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractAnyType(AbstractAnyType object) { - return createAbstractAnyTypeAdapter(); - } - @Override - public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) { - return createAbstractResourceConfigAdapter(); - } - @Override - public Adapter caseAbstractReader(AbstractReader object) { - return createAbstractReaderAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot EDI Document Root}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot - * @generated - */ - public Adapter createEDIDocumentRootAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.edi.EDIReader EDI Reader}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.jboss.tools.smooks.model.edi.EDIReader - * @generated - */ - public Adapter createEDIReaderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.xml.type.AnyType - * @generated - */ - public Adapter createAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link common.AbstractAnyType Abstract Any Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see common.AbstractAnyType - * @generated - */ - public Adapter createAbstractAnyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractResourceConfig Abstract Resource Config}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractResourceConfig - * @generated - */ - public Adapter createAbstractResourceConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link smooks.AbstractReader Abstract Reader}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see smooks.AbstractReader - * @generated - */ - public Adapter createAbstractReaderAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //EdiAdapterFactory Index: src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java (working copy) @@ -1,54 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.util; - - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.jboss.tools.smooks.model.edi.EdiPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class EdiXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public EdiXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - EdiPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the EdiResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new EdiResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new EdiResourceFactoryImpl()); - } - return registrations; - } - -} //EdiXMLProcessor Index: src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java (working copy) @@ -1,121 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.util.FeatureMap; - -/** - * - * A representation of the model object 'EDI Document Root'. - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader Reader}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot() - * @model extendedMetaData="name='' kind='mixed'" - * @generated - */ -public interface EDIDocumentRoot extends EObject { - /** - * Returns the value of the 'Mixed' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * - *

- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Mixed' attribute list. - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_Mixed() - * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='elementWildcard' name=':mixed'" - * @generated - */ - FeatureMap getMixed(); - - /** - * Returns the value of the 'XMLNS Prefix Map' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XMLNS Prefix Map' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XMLNS Prefix Map' map. - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_XMLNSPrefixMap() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xmlns:prefix'" - * @generated - */ - EMap getXMLNSPrefixMap(); - - /** - * Returns the value of the 'XSI Schema Location' map. - * The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, - * - *

- * If the meaning of the 'XSI Schema Location' map isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'XSI Schema Location' map. - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_XSISchemaLocation() - * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" transient="true" - * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" - * @generated - */ - EMap getXSISchemaLocation(); - - /** - * Returns the value of the 'Reader' containment reference. - * - * - * - * - * EDI Reader Configuration - * The EDI reader reads and validates a EDI stream and converts it to SAX events that Smooks - * can process. - * A mapping is used to map the EDI segments and fields to a SAX event stream. - * For more information about the mapping model take a look at the - * "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd" schema. - * - * - * @return the value of the 'Reader' containment reference. - * @see #setReader(EDIReader) - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_Reader() - * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" - * extendedMetaData="kind='element' name='reader' namespace='##targetNamespace' affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader'" - * @generated - */ - EDIReader getReader(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader Reader}' containment reference. - * - * - * @param value the new value of the 'Reader' containment reference. - * @see #getReader() - * @generated - */ - void setReader(EDIReader value); - -} // EDIDocumentRoot Index: src/org/jboss/tools/smooks/model/edi/EDIReader.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/EDIReader.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/EDIReader.java (working copy) @@ -1,118 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi; - -import org.jboss.tools.smooks.model.smooks.AbstractReader; - -/** - * - * A representation of the model object 'EDI Reader'. - * - * - * - * EDI Reader - * - * - *

- * The following features are supported: - *

    - *
  • {@link org.jboss.tools.smooks.model.edi.EDIReader#getEncoding Encoding}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel Mapping Model}
  • - *
- *

- * - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIReader() - * @model extendedMetaData="name='reader' kind='empty'" - * @generated - */ -public interface EDIReader extends AbstractReader { - /** - * Returns the value of the 'Encoding' attribute. - * The default value is "UTF-8". - * - * - * - * The character encoding. Default "UTF-8" - * - * @return the value of the 'Encoding' attribute. - * @see #isSetEncoding() - * @see #unsetEncoding() - * @see #setEncoding(String) - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIReader_Encoding() - * @model default="UTF-8" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='encoding'" - * @generated - */ - String getEncoding(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.edi.EDIReader#getEncoding Encoding}' attribute. - * - * - * @param value the new value of the 'Encoding' attribute. - * @see #isSetEncoding() - * @see #unsetEncoding() - * @see #getEncoding() - * @generated - */ - void setEncoding(String value); - - /** - * Unsets the value of the '{@link org.jboss.tools.smooks.model.edi.EDIReader#getEncoding Encoding}' attribute. - * - * - * @see #isSetEncoding() - * @see #getEncoding() - * @see #setEncoding(String) - * @generated - */ - void unsetEncoding(); - - /** - * Returns whether the value of the '{@link org.jboss.tools.smooks.model.edi.EDIReader#getEncoding Encoding}' attribute is set. - * - * - * @return whether the value of the 'Encoding' attribute is set. - * @see #unsetEncoding() - * @see #getEncoding() - * @see #setEncoding(String) - * @generated - */ - boolean isSetEncoding(); - - /** - * Returns the value of the 'Mapping Model' attribute. - * - * - * - * - * The URI of the EDI mapping model file of the EDI model. - * For more information about the mapping model take a - * look at the "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd" - * schema. - * - * - * @return the value of the 'Mapping Model' attribute. - * @see #setMappingModel(String) - * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIReader_MappingModel() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * extendedMetaData="kind='attribute' name='mappingModel'" - * @generated - */ - String getMappingModel(); - - /** - * Sets the value of the '{@link org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel Mapping Model}' attribute. - * - * - * @param value the new value of the 'Mapping Model' attribute. - * @see #getMappingModel() - * @generated - */ - void setMappingModel(String value); - -} // EDIReader Index: src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java (working copy) @@ -1,357 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.jboss.tools.smooks.model.common.CommonPackage; -import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl; -import org.jboss.tools.smooks.model.edi.EDIDocumentRoot; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiFactory; -import org.jboss.tools.smooks.model.edi.EdiPackage; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; -import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl; - - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class EdiPackageImpl extends EPackageImpl implements EdiPackage { - /** - * - * - * @generated - */ - private EClass ediDocumentRootEClass = null; - - /** - * - * - * @generated - */ - private EClass ediReaderEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.jboss.tools.smooks.model.edi.EdiPackage#eNS_URI - * @see #init() - * @generated - */ - private EdiPackageImpl() { - super(eNS_URI, EdiFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *

Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *

Invocation of this method will not affect any packages that have - * already been initialized. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static EdiPackage init() { - if (isInited) return (EdiPackage)EPackage.Registry.INSTANCE.getEPackage(EdiPackage.eNS_URI); - - // Obtain or create and register package - EdiPackageImpl theEdiPackage = (EdiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EdiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new EdiPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - - // Create package meta-data objects - theEdiPackage.createPackageContents(); - theSmooksPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - - // Initialize created meta-data - theEdiPackage.initializePackageContents(); - theSmooksPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theEdiPackage.freeze(); - - return theEdiPackage; - } - - /** - * - * - * @generated - */ - public EClass getEDIDocumentRoot() { - return ediDocumentRootEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getEDIDocumentRoot_Mixed() { - return (EAttribute)ediDocumentRootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getEDIDocumentRoot_XMLNSPrefixMap() { - return (EReference)ediDocumentRootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getEDIDocumentRoot_XSISchemaLocation() { - return (EReference)ediDocumentRootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getEDIDocumentRoot_Reader() { - return (EReference)ediDocumentRootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getEDIReader() { - return ediReaderEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getEDIReader_Encoding() { - return (EAttribute)ediReaderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getEDIReader_MappingModel() { - return (EAttribute)ediReaderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EdiFactory getEdiFactory() { - return (EdiFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - ediDocumentRootEClass = createEClass(EDI_DOCUMENT_ROOT); - createEAttribute(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__MIXED); - createEReference(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - createEReference(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - createEReference(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__READER); - - ediReaderEClass = createEClass(EDI_READER); - createEAttribute(ediReaderEClass, EDI_READER__ENCODING); - createEAttribute(ediReaderEClass, EDI_READER__MAPPING_MODEL); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI); - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - ediReaderEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader()); - - // Initialize classes and features; add operations and parameters - initEClass(ediDocumentRootEClass, EDIDocumentRoot.class, "EDIDocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getEDIDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getEDIDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getEDIDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getEDIDocumentRoot_Reader(), this.getEDIReader(), null, "reader", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(ediReaderEClass, EDIReader.class, "EDIReader", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getEDIReader_Encoding(), theXMLTypePackage.getString(), "encoding", "UTF-8", 0, 1, EDIReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getEDIReader_MappingModel(), theXMLTypePackage.getString(), "mappingModel", null, 0, 1, EDIReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * - * - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (ediDocumentRootEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getEDIDocumentRoot_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getEDIDocumentRoot_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getEDIDocumentRoot_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getEDIDocumentRoot_Reader(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "reader", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (ediReaderEClass, - source, - new String[] { - "name", "reader", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getEDIReader_Encoding(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "encoding" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getEDIReader_MappingModel(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "mappingModel" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //EdiPackageImpl Index: src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java (working copy) @@ -1,286 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; -import org.jboss.tools.smooks.model.edi.EDIDocumentRoot; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiPackage; - -/** - * - * An implementation of the model object 'EDI Document Root'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getMixed Mixed}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getXSISchemaLocation XSI Schema Location}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getReader Reader}
  • - *
- *

- * - * @generated - */ -public class EDIDocumentRootImpl extends EObjectImpl implements EDIDocumentRoot { - /** - * The cached value of the '{@link #getMixed() Mixed}' attribute list. - * - * - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map. - * - * - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap; - - /** - * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map. - * - * - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation; - - /** - * - * - * @generated - */ - protected EDIDocumentRootImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EdiPackage.Literals.EDI_DOCUMENT_ROOT; - } - - /** - * - * - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, EdiPackage.EDI_DOCUMENT_ROOT__MIXED); - } - return mixed; - } - - /** - * - * - * @generated - */ - public EMap getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap; - } - - /** - * - * - * @generated - */ - public EMap getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation; - } - - /** - * - * - * @generated - */ - public EDIReader getReader() { - return (EDIReader)getMixed().get(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetReader(EDIReader newReader, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, newReader, msgs); - } - - /** - * - * - * @generated - */ - public void setReader(EDIReader newReader) { - ((FeatureMap.Internal)getMixed()).set(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, newReader); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EdiPackage.EDI_DOCUMENT_ROOT__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); - case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); - case EdiPackage.EDI_DOCUMENT_ROOT__READER: - return basicSetReader(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EdiPackage.EDI_DOCUMENT_ROOT__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - if (coreType) return getXMLNSPrefixMap(); - else return getXMLNSPrefixMap().map(); - case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - if (coreType) return getXSISchemaLocation(); - else return getXSISchemaLocation().map(); - case EdiPackage.EDI_DOCUMENT_ROOT__READER: - return getReader(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EdiPackage.EDI_DOCUMENT_ROOT__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue); - return; - case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue); - return; - case EdiPackage.EDI_DOCUMENT_ROOT__READER: - setReader((EDIReader)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EdiPackage.EDI_DOCUMENT_ROOT__MIXED: - getMixed().clear(); - return; - case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case EdiPackage.EDI_DOCUMENT_ROOT__READER: - setReader((EDIReader)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EdiPackage.EDI_DOCUMENT_ROOT__MIXED: - return mixed != null && !mixed.isEmpty(); - case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case EdiPackage.EDI_DOCUMENT_ROOT__READER: - return getReader() != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //EDIDocumentRootImpl Index: src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java (working copy) @@ -1,253 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiPackage; -import org.jboss.tools.smooks.model.smooks.impl.AbstractReaderImpl; - - -/** - * - * An implementation of the model object 'EDI Reader'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl#getEncoding Encoding}
  • - *
  • {@link org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl#getMappingModel Mapping Model}
  • - *
- *

- * - * @generated - */ -public class EDIReaderImpl extends AbstractReaderImpl implements EDIReader { - /** - * The default value of the '{@link #getEncoding() Encoding}' attribute. - * - * - * @see #getEncoding() - * @generated - * @ordered - */ - protected static final String ENCODING_EDEFAULT = "UTF-8"; //$NON-NLS-1$ - - /** - * The cached value of the '{@link #getEncoding() Encoding}' attribute. - * - * - * @see #getEncoding() - * @generated - * @ordered - */ - protected String encoding = ENCODING_EDEFAULT; - - /** - * This is true if the Encoding attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean encodingESet; - - /** - * The default value of the '{@link #getMappingModel() Mapping Model}' attribute. - * - * - * @see #getMappingModel() - * @generated - * @ordered - */ - protected static final String MAPPING_MODEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMappingModel() Mapping Model}' attribute. - * - * - * @see #getMappingModel() - * @generated - * @ordered - */ - protected String mappingModel = MAPPING_MODEL_EDEFAULT; - - /** - * - * - * @generated - */ - protected EDIReaderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EdiPackage.Literals.EDI_READER; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return encoding; - } - - /** - * - * - * @generated - */ - public void setEncoding(String newEncoding) { - String oldEncoding = encoding; - encoding = newEncoding; - boolean oldEncodingESet = encodingESet; - encodingESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.EDI_READER__ENCODING, oldEncoding, encoding, !oldEncodingESet)); - } - - /** - * - * - * @generated - */ - public void unsetEncoding() { - String oldEncoding = encoding; - boolean oldEncodingESet = encodingESet; - encoding = ENCODING_EDEFAULT; - encodingESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EdiPackage.EDI_READER__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetEncoding() { - return encodingESet; - } - - /** - * - * - * @generated - */ - public String getMappingModel() { - return mappingModel; - } - - /** - * - * - * @generated - */ - public void setMappingModel(String newMappingModel) { - String oldMappingModel = mappingModel; - mappingModel = newMappingModel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.EDI_READER__MAPPING_MODEL, oldMappingModel, mappingModel)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EdiPackage.EDI_READER__ENCODING: - return getEncoding(); - case EdiPackage.EDI_READER__MAPPING_MODEL: - return getMappingModel(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EdiPackage.EDI_READER__ENCODING: - setEncoding((String)newValue); - return; - case EdiPackage.EDI_READER__MAPPING_MODEL: - setMappingModel((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EdiPackage.EDI_READER__ENCODING: - unsetEncoding(); - return; - case EdiPackage.EDI_READER__MAPPING_MODEL: - setMappingModel(MAPPING_MODEL_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EdiPackage.EDI_READER__ENCODING: - return isSetEncoding(); - case EdiPackage.EDI_READER__MAPPING_MODEL: - return MAPPING_MODEL_EDEFAULT == null ? mappingModel != null : !MAPPING_MODEL_EDEFAULT.equals(mappingModel); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (encoding: "); //$NON-NLS-1$ - if (encodingESet) result.append(encoding); else result.append(""); //$NON-NLS-1$ - result.append(", mappingModel: "); //$NON-NLS-1$ - result.append(mappingModel); - result.append(')'); - return result.toString(); - } - -} //EDIReaderImpl Index: src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java (working copy) @@ -1,111 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.jboss.tools.smooks.model.edi.EDIDocumentRoot; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiFactory; -import org.jboss.tools.smooks.model.edi.EdiPackage; - - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class EdiFactoryImpl extends EFactoryImpl implements EdiFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static EdiFactory init() { - try { - EdiFactory theEdiFactory = (EdiFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn.org/xsd/smooks/edi-1.1.xsd"); //$NON-NLS-1$ - if (theEdiFactory != null) { - return theEdiFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new EdiFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public EdiFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case EdiPackage.EDI_DOCUMENT_ROOT: return createEDIDocumentRoot(); - case EdiPackage.EDI_READER: return createEDIReader(); - default: - throw new IllegalArgumentException(Messages.EdiFactoryImpl_Error_Class_Not_Valid + eClass.getName() + Messages.EdiFactoryImpl_Error_Not_Valid_Classifier); - } - } - - /** - * - * - * @generated - */ - public EDIDocumentRoot createEDIDocumentRoot() { - EDIDocumentRootImpl ediDocumentRoot = new EDIDocumentRootImpl(); - return ediDocumentRoot; - } - - /** - * - * - * @generated - */ - public EDIReader createEDIReader() { - EDIReaderImpl ediReader = new EDIReaderImpl(); - return ediReader; - } - - /** - * - * - * @generated - */ - public EdiPackage getEdiPackage() { - return (EdiPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static EdiPackage getPackage() { - return EdiPackage.eINSTANCE; - } - -} //EdiFactoryImpl Index: src/org/jboss/tools/smooks/model/edi/impl/messages.properties =================================================================== --- src/org/jboss/tools/smooks/model/edi/impl/messages.properties (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/impl/messages.properties (working copy) @@ -1,2 +0,0 @@ -EdiFactoryImpl_Error_Class_Not_Valid=The class ' -EdiFactoryImpl_Error_Not_Valid_Classifier=' is not a valid classifier Index: src/org/jboss/tools/smooks/model/edi/impl/Messages.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/impl/Messages.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/impl/Messages.java (working copy) @@ -1,16 +0,0 @@ -package org.jboss.tools.smooks.model.edi.impl; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - private static final String BUNDLE_NAME = "org.jboss.tools.smooks.model.edi.impl.messages"; //$NON-NLS-1$ - public static String EdiFactoryImpl_Error_Class_Not_Valid; - public static String EdiFactoryImpl_Error_Not_Valid_Classifier; - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - private Messages() { - } -} Index: src/org/jboss/tools/smooks/model/edi/EdiPackage.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/EdiPackage.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/EdiPackage.java (working copy) @@ -1,373 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.jboss.tools.smooks.model.smooks.SmooksPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * Smooks EDI Reader Configuration - * - * @see org.jboss.tools.smooks.model.edi.EdiFactory - * @model kind="package" - * @generated - */ -public interface EdiPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "edi"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.milyn.org/xsd/smooks/edi-1.1.xsd"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "edi"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - EdiPackage eINSTANCE = org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl.init(); - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl EDI Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl - * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIDocumentRoot() - * @generated - */ - int EDI_DOCUMENT_ROOT = 0; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int EDI_DOCUMENT_ROOT__MIXED = 0; - - /** - * The feature id for the 'XMLNS Prefix Map' map. - * - * - * @generated - * @ordered - */ - int EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; - - /** - * The feature id for the 'XSI Schema Location' map. - * - * - * @generated - * @ordered - */ - int EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; - - /** - * The feature id for the 'Reader' containment reference. - * - * - * @generated - * @ordered - */ - int EDI_DOCUMENT_ROOT__READER = 3; - - /** - * The number of structural features of the 'EDI Document Root' class. - * - * - * @generated - * @ordered - */ - int EDI_DOCUMENT_ROOT_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl EDI Reader}' class. - * - * - * @see org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl - * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIReader() - * @generated - */ - int EDI_READER = 1; - - /** - * The feature id for the 'Mixed' attribute list. - * - * - * @generated - * @ordered - */ - int EDI_READER__MIXED = SmooksPackage.ABSTRACT_READER__MIXED; - - /** - * The feature id for the 'Any' attribute list. - * - * - * @generated - * @ordered - */ - int EDI_READER__ANY = SmooksPackage.ABSTRACT_READER__ANY; - - /** - * The feature id for the 'Any Attribute' attribute list. - * - * - * @generated - * @ordered - */ - int EDI_READER__ANY_ATTRIBUTE = SmooksPackage.ABSTRACT_READER__ANY_ATTRIBUTE; - - /** - * The feature id for the 'Target Profile' attribute. - * - * - * @generated - * @ordered - */ - int EDI_READER__TARGET_PROFILE = SmooksPackage.ABSTRACT_READER__TARGET_PROFILE; - - /** - * The feature id for the 'Encoding' attribute. - * - * - * @generated - * @ordered - */ - int EDI_READER__ENCODING = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Mapping Model' attribute. - * - * - * @generated - * @ordered - */ - int EDI_READER__MAPPING_MODEL = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'EDI Reader' class. - * - * - * @generated - * @ordered - */ - int EDI_READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 2; - - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot EDI Document Root}'. - * - * - * @return the meta object for class 'EDI Document Root'. - * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot - * @generated - */ - EClass getEDIDocumentRoot(); - - /** - * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getMixed Mixed}'. - * - * - * @return the meta object for the attribute list 'Mixed'. - * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getMixed() - * @see #getEDIDocumentRoot() - * @generated - */ - EAttribute getEDIDocumentRoot_Mixed(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}'. - * - * - * @return the meta object for the map 'XMLNS Prefix Map'. - * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXMLNSPrefixMap() - * @see #getEDIDocumentRoot() - * @generated - */ - EReference getEDIDocumentRoot_XMLNSPrefixMap(); - - /** - * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXSISchemaLocation XSI Schema Location}'. - * - * - * @return the meta object for the map 'XSI Schema Location'. - * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXSISchemaLocation() - * @see #getEDIDocumentRoot() - * @generated - */ - EReference getEDIDocumentRoot_XSISchemaLocation(); - - /** - * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader Reader}'. - * - * - * @return the meta object for the containment reference 'Reader'. - * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader() - * @see #getEDIDocumentRoot() - * @generated - */ - EReference getEDIDocumentRoot_Reader(); - - /** - * Returns the meta object for class '{@link org.jboss.tools.smooks.model.edi.EDIReader EDI Reader}'. - * - * - * @return the meta object for class 'EDI Reader'. - * @see org.jboss.tools.smooks.model.edi.EDIReader - * @generated - */ - EClass getEDIReader(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.edi.EDIReader#getEncoding Encoding}'. - * - * - * @return the meta object for the attribute 'Encoding'. - * @see org.jboss.tools.smooks.model.edi.EDIReader#getEncoding() - * @see #getEDIReader() - * @generated - */ - EAttribute getEDIReader_Encoding(); - - /** - * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel Mapping Model}'. - * - * - * @return the meta object for the attribute 'Mapping Model'. - * @see org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel() - * @see #getEDIReader() - * @generated - */ - EAttribute getEDIReader_MappingModel(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - EdiFactory getEdiFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl EDI Document Root}' class. - * - * - * @see org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl - * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIDocumentRoot() - * @generated - */ - EClass EDI_DOCUMENT_ROOT = eINSTANCE.getEDIDocumentRoot(); - - /** - * The meta object literal for the 'Mixed' attribute list feature. - * - * - * @generated - */ - EAttribute EDI_DOCUMENT_ROOT__MIXED = eINSTANCE.getEDIDocumentRoot_Mixed(); - - /** - * The meta object literal for the 'XMLNS Prefix Map' map feature. - * - * - * @generated - */ - EReference EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getEDIDocumentRoot_XMLNSPrefixMap(); - - /** - * The meta object literal for the 'XSI Schema Location' map feature. - * - * - * @generated - */ - EReference EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getEDIDocumentRoot_XSISchemaLocation(); - - /** - * The meta object literal for the 'Reader' containment reference feature. - * - * - * @generated - */ - EReference EDI_DOCUMENT_ROOT__READER = eINSTANCE.getEDIDocumentRoot_Reader(); - - /** - * The meta object literal for the '{@link org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl EDI Reader}' class. - * - * - * @see org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl - * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIReader() - * @generated - */ - EClass EDI_READER = eINSTANCE.getEDIReader(); - - /** - * The meta object literal for the 'Encoding' attribute feature. - * - * - * @generated - */ - EAttribute EDI_READER__ENCODING = eINSTANCE.getEDIReader_Encoding(); - - /** - * The meta object literal for the 'Mapping Model' attribute feature. - * - * - * @generated - */ - EAttribute EDI_READER__MAPPING_MODEL = eINSTANCE.getEDIReader_MappingModel(); - - } - -} //EdiPackage Index: src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java (working copy) @@ -1,171 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.provider; - - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.edi.EDIDocumentRoot; -import org.jboss.tools.smooks.model.edi.EdiFactory; -import org.jboss.tools.smooks.model.edi.EdiPackage; - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot} object. - * - * - * @generated - */ -public class EDIDocumentRootItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public EDIDocumentRootItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns EDIDocumentRoot.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/EDIDocumentRoot")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_EDIDocumentRoot_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(EDIDocumentRoot.class)) { - case EdiPackage.EDI_DOCUMENT_ROOT__READER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, - EdiFactory.eINSTANCE.createEDIReader())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Edi1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java (working copy) @@ -1,184 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.jboss.tools.smooks.model.edi.EDIReader; -import org.jboss.tools.smooks.model.edi.EdiPackage; -import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider; - - -/** - * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.edi.EDIReader} object. - * - * - * @generated - */ -public class EDIReaderItemProvider - extends AbstractReaderItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public EDIReaderItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addEncodingPropertyDescriptor(object); - addMappingModelPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Encoding feature. - * - * - * @generated - */ - protected void addEncodingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EDIReader_encoding_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_EDIReader_encoding_feature", "_UI_EDIReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - EdiPackage.Literals.EDI_READER__ENCODING, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Mapping Model feature. - * - * - * @generated - */ - protected void addMappingModelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EDIReader_mappingModel_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_EDIReader_mappingModel_feature", "_UI_EDIReader_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - EdiPackage.Literals.EDI_READER__MAPPING_MODEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns EDIReader.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/EDIReader")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return "EDI"; //$NON-NLS-1$ -// String label = ((EDIReader)object).getTargetProfile(); -// return label == null || label.length() == 0 ? -// getString("_UI_EDIReader_type") : -// getString("_UI_EDIReader_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(EDIReader.class)) { - case EdiPackage.EDI_READER__ENCODING: - case EdiPackage.EDI_READER__MAPPING_MODEL: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return Edi1EditPlugin.INSTANCE; - } - -} Index: src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java (working copy) @@ -1,93 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the Edi-1 edit plugin. - * - * - * @generated - */ -public final class Edi1EditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final Edi1EditPlugin INSTANCE = new Edi1EditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public Edi1EditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} Index: src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java =================================================================== --- src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java (revision 20973) +++ src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java (working copy) @@ -1,226 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.jboss.tools.smooks.model.edi.provider; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.jboss.tools.smooks.model.edi.util.EdiAdapterFactory; - - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class EdiItemProviderAdapterFactory extends EdiAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public EdiItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot} instances. - * - * - * @generated - */ - protected EDIDocumentRootItemProvider ediDocumentRootItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot}. - * - * - * @generated - */ - @Override - public Adapter createEDIDocumentRootAdapter() { - if (ediDocumentRootItemProvider == null) { - ediDocumentRootItemProvider = new EDIDocumentRootItemProvider(this); - } - - return ediDocumentRootItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.edi.EDIReader} instances. - * - * - * @generated - */ - protected EDIReaderItemProvider ediReaderItemProvider; - - /** - * This creates an adapter for a {@link org.jboss.tools.smooks.model.edi.EDIReader}. - * - * - * @generated - */ - @Override - public Adapter createEDIReaderAdapter() { - if (ediReaderItemProvider == null) { - ediReaderItemProvider = new EDIReaderItemProvider(this); - } - - return ediReaderItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (ediDocumentRootItemProvider != null) ediDocumentRootItemProvider.dispose(); - if (ediReaderItemProvider != null) ediReaderItemProvider.dispose(); - } - -}