### 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
- *
- * @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.
- *
- *
- *
- * @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 extends EStructuralFeature> 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 extends EStructuralFeature> 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 extends EStructuralFeature> 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'.
- *
- *
- *
- *
- *
- * @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'.
- *
- *
- *
- *
- *
- * @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'.
- *
- *
- *
- *
- *
- * @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'.
- *
- *
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.
- *
- *
- *
- * @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'.
- *
- *
- *
- *
- *
- * @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:
- *
- *
- *
- * @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#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}
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.
- *
- *
- *
- * @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:
- *
- *
- *
- * @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:
- *
- * 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'.
- *
- *
- *
- *
- *
- * @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 extends EStructuralFeature> 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 extends EStructuralFeature> 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 extends EStructuralFeature> 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.
- *
- *
- *
- *
- *
- *
- * @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}
- *
- *
- * @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
- *
- *
- *
- *
{@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.
- *
- *
- *
- *
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.
- *
- *
- *
- * @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
- *
- *
- *
- *
- *
- * @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.
- *