JBoss Tools SVN: r14622 - in trunk: esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-04-09 03:03:18 -0400 (Thu, 09 Apr 2009)
New Revision: 14622
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/Messages.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/filetransfer/ECFExamplesTransport.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/messages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterView.java
Log:
JBIDE-3557 Externalise English strings - replaced concatenated strings with NLS.bind() calls
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties 2009-04-09 07:03:18 UTC (rev 14622)
@@ -6,8 +6,7 @@
JBoss_Runtime_List_Field_Editor_Name=Name
JBoss_Runtime_List_Field_Editor_Version=Version
JBoss_Runtime_List_Field_Editor_Path=Path
-JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be=inputElement must be
-JBoss_Runtime_List_Field_Editor_An_Instance_Of_List=an instance of List<JBossRuntime>.
+JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be_List=inputElement must be an instance of List<JBossRuntime>.
JBoss_Runtime_Delete_Confirm_Title=Confirm Runtime Delete
JBoss_Runtime_Delete_Used_Confirm=Runtime ''{0}'' is used by JBoss ESB projects. Are you sure you want to delete it?
JBoss_Runtime_Delete_Not_Used_Confirm=Are you sure you want to delete runtime ''{0}''?
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -33,8 +33,7 @@
public static String JBoss_Runtime_List_Field_Editor_Name;
public static String JBoss_Runtime_List_Field_Editor_Version;
public static String JBoss_Runtime_List_Field_Editor_Path;
- public static String JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be;
- public static String JBoss_Runtime_List_Field_Editor_An_Instance_Of_List;
+ public static String JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be_List;
public static String JBoss_Runtime_Delete_Confirm_Title;
public static String JBoss_Runtime_Delete_Used_Confirm;
public static String JBoss_Runtime_Delete_Not_Used_Confirm;
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -207,8 +207,7 @@
return ((JBossRuntime) inputElement).getLibraries().toArray();
} else {
throw new IllegalArgumentException(
- JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be
- + JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_An_Instance_Of_List);
+ JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be_List);
}
}
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -222,8 +222,7 @@
return ((List<JBossRuntime>) inputElement).toArray();
} else {
throw new IllegalArgumentException(
- JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be
- + JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_An_Instance_Of_List);
+ JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Inputelement_Must_Be_List);
}
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/Messages.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/Messages.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/Messages.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -20,7 +20,7 @@
public static String ECFExamplesTransport_Internal_Error;
public static String ECFExamplesTransport_IO_error;
public static String ECFExamplesTransport_Loading;
- public static String ECFExamplesTransport_of;
+ public static String ECFExamplesTransport_ReceivedSize_Of_FileSize_At_RatePerSecond;
public static String ECFExamplesTransport_Server_redirected_too_many_times;
public static String ECFExamplesTransport_Unexpected_interrupt_while_waiting_on_ECF_transfer;
public static String MarkerDialog_Description;
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/filetransfer/ECFExamplesTransport.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/filetransfer/ECFExamplesTransport.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/filetransfer/ECFExamplesTransport.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -41,12 +41,12 @@
import org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer;
import org.eclipse.equinox.internal.p2.core.helpers.LogHelper;
import org.eclipse.equinox.internal.provisional.p2.core.IServiceUI;
-import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
import org.eclipse.equinox.internal.provisional.p2.core.IServiceUI.AuthenticationInfo;
import org.eclipse.equinox.internal.provisional.p2.core.repository.IRepository;
import org.eclipse.equinox.security.storage.ISecurePreferences;
import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
import org.eclipse.equinox.security.storage.StorageException;
+import org.eclipse.osgi.util.NLS;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.osgi.util.tracker.ServiceTracker;
@@ -226,7 +226,7 @@
long fileLength = rse.getSource().getFileLength();
final long totalWork = ((fileLength == -1) ? 100 : fileLength);
int work = (totalWork > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) totalWork;
- monitor.beginTask(Messages.ECFExamplesTransport_Downloading + name,work);
+ monitor.beginTask(NLS.bind(Messages.ECFExamplesTransport_Downloading, name), work);
oldWorked=0;
}
} catch (IOException e) {
@@ -251,10 +251,12 @@
int worked = (int) Math.round(factor * received);
double downloadRateBytesPerSecond = (received / ((System.currentTimeMillis() + 1 - transferStartTime) / 1000.0));
- String rates = String.format(" (at %s/s)", AbstractRetrieveFileTransfer.toHumanReadableBytes(downloadRateBytesPerSecond)); //$NON-NLS-1$
+ String downloadRateString = AbstractRetrieveFileTransfer.toHumanReadableBytes(downloadRateBytesPerSecond);
String receivedString = AbstractRetrieveFileTransfer.toHumanReadableBytes(received);
String fileLengthString = AbstractRetrieveFileTransfer.toHumanReadableBytes(fileLength);
- monitor.subTask(receivedString + Messages.ECFExamplesTransport_of + fileLengthString + rates);
+ monitor.subTask(NLS.bind(
+ Messages.ECFExamplesTransport_ReceivedSize_Of_FileSize_At_RatePerSecond,
+ new String[]{receivedString, fileLengthString, downloadRateString}));
monitor.worked(worked-oldWorked);
oldWorked=worked;
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/messages.properties
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/messages.properties 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/messages.properties 2009-04-09 07:03:18 UTC (rev 14622)
@@ -1,9 +1,13 @@
Category_Other=Other
-ECFExamplesTransport_Downloading=Downloading
+ECFExamplesTransport_Downloading=Downloading {0}
ECFExamplesTransport_Internal_Error=Internal Error
ECFExamplesTransport_IO_error=IO error
ECFExamplesTransport_Loading=Loading
-ECFExamplesTransport_of=\ of
+# {0} = amount received (KB/MB/etc)
+# {1} = expected total (KB/MB/etc)
+# {2} = download rate per second (KB/MB/etc)
+# eg 241.73 KB of 30.95 MB (at 34.18 KB/s)
+ECFExamplesTransport_ReceivedSize_Of_FileSize_At_RatePerSecond={0} of {1} (at {2}/s)
ECFExamplesTransport_Server_redirected_too_many_times=Server redirected too many times
ECFExamplesTransport_Unexpected_interrupt_while_waiting_on_ECF_transfer=Unexpected interrupt while waiting on ECF transfer
MarkerDialog_Description=Description
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -171,7 +171,7 @@
p.load(fis);
}
catch(IOException io) {
- throw new HibernateConsoleRuntimeException(HibernateConsoleMessages.EclipseLaunchConsoleConfigurationPreferences_could_not_load_property_file + propFile, io);
+ throw new HibernateConsoleRuntimeException(NLS.bind(HibernateConsoleMessages.EclipseLaunchConsoleConfigurationPreferences_could_not_load_property_file, propFile), io);
}
finally {
if (fis != null) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-04-09 07:03:18 UTC (rev 14622)
@@ -18,7 +18,7 @@
EclipseLaunchConsoleConfigurationPreferences_cannot_read_from_xml=Cannot read from xml
EclipseLaunchConsoleConfigurationPreferences_cannot_write_to_xml=Cannot write to xml
EclipseLaunchConsoleConfigurationPreferences_could_not_compute_classpath=Could not compute classpath
-EclipseLaunchConsoleConfigurationPreferences_could_not_load_property_file=Could not load property file
+EclipseLaunchConsoleConfigurationPreferences_could_not_load_property_file=Could not load property file {0}
EclipseLaunchConsoleConfigurationPreferences_could_not_resolve_to_file=Could not resolve {0} to a file
HibernateConsolePlugin_could_not_delete_launch_config_for=Could not delete launch configuration for:
HibernateConsolePlugin_could_not_open_criteria_editor_for_console=Could not open Criteria editor for console:
@@ -217,7 +217,8 @@
TableFilterView_exclude=Exclude...
TableFilterView_include=Include...
# START NON-TRANSLATABLE
-TableFilterView_not_known_button=\ not a known button
+# internal error message, translation would only cause support problems
+TableFilterView_not_known_button={0} not a known button
# END NON-TRANSLATABLE
TableFilterView_remove_all_filters=Remove all filters
TableFilterView_schema=Schema
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterView.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterView.java 2009-04-09 06:54:58 UTC (rev 14621)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterView.java 2009-04-09 07:03:18 UTC (rev 14622)
@@ -31,6 +31,7 @@
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TextCellEditor;
import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TableColumn;
@@ -204,7 +205,7 @@
doExclusion();
break;
default:
- throw new IllegalArgumentException( i + HibernateConsoleMessages.TableFilterView_not_known_button );
+ throw new IllegalArgumentException(NLS.bind(HibernateConsoleMessages.TableFilterView_not_known_button, i) );
}
}
15 years, 8 months
JBoss Tools SVN: r14621 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-09 02:54:58 -0400 (Thu, 09 Apr 2009)
New Revision: 14621
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4109, JUnit tests were fixed.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml 2009-04-09 06:20:16 UTC (rev 14620)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml 2009-04-09 06:54:58 UTC (rev 14621)
@@ -10,5 +10,11 @@
<body>
<s:decorate template="insert.xhtml" id="id1">
</s:decorate>
+<s:decorate template="insert.xhtml" style="color: red;" id="id2">
+</s:decorate>
+<s:decorate template="insert.xhtml" styleClass="btn" id="id3">
+</s:decorate>
+<s:decorate template="insert.xhtml" styleClass="btn2" style="background-color: blue;" id="id4">
+</s:decorate>
</body>
</html>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml.xml 2009-04-09 06:20:16 UTC (rev 14620)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/decorate.xhtml.xml 2009-04-09 06:54:58 UTC (rev 14621)
@@ -10,4 +10,40 @@
</DIV>
</DIV>
</test>
+ <test id="id2">
+ <DIV VPE:INCLUDE-ELEMENT="yes"
+ STYLE="color: red; -moz-user-modify: read-only;">
+ <DIV STYLE="-moz-user-modify: read-only;">
+ <DIV STYLE="-moz-user-modify: read-only;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-only;">
+ JBoss Seam 2.0.0.CR3 278 Seam JSF controls
+ </SPAN>
+ </DIV>
+ </DIV>
+ </DIV>
+ </test>
+ <test id="id3">
+ <DIV VPE:INCLUDE-ELEMENT="yes" CLASS="btn"
+ STYLE="-moz-user-modify: read-only;">
+ <DIV STYLE="-moz-user-modify: read-only;">
+ <DIV STYLE="-moz-user-modify: read-only;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-only;">
+ JBoss Seam 2.0.0.CR3 278 Seam JSF controls
+ </SPAN>
+ </DIV>
+ </DIV>
+ </DIV>
+ </test>
+ <test id="id4">
+ <DIV VPE:INCLUDE-ELEMENT="yes"
+ STYLE="background-color: blue; -moz-user-modify: read-only;" CLASS="btn2">
+ <DIV STYLE="-moz-user-modify: read-only;">
+ <DIV STYLE="-moz-user-modify: read-only;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-only;">
+ JBoss Seam 2.0.0.CR3 278 Seam JSF controls
+ </SPAN>
+ </DIV>
+ </DIV>
+ </DIV>
+ </test>
</tests>
\ No newline at end of file
15 years, 8 months
JBoss Tools SVN: r14620 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons: full and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-09 02:20:16 -0400 (Thu, 09 Apr 2009)
New Revision: 14620
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/att_obj.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/attribute_obj.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/binding_line.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/blank.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/checkbox_checked.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/checkbox_uncheck.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/class_obj.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/element_obj.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/error_obj.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/esb16.png
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/int_obj.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/javaarraymodel.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/javalistmodel.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/mapping_line.gif
trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/warning_obj.gif
Log:
commit codes of new smooks editor
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/att_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/att_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/attribute_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/attribute_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/binding_line.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/binding_line.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/blank.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/blank.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/checkbox_checked.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/checkbox_checked.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/checkbox_uncheck.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/checkbox_uncheck.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/class_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/class_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/element_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/element_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/error_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/error_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/esb16.png
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/esb16.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/int_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/int_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/javaarraymodel.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/javaarraymodel.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/javalistmodel.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/javalistmodel.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/mapping_line.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/mapping_line.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/warning_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/icons/full/obj16/warning_obj.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 8 months
JBoss Tools SVN: r14619 - in trunk/smooks/plugins/org.jboss.tools.smooks.core: icons/full/ctool16 and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-09 02:08:29 -0400 (Thu, 09 Apr 2009)
New Revision: 14619
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_outputStream_OutputStream.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateOutputStream_highWaterMark_HighWaterMark.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_OutputStream.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/HighWaterMark.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/OutputStream.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
Log:
Add file-router model codes
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_outputStream_OutputStream.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_outputStream_OutputStream.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateOutputStream_highWaterMark_HighWaterMark.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateOutputStream_highWaterMark_HighWaterMark.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_OutputStream.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_OutputStream.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/HighWaterMark.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/HighWaterMark.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/OutputStream.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/OutputStream.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="fileRouting"
+ nsURI="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd" nsPrefix="file">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks file Routing Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="outputStream" upperBound="-2"
+ eType="#//OutputStream" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			File output stream configuration
 			The file output stream creates and manages file output streams.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="outputStream"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HighWaterMark">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="highWaterMark"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mark" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="200" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 					The max number of output files in the destination directory at any time.
				"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="mark"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="pollFrequency" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="1000" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 					The number of milliseconds to wait between checks on the High Water Mark, while
 					waiting for it to drop.
				"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="pollFrequency"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="timeout" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="60000" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 					The number of milliseconds to wait for the system to process files in the destination
 					directory so that the number of files drops below the highWaterMark.
				"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="timeout"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="OutputStream" eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			File output stream
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="outputStream"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="fileNamePattern" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			The pattern that will be used to generate file names.
				 			The file is created in the directory defined by the 'destinationDirectoryPattern' element.
				 			Templating support is available via the FreeMarker template engine.
			 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="fileNamePattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="destinationDirectoryPattern"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			The destination directory for files created by this router.
				 			Templating support is available via the FreeMarker template engine.
			 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="destinationDirectoryPattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="listFileNamePattern" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			The name of the file that will contain the file names generated by this configuration.
				 			The file is created in the directory defined by the 'destinationDirectoryPattern' element.
			 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="listFileNamePattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="highWaterMark" eType="#//HighWaterMark"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			Sets the configuration for the max number of output files in the destination directory at any time.
			 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="highWaterMark"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeOnCondition" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			An MVEL expression. If it returns true then the output stream is closed on the visitAfter event
				 			else it is kept open. If the expression is not set then output stream is closed by default.
			 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="closeOnCondition"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="encoding" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="UTF-8" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						The encoding to be used by any writers on this resource. Default is 'UTF-8'.
						"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="encoding"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="openOnElement" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The element on which the output stream resource should be opened. If opened, the stream will be
 closed at the end of the same element (on the visitAfter). This behaviour can be overridden
 through the &lt;closeOnCondition&gt; element. In that case, the resource is only closed
 when the MVEL condition is met.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="openOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="openOnElementNS" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The namespace of the openOnElement element.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="openOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourceName" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						The name on which the output stream resource is referenced.
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="resourceName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/fileRouting/src"
+ modelPluginID="fileRouting" modelName="File-routing-1" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>file-routing-1.1.ecore</foreignModel>
+ <genPackages prefix="FileRouting" resource="XML" disposableProviderFactory="true"
+ ecorePackage="file-routing-1.1.ecore#/">
+ <genClasses ecoreClass="file-routing-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference file-routing-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference file-routing-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference file-routing-1.1.ecore#//DocumentRoot/outputStream"/>
+ </genClasses>
+ <genClasses ecoreClass="file-routing-1.1.ecore#//HighWaterMark">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//HighWaterMark/mark"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//HighWaterMark/pollFrequency"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//HighWaterMark/timeout"/>
+ </genClasses>
+ <genClasses ecoreClass="file-routing-1.1.ecore#//OutputStream">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/fileNamePattern"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/destinationDirectoryPattern"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/listFileNamePattern"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference file-routing-1.1.ecore#//OutputStream/highWaterMark"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/closeOnCondition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/encoding"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/openOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/openOnElementNS"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute file-routing-1.1.ecore#//OutputStream/resourceName"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML" disposableProviderFactory="true" ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML" disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false" ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:smooks-file-routing="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks file Routing Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="outputStream" type="smooks-file-routing:outputStream" substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ File output stream configuration
+ The file output stream creates and manages file output streams.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+
+ <xs:complexType name="outputStream">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ File output stream
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="fileNamePattern" type="xs:string" minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The pattern that will be used to generate file names.
+ The file is created in the directory defined by the 'destinationDirectoryPattern' element.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="destinationDirectoryPattern" type="xs:string" minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The destination directory for files created by this router.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="listFileNamePattern" type="xs:string" minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the file that will contain the file names generated by this configuration.
+ The file is created in the directory defined by the 'destinationDirectoryPattern' element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="highWaterMark" type="smooks-file-routing:highWaterMark" minOccurs="0" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Sets the configuration for the max number of output files in the destination directory at any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="closeOnCondition" type="xs:string" minOccurs="0" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ An MVEL expression. If it returns true then the output stream is closed on the visitAfter event
+ else it is kept open. If the expression is not set then output stream is closed by default.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ </xs:sequence>
+ <xs:attribute name="openOnElement" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element on which the output stream resource should be opened. If opened, the stream will be
+ closed at the end of the same element (on the visitAfter). This behaviour can be overridden
+ through the <closeOnCondition> element. In that case, the resource is only closed
+ when the MVEL condition is met.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="openOnElementNS" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the openOnElement element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="resourceName" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name on which the output stream resource is referenced.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The encoding to be used by any writers on this resource. Default is 'UTF-8'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="highWaterMark">
+ <xs:attribute name="mark" type="xs:int" use="optional" default="200">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The max number of output files in the destination directory at any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="timeout" type="xs:int" use="optional" default="60000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait for the system to process files in the destination
+ directory so that the number of files drops below the highWaterMark.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="pollFrequency" type="xs:int" use="optional" default="1000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait between checks on the High Water Mark, while
+ waiting for it to drop.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-09 03:18:30 UTC (rev 14618)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-09 06:08:29 UTC (rev 14619)
@@ -224,3 +224,20 @@
_UI_Xsl_applyBefore_feature = Apply Before
_UI_Xsl_applyOnElement_feature = Apply On Element
_UI_Xsl_applyOnElementNS_feature = Apply On Element NS
+
+_UI_DocumentRoot_outputStream_feature = Output Stream
+_UI_HighWaterMark_mark_feature = Mark
+_UI_HighWaterMark_pollFrequency_feature = Poll Frequency
+_UI_HighWaterMark_timeout_feature = Timeout
+_UI_OutputStream_fileNamePattern_feature = File Name Pattern
+_UI_OutputStream_destinationDirectoryPattern_feature = Destination Directory Pattern
+_UI_OutputStream_listFileNamePattern_feature = List File Name Pattern
+_UI_OutputStream_highWaterMark_feature = High Water Mark
+_UI_OutputStream_closeOnCondition_feature = Close On Condition
+_UI_OutputStream_encoding_feature = Encoding
+_UI_OutputStream_openOnElement_feature = Open On Element
+_UI_OutputStream_openOnElementNS_feature = Open On Element NS
+_UI_OutputStream_resourceName_feature = Resource Name
+
+_UI_HighWaterMark_type = High Water Mark
+_UI_OutputStream_type = Output Stream
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-09 03:18:30 UTC (rev 14618)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-09 06:08:29 UTC (rev 14619)
@@ -120,5 +120,18 @@
class="org.jboss.tools.smooks.model.edi.util.EdiResourceFactoryImpl"/>
</extension>
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <package
+ uri="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd"
+ class="org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage"
+ genModel="model/file-routing-1.1.genmodel"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.ecore.extension_parser">
+ <parser
+ type="filerouting"
+ class="org.jboss.tools.smooks.model.fileRouting.util.FileRoutingResourceFactoryImpl"/>
+ </extension>
+
</plugin>
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.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.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> 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}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * 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}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ 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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
+ FileRoutingFactory.eINSTANCE.createOutputStream()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Filerouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,250 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.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.fileRouting.util.FileRoutingAdapterFactory;
+
+
+/**
+ * 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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingItemProviderAdapterFactory extends FileRoutingAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingItemProviderAdapterFactory() {
+ 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.fileRouting.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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 org.jboss.tools.smooks.model.fileRouting.HighWaterMark} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HighWaterMarkItemProvider highWaterMarkItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createHighWaterMarkAdapter() {
+ if (highWaterMarkItemProvider == null) {
+ highWaterMarkItemProvider = new HighWaterMarkItemProvider(this);
+ }
+
+ return highWaterMarkItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.jboss.tools.smooks.model.fileRouting.OutputStream} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OutputStreamItemProvider outputStreamItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.fileRouting.OutputStream}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createOutputStreamAdapter() {
+ if (outputStreamItemProvider == null) {
+ outputStreamItemProvider = new OutputStreamItemProvider(this);
+ }
+
+ return outputStreamItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (highWaterMarkItemProvider != null) highWaterMarkItemProvider.dispose();
+ if (outputStreamItemProvider != null) outputStreamItemProvider.dispose();
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the File-routing-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Filerouting1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Filerouting1EditPlugin INSTANCE = new Filerouting1EditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Filerouting1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,207 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.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.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+
+/**
+ * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HighWaterMarkItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMarkItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addMarkPropertyDescriptor(object);
+ addPollFrequencyPropertyDescriptor(object);
+ addTimeoutPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Mark feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addMarkPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HighWaterMark_mark_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HighWaterMark_mark_feature", "_UI_HighWaterMark_type"),
+ FileRoutingPackage.Literals.HIGH_WATER_MARK__MARK,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Poll Frequency feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPollFrequencyPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HighWaterMark_pollFrequency_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HighWaterMark_pollFrequency_feature", "_UI_HighWaterMark_type"),
+ FileRoutingPackage.Literals.HIGH_WATER_MARK__POLL_FREQUENCY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Timeout feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addTimeoutPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HighWaterMark_timeout_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HighWaterMark_timeout_feature", "_UI_HighWaterMark_type"),
+ FileRoutingPackage.Literals.HIGH_WATER_MARK__TIMEOUT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns HighWaterMark.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/HighWaterMark"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ HighWaterMark highWaterMark = (HighWaterMark)object;
+ return getString("_UI_HighWaterMark_type") + " " + highWaterMark.getMark();
+ }
+
+ /**
+ * 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}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HighWaterMark.class)) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Filerouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,367 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.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.edit.smooks.provider.ElementVisitorItemProvider;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+
+
+/**
+ * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.fileRouting.OutputStream} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class OutputStreamItemProvider
+ extends ElementVisitorItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OutputStreamItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addFileNamePatternPropertyDescriptor(object);
+ addDestinationDirectoryPatternPropertyDescriptor(object);
+ addListFileNamePatternPropertyDescriptor(object);
+ addCloseOnConditionPropertyDescriptor(object);
+ addEncodingPropertyDescriptor(object);
+ addOpenOnElementPropertyDescriptor(object);
+ addOpenOnElementNSPropertyDescriptor(object);
+ addResourceNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the File Name Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFileNamePatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_fileNamePattern_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_fileNamePattern_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__FILE_NAME_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Destination Directory Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDestinationDirectoryPatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_destinationDirectoryPattern_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_destinationDirectoryPattern_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the List File Name Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addListFileNamePatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_listFileNamePattern_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_listFileNamePattern_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Close On Condition feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addCloseOnConditionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_closeOnCondition_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_closeOnCondition_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__CLOSE_ON_CONDITION,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Encoding feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addEncodingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_encoding_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__ENCODING,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Open On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOpenOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_openOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_openOnElement_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__OPEN_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Open On Element NS feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOpenOnElementNSPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_openOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_openOnElementNS_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Resource Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addResourceNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_resourceName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_OutputStream_resourceName_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__RESOURCE_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}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(FileRoutingPackage.Literals.OUTPUT_STREAM__HIGH_WATER_MARK);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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 OutputStream.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/OutputStream"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((OutputStream)object).getResourceName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_OutputStream_type") :
+ getString("_UI_OutputStream_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}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(OutputStream.class)) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (FileRoutingPackage.Literals.OUTPUT_STREAM__HIGH_WATER_MARK,
+ FileRoutingFactory.eINSTANCE.createHighWaterMark()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Filerouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,117 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.util.FeatureMap;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getMixed <em>Mixed</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream <em>Output Stream</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#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 '<em><b>XMLNS Prefix Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute' name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getDocumentRoot_XSISchemaLocation()
+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Output Stream</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * File output stream configuration
+ * The file output stream creates and manages file output streams.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Output Stream</em>' containment reference.
+ * @see #setOutputStream(OutputStream)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getDocumentRoot_OutputStream()
+ * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='outputStream' namespace='##targetNamespace' affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config'"
+ * @generated
+ */
+ OutputStream getOutputStream();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream <em>Output Stream</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Output Stream</em>' containment reference.
+ * @see #getOutputStream()
+ * @generated
+ */
+ void setOutputStream(OutputStream value);
+
+} // DocumentRoot
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,64 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage
+ * @generated
+ */
+public interface FileRoutingFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ FileRoutingFactory eINSTANCE = org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>High Water Mark</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>High Water Mark</em>'.
+ * @generated
+ */
+ HighWaterMark createHighWaterMark();
+
+ /**
+ * Returns a new object of class '<em>Output Stream</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Output Stream</em>'.
+ * @generated
+ */
+ OutputStream createOutputStream();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ FileRoutingPackage getFileRoutingPackage();
+
+} //FileRoutingFactory
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,701 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Smooks file Routing Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface FileRoutingPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "fileRouting";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "file";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ FileRoutingPackage eINSTANCE = org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl <em>Document Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Output Stream</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__OUTPUT_STREAM = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl <em>High Water Mark</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getHighWaterMark()
+ * @generated
+ */
+ int HIGH_WATER_MARK = 1;
+
+ /**
+ * The feature id for the '<em><b>Mark</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK__MARK = 0;
+
+ /**
+ * The feature id for the '<em><b>Poll Frequency</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK__POLL_FREQUENCY = 1;
+
+ /**
+ * The feature id for the '<em><b>Timeout</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK__TIMEOUT = 2;
+
+ /**
+ * The number of structural features of the '<em>High Water Mark</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl <em>Output Stream</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getOutputStream()
+ * @generated
+ */
+ int OUTPUT_STREAM = 2;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__MIXED = SmooksPackage.ELEMENT_VISITOR__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__ANY = SmooksPackage.ELEMENT_VISITOR__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__ANY_ATTRIBUTE = SmooksPackage.ELEMENT_VISITOR__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Condition</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__CONDITION = SmooksPackage.ELEMENT_VISITOR__CONDITION;
+
+ /**
+ * The feature id for the '<em><b>Target Profile</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>File Name Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__FILE_NAME_PATTERN = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Destination Directory Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>List File Name Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__LIST_FILE_NAME_PATTERN = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>High Water Mark</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__HIGH_WATER_MARK = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Close On Condition</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__CLOSE_ON_CONDITION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Encoding</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__ENCODING = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the '<em><b>Open On Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__OPEN_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+ /**
+ * The feature id for the '<em><b>Open On Element NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__OPEN_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 7;
+
+ /**
+ * The feature id for the '<em><b>Resource Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__RESOURCE_NAME = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 8;
+
+ /**
+ * The number of structural features of the '<em>Output Stream</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 9;
+
+
+ /**
+ * Returns the meta object for class '{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getMixed <em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema Location</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream <em>Output Stream</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Output Stream</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_OutputStream();
+
+ /**
+ * Returns the meta object for class '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark <em>High Water Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>High Water Mark</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark
+ * @generated
+ */
+ EClass getHighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark <em>Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Mark</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_Mark();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll Frequency</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Poll Frequency</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_PollFrequency();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout <em>Timeout</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Timeout</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_Timeout();
+
+ /**
+ * Returns the meta object for class '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream <em>Output Stream</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Output Stream</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream
+ * @generated
+ */
+ EClass getOutputStream();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern <em>File Name Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>File Name Pattern</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_FileNamePattern();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern <em>Destination Directory Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Destination Directory Pattern</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_DestinationDirectoryPattern();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern <em>List File Name Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>List File Name Pattern</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_ListFileNamePattern();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark <em>High Water Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>High Water Mark</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EReference getOutputStream_HighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition <em>Close On Condition</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Close On Condition</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_CloseOnCondition();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding <em>Encoding</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Encoding</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement <em>Open On Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Open On Element</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_OpenOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS <em>Open On Element NS</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Open On Element NS</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_OpenOnElementNS();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName <em>Resource Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Resource Name</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_ResourceName();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ FileRoutingFactory getFileRoutingFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl <em>Document Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the '<em><b>Output Stream</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__OUTPUT_STREAM = eINSTANCE.getDocumentRoot_OutputStream();
+
+ /**
+ * The meta object literal for the '{@link org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl <em>High Water Mark</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getHighWaterMark()
+ * @generated
+ */
+ EClass HIGH_WATER_MARK = eINSTANCE.getHighWaterMark();
+
+ /**
+ * The meta object literal for the '<em><b>Mark</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIGH_WATER_MARK__MARK = eINSTANCE.getHighWaterMark_Mark();
+
+ /**
+ * The meta object literal for the '<em><b>Poll Frequency</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIGH_WATER_MARK__POLL_FREQUENCY = eINSTANCE.getHighWaterMark_PollFrequency();
+
+ /**
+ * The meta object literal for the '<em><b>Timeout</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIGH_WATER_MARK__TIMEOUT = eINSTANCE.getHighWaterMark_Timeout();
+
+ /**
+ * The meta object literal for the '{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl <em>Output Stream</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getOutputStream()
+ * @generated
+ */
+ EClass OUTPUT_STREAM = eINSTANCE.getOutputStream();
+
+ /**
+ * The meta object literal for the '<em><b>File Name Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__FILE_NAME_PATTERN = eINSTANCE.getOutputStream_FileNamePattern();
+
+ /**
+ * The meta object literal for the '<em><b>Destination Directory Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN = eINSTANCE.getOutputStream_DestinationDirectoryPattern();
+
+ /**
+ * The meta object literal for the '<em><b>List File Name Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__LIST_FILE_NAME_PATTERN = eINSTANCE.getOutputStream_ListFileNamePattern();
+
+ /**
+ * The meta object literal for the '<em><b>High Water Mark</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OUTPUT_STREAM__HIGH_WATER_MARK = eINSTANCE.getOutputStream_HighWaterMark();
+
+ /**
+ * The meta object literal for the '<em><b>Close On Condition</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__CLOSE_ON_CONDITION = eINSTANCE.getOutputStream_CloseOnCondition();
+
+ /**
+ * The meta object literal for the '<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__ENCODING = eINSTANCE.getOutputStream_Encoding();
+
+ /**
+ * The meta object literal for the '<em><b>Open On Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__OPEN_ON_ELEMENT = eINSTANCE.getOutputStream_OpenOnElement();
+
+ /**
+ * The meta object literal for the '<em><b>Open On Element NS</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__OPEN_ON_ELEMENT_NS = eINSTANCE.getOutputStream_OpenOnElementNS();
+
+ /**
+ * The meta object literal for the '<em><b>Resource Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__RESOURCE_NAME = eINSTANCE.getOutputStream_ResourceName();
+
+ }
+
+} //FileRoutingPackage
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,200 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>High Water Mark</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark <em>Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll Frequency</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout <em>Timeout</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark()
+ * @model extendedMetaData="name='highWaterMark' kind='empty'"
+ * @generated
+ */
+public interface HighWaterMark extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mark</b></em>' attribute.
+ * The default value is <code>"200"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The max number of output files in the destination directory at any time.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Mark</em>' attribute.
+ * @see #isSetMark()
+ * @see #unsetMark()
+ * @see #setMark(int)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark_Mark()
+ * @model default="200" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute' name='mark'"
+ * @generated
+ */
+ int getMark();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark <em>Mark</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Mark</em>' attribute.
+ * @see #isSetMark()
+ * @see #unsetMark()
+ * @see #getMark()
+ * @generated
+ */
+ void setMark(int value);
+
+ /**
+ * Unsets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark <em>Mark</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetMark()
+ * @see #getMark()
+ * @see #setMark(int)
+ * @generated
+ */
+ void unsetMark();
+
+ /**
+ * Returns whether the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark <em>Mark</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Mark</em>' attribute is set.
+ * @see #unsetMark()
+ * @see #getMark()
+ * @see #setMark(int)
+ * @generated
+ */
+ boolean isSetMark();
+
+ /**
+ * Returns the value of the '<em><b>Poll Frequency</b></em>' attribute.
+ * The default value is <code>"1000"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The number of milliseconds to wait between checks on the High Water Mark, while
+ * waiting for it to drop.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Poll Frequency</em>' attribute.
+ * @see #isSetPollFrequency()
+ * @see #unsetPollFrequency()
+ * @see #setPollFrequency(int)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark_PollFrequency()
+ * @model default="1000" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute' name='pollFrequency'"
+ * @generated
+ */
+ int getPollFrequency();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Poll Frequency</em>' attribute.
+ * @see #isSetPollFrequency()
+ * @see #unsetPollFrequency()
+ * @see #getPollFrequency()
+ * @generated
+ */
+ void setPollFrequency(int value);
+
+ /**
+ * Unsets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetPollFrequency()
+ * @see #getPollFrequency()
+ * @see #setPollFrequency(int)
+ * @generated
+ */
+ void unsetPollFrequency();
+
+ /**
+ * Returns whether the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll Frequency</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Poll Frequency</em>' attribute is set.
+ * @see #unsetPollFrequency()
+ * @see #getPollFrequency()
+ * @see #setPollFrequency(int)
+ * @generated
+ */
+ boolean isSetPollFrequency();
+
+ /**
+ * Returns the value of the '<em><b>Timeout</b></em>' attribute.
+ * The default value is <code>"60000"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The number of milliseconds to wait for the system to process files in the destination
+ * directory so that the number of files drops below the highWaterMark.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Timeout</em>' attribute.
+ * @see #isSetTimeout()
+ * @see #unsetTimeout()
+ * @see #setTimeout(int)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark_Timeout()
+ * @model default="60000" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute' name='timeout'"
+ * @generated
+ */
+ int getTimeout();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout <em>Timeout</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Timeout</em>' attribute.
+ * @see #isSetTimeout()
+ * @see #unsetTimeout()
+ * @see #getTimeout()
+ * @generated
+ */
+ void setTimeout(int value);
+
+ /**
+ * Unsets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout <em>Timeout</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetTimeout()
+ * @see #getTimeout()
+ * @see #setTimeout(int)
+ * @generated
+ */
+ void unsetTimeout();
+
+ /**
+ * Returns whether the value of the '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout <em>Timeout</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Timeout</em>' attribute is set.
+ * @see #unsetTimeout()
+ * @see #getTimeout()
+ * @see #setTimeout(int)
+ * @generated
+ */
+ boolean isSetTimeout();
+
+} // HighWaterMark
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,330 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Output Stream</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * File output stream
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern <em>File Name Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern <em>Destination Directory Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern <em>List File Name Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark <em>High Water Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition <em>Close On Condition</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding <em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement <em>Open On Element</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS <em>Open On Element NS</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName <em>Resource Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream()
+ * @model extendedMetaData="name='outputStream' kind='elementOnly'"
+ * @generated
+ */
+public interface OutputStream extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>File Name Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The pattern that will be used to generate file names.
+ * The file is created in the directory defined by the 'destinationDirectoryPattern' element.
+ * Templating support is available via the FreeMarker template engine.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>File Name Pattern</em>' attribute.
+ * @see #setFileNamePattern(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_FileNamePattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+ * extendedMetaData="kind='element' name='fileNamePattern' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getFileNamePattern();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern <em>File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>File Name Pattern</em>' attribute.
+ * @see #getFileNamePattern()
+ * @generated
+ */
+ void setFileNamePattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>Destination Directory Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The destination directory for files created by this router.
+ * Templating support is available via the FreeMarker template engine.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Destination Directory Pattern</em>' attribute.
+ * @see #setDestinationDirectoryPattern(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_DestinationDirectoryPattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+ * extendedMetaData="kind='element' name='destinationDirectoryPattern' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDestinationDirectoryPattern();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern <em>Destination Directory Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Destination Directory Pattern</em>' attribute.
+ * @see #getDestinationDirectoryPattern()
+ * @generated
+ */
+ void setDestinationDirectoryPattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>List File Name Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name of the file that will contain the file names generated by this configuration.
+ * The file is created in the directory defined by the 'destinationDirectoryPattern' element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>List File Name Pattern</em>' attribute.
+ * @see #setListFileNamePattern(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_ListFileNamePattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+ * extendedMetaData="kind='element' name='listFileNamePattern' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getListFileNamePattern();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern <em>List File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>List File Name Pattern</em>' attribute.
+ * @see #getListFileNamePattern()
+ * @generated
+ */
+ void setListFileNamePattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>High Water Mark</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Sets the configuration for the max number of output files in the destination directory at any time.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>High Water Mark</em>' containment reference.
+ * @see #setHighWaterMark(HighWaterMark)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_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.fileRouting.OutputStream#getHighWaterMark <em>High Water Mark</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>High Water Mark</em>' containment reference.
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ void setHighWaterMark(HighWaterMark value);
+
+ /**
+ * Returns the value of the '<em><b>Close On Condition</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * An MVEL expression. If it returns true then the output stream is closed on the visitAfter event
+ * else it is kept open. If the expression is not set then output stream is closed by default.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Close On Condition</em>' attribute.
+ * @see #setCloseOnCondition(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_CloseOnCondition()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='element' name='closeOnCondition' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getCloseOnCondition();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition <em>Close On Condition</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Close On Condition</em>' attribute.
+ * @see #getCloseOnCondition()
+ * @generated
+ */
+ void setCloseOnCondition(String value);
+
+ /**
+ * Returns the value of the '<em><b>Encoding</b></em>' attribute.
+ * The default value is <code>"UTF-8"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The encoding to be used by any writers on this resource. Default is 'UTF-8'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Encoding</em>' attribute.
+ * @see #isSetEncoding()
+ * @see #unsetEncoding()
+ * @see #setEncoding(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_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.fileRouting.OutputStream#getEncoding <em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Encoding</em>' attribute.
+ * @see #isSetEncoding()
+ * @see #unsetEncoding()
+ * @see #getEncoding()
+ * @generated
+ */
+ void setEncoding(String value);
+
+ /**
+ * Unsets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding <em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetEncoding()
+ * @see #getEncoding()
+ * @see #setEncoding(String)
+ * @generated
+ */
+ void unsetEncoding();
+
+ /**
+ * Returns whether the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding <em>Encoding</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Encoding</em>' attribute is set.
+ * @see #unsetEncoding()
+ * @see #getEncoding()
+ * @see #setEncoding(String)
+ * @generated
+ */
+ boolean isSetEncoding();
+
+ /**
+ * Returns the value of the '<em><b>Open On Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element on which the output stream resource should be opened. If opened, the stream will be
+ * closed at the end of the same element (on the visitAfter). This behaviour can be overridden
+ * through the <closeOnCondition> element. In that case, the resource is only closed
+ * when the MVEL condition is met.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Open On Element</em>' attribute.
+ * @see #setOpenOnElement(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_OpenOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+ * extendedMetaData="kind='attribute' name='openOnElement'"
+ * @generated
+ */
+ String getOpenOnElement();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement <em>Open On Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Open On Element</em>' attribute.
+ * @see #getOpenOnElement()
+ * @generated
+ */
+ void setOpenOnElement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Open On Element NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The namespace of the openOnElement element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Open On Element NS</em>' attribute.
+ * @see #setOpenOnElementNS(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_OpenOnElementNS()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='openOnElementNS'"
+ * @generated
+ */
+ String getOpenOnElementNS();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS <em>Open On Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Open On Element NS</em>' attribute.
+ * @see #getOpenOnElementNS()
+ * @generated
+ */
+ void setOpenOnElementNS(String value);
+
+ /**
+ * Returns the value of the '<em><b>Resource Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name on which the output stream resource is referenced.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Resource Name</em>' attribute.
+ * @see #setResourceName(String)
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_ResourceName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+ * extendedMetaData="kind='attribute' name='resourceName'"
+ * @generated
+ */
+ String getResourceName();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName <em>Resource Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Resource Name</em>' attribute.
+ * @see #getResourceName()
+ * @generated
+ */
+ void setResourceName(String value);
+
+} // OutputStream
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.impl;
+
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.jboss.tools.smooks.model.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getOutputStream <em>Output Stream</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FileRoutingPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, FileRoutingPackage.DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap<String, String> getXMLNSPrefixMap() {
+ if (xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap<String, String> getXSISchemaLocation() {
+ if (xSISchemaLocation == null) {
+ xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OutputStream getOutputStream() {
+ return (OutputStream)getMixed().get(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetOutputStream(OutputStream newOutputStream, NotificationChain msgs) {
+ return ((FeatureMap.Internal)getMixed()).basicAdd(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM, newOutputStream, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOutputStream(OutputStream newOutputStream) {
+ ((FeatureMap.Internal)getMixed()).set(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM, newOutputStream);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ return basicSetOutputStream(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ return getOutputStream();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ setOutputStream((OutputStream)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ setOutputStream((OutputStream)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ return getOutputStream() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DocumentRootImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,121 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.impl;
+
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.jboss.tools.smooks.model.fileRouting.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingFactoryImpl extends EFactoryImpl implements FileRoutingFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static FileRoutingFactory init() {
+ try {
+ FileRoutingFactory theFileRoutingFactory = (FileRoutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd");
+ if (theFileRoutingFactory != null) {
+ return theFileRoutingFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new FileRoutingFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case FileRoutingPackage.DOCUMENT_ROOT: return createDocumentRoot();
+ case FileRoutingPackage.HIGH_WATER_MARK: return createHighWaterMark();
+ case FileRoutingPackage.OUTPUT_STREAM: return createOutputStream();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMark createHighWaterMark() {
+ HighWaterMarkImpl highWaterMark = new HighWaterMarkImpl();
+ return highWaterMark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OutputStream createOutputStream() {
+ OutputStreamImpl outputStream = new OutputStreamImpl();
+ return outputStream;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingPackage getFileRoutingPackage() {
+ return (FileRoutingPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static FileRoutingPackage getPackage() {
+ return FileRoutingPackage.eINSTANCE;
+ }
+
+} //FileRoutingFactoryImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,570 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingPackageImpl extends EPackageImpl implements FileRoutingPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass highWaterMarkEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass outputStreamEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private FileRoutingPackageImpl() {
+ super(eNS_URI, FileRoutingFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> 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.
+ * <p>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.
+ * <p>Invocation of this method will not affect any packages that have
+ * already been initialized.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static FileRoutingPackage init() {
+ if (isInited) return (FileRoutingPackage)EPackage.Registry.INSTANCE.getEPackage(FileRoutingPackage.eNS_URI);
+
+ // Obtain or create and register package
+ FileRoutingPackageImpl theFileRoutingPackage = (FileRoutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof FileRoutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new FileRoutingPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE);
+ CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theFileRoutingPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theFileRoutingPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theFileRoutingPackage.freeze();
+
+ return theFileRoutingPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_OutputStream() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getHighWaterMark() {
+ return highWaterMarkEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_Mark() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_PollFrequency() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_Timeout() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getOutputStream() {
+ return outputStreamEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_FileNamePattern() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_DestinationDirectoryPattern() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_ListFileNamePattern() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOutputStream_HighWaterMark() {
+ return (EReference)outputStreamEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_CloseOnCondition() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_Encoding() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_OpenOnElement() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_OpenOnElementNS() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_ResourceName() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingFactory getFileRoutingFactory() {
+ return (FileRoutingFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__OUTPUT_STREAM);
+
+ highWaterMarkEClass = createEClass(HIGH_WATER_MARK);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__MARK);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__POLL_FREQUENCY);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__TIMEOUT);
+
+ outputStreamEClass = createEClass(OUTPUT_STREAM);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__FILE_NAME_PATTERN);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__LIST_FILE_NAME_PATTERN);
+ createEReference(outputStreamEClass, OUTPUT_STREAM__HIGH_WATER_MARK);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__CLOSE_ON_CONDITION);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__ENCODING);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__OPEN_ON_ELEMENT);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__OPEN_ON_ELEMENT_NS);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__RESOURCE_NAME);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+ SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ outputStreamEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_OutputStream(), this.getOutputStream(), null, "outputStream", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(highWaterMarkEClass, HighWaterMark.class, "HighWaterMark", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHighWaterMark_Mark(), theXMLTypePackage.getInt(), "mark", "200", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHighWaterMark_PollFrequency(), theXMLTypePackage.getInt(), "pollFrequency", "1000", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHighWaterMark_Timeout(), theXMLTypePackage.getInt(), "timeout", "60000", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(outputStreamEClass, OutputStream.class, "OutputStream", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getOutputStream_FileNamePattern(), theXMLTypePackage.getString(), "fileNamePattern", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_DestinationDirectoryPattern(), theXMLTypePackage.getString(), "destinationDirectoryPattern", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_ListFileNamePattern(), theXMLTypePackage.getString(), "listFileNamePattern", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOutputStream_HighWaterMark(), this.getHighWaterMark(), null, "highWaterMark", null, 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_CloseOnCondition(), theXMLTypePackage.getString(), "closeOnCondition", null, 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_Encoding(), theXMLTypePackage.getString(), "encoding", "UTF-8", 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_OpenOnElement(), theXMLTypePackage.getString(), "openOnElement", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_OpenOnElementNS(), theXMLTypePackage.getString(), "openOnElementNS", null, 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_ResourceName(), theXMLTypePackage.getString(), "resourceName", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_OutputStream(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "outputStream",
+ "namespace", "##targetNamespace",
+ "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (highWaterMarkEClass,
+ source,
+ new String[] {
+ "name", "highWaterMark",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getHighWaterMark_Mark(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "mark"
+ });
+ addAnnotation
+ (getHighWaterMark_PollFrequency(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "pollFrequency"
+ });
+ addAnnotation
+ (getHighWaterMark_Timeout(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "timeout"
+ });
+ addAnnotation
+ (outputStreamEClass,
+ source,
+ new String[] {
+ "name", "outputStream",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getOutputStream_FileNamePattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "fileNamePattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_DestinationDirectoryPattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "destinationDirectoryPattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_ListFileNamePattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "listFileNamePattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_HighWaterMark(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "highWaterMark",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_CloseOnCondition(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "closeOnCondition",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getOutputStream_OpenOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "openOnElement"
+ });
+ addAnnotation
+ (getOutputStream_OpenOnElementNS(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "openOnElementNS"
+ });
+ addAnnotation
+ (getOutputStream_ResourceName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "resourceName"
+ });
+ }
+
+} //FileRoutingPackageImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,377 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.impl;
+
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>High Water Mark</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl#getMark <em>Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl#getPollFrequency <em>Poll Frequency</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl#getTimeout <em>Timeout</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class HighWaterMarkImpl extends EObjectImpl implements HighWaterMark {
+ /**
+ * The default value of the '{@link #getMark() <em>Mark</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMark()
+ * @generated
+ * @ordered
+ */
+ protected static final int MARK_EDEFAULT = 200;
+
+ /**
+ * The cached value of the '{@link #getMark() <em>Mark</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMark()
+ * @generated
+ * @ordered
+ */
+ protected int mark = MARK_EDEFAULT;
+
+ /**
+ * This is true if the Mark attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean markESet;
+
+ /**
+ * The default value of the '{@link #getPollFrequency() <em>Poll Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPollFrequency()
+ * @generated
+ * @ordered
+ */
+ protected static final int POLL_FREQUENCY_EDEFAULT = 1000;
+
+ /**
+ * The cached value of the '{@link #getPollFrequency() <em>Poll Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPollFrequency()
+ * @generated
+ * @ordered
+ */
+ protected int pollFrequency = POLL_FREQUENCY_EDEFAULT;
+
+ /**
+ * This is true if the Poll Frequency attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean pollFrequencyESet;
+
+ /**
+ * The default value of the '{@link #getTimeout() <em>Timeout</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTimeout()
+ * @generated
+ * @ordered
+ */
+ protected static final int TIMEOUT_EDEFAULT = 60000;
+
+ /**
+ * The cached value of the '{@link #getTimeout() <em>Timeout</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTimeout()
+ * @generated
+ * @ordered
+ */
+ protected int timeout = TIMEOUT_EDEFAULT;
+
+ /**
+ * This is true if the Timeout attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean timeoutESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HighWaterMarkImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FileRoutingPackage.Literals.HIGH_WATER_MARK;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getMark() {
+ return mark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMark(int newMark) {
+ int oldMark = mark;
+ mark = newMark;
+ boolean oldMarkESet = markESet;
+ markESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.HIGH_WATER_MARK__MARK, oldMark, mark, !oldMarkESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetMark() {
+ int oldMark = mark;
+ boolean oldMarkESet = markESet;
+ mark = MARK_EDEFAULT;
+ markESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, FileRoutingPackage.HIGH_WATER_MARK__MARK, oldMark, MARK_EDEFAULT, oldMarkESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetMark() {
+ return markESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getPollFrequency() {
+ return pollFrequency;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPollFrequency(int newPollFrequency) {
+ int oldPollFrequency = pollFrequency;
+ pollFrequency = newPollFrequency;
+ boolean oldPollFrequencyESet = pollFrequencyESet;
+ pollFrequencyESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY, oldPollFrequency, pollFrequency, !oldPollFrequencyESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetPollFrequency() {
+ int oldPollFrequency = pollFrequency;
+ boolean oldPollFrequencyESet = pollFrequencyESet;
+ pollFrequency = POLL_FREQUENCY_EDEFAULT;
+ pollFrequencyESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY, oldPollFrequency, POLL_FREQUENCY_EDEFAULT, oldPollFrequencyESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetPollFrequency() {
+ return pollFrequencyESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getTimeout() {
+ return timeout;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTimeout(int newTimeout) {
+ int oldTimeout = timeout;
+ timeout = newTimeout;
+ boolean oldTimeoutESet = timeoutESet;
+ timeoutESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT, oldTimeout, timeout, !oldTimeoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetTimeout() {
+ int oldTimeout = timeout;
+ boolean oldTimeoutESet = timeoutESet;
+ timeout = TIMEOUT_EDEFAULT;
+ timeoutESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT, oldTimeout, TIMEOUT_EDEFAULT, oldTimeoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetTimeout() {
+ return timeoutESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ return new Integer(getMark());
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ return new Integer(getPollFrequency());
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ return new Integer(getTimeout());
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ setMark(((Integer)newValue).intValue());
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ setPollFrequency(((Integer)newValue).intValue());
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ setTimeout(((Integer)newValue).intValue());
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ unsetMark();
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ unsetPollFrequency();
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ unsetTimeout();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ return isSetMark();
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ return isSetPollFrequency();
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ return isSetTimeout();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mark: ");
+ if (markESet) result.append(mark); else result.append("<unset>");
+ result.append(", pollFrequency: ");
+ if (pollFrequencyESet) result.append(pollFrequency); else result.append("<unset>");
+ result.append(", timeout: ");
+ if (timeoutESet) result.append(timeout); else result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //HighWaterMarkImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,658 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Output Stream</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getFileNamePattern <em>File Name Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getDestinationDirectoryPattern <em>Destination Directory Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getListFileNamePattern <em>List File Name Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getHighWaterMark <em>High Water Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getCloseOnCondition <em>Close On Condition</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getEncoding <em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getOpenOnElement <em>Open On Element</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getOpenOnElementNS <em>Open On Element NS</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getResourceName <em>Resource Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OutputStreamImpl extends ElementVisitorImpl implements OutputStream {
+ /**
+ * The default value of the '{@link #getFileNamePattern() <em>File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String FILE_NAME_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFileNamePattern() <em>File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected String fileNamePattern = FILE_NAME_PATTERN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDestinationDirectoryPattern() <em>Destination Directory Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDestinationDirectoryPattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESTINATION_DIRECTORY_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDestinationDirectoryPattern() <em>Destination Directory Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDestinationDirectoryPattern()
+ * @generated
+ * @ordered
+ */
+ protected String destinationDirectoryPattern = DESTINATION_DIRECTORY_PATTERN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getListFileNamePattern() <em>List File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getListFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String LIST_FILE_NAME_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getListFileNamePattern() <em>List File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getListFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected String listFileNamePattern = LIST_FILE_NAME_PATTERN_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getHighWaterMark() <em>High Water Mark</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHighWaterMark()
+ * @generated
+ * @ordered
+ */
+ protected HighWaterMark highWaterMark;
+
+ /**
+ * The default value of the '{@link #getCloseOnCondition() <em>Close On Condition</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCloseOnCondition()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLOSE_ON_CONDITION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCloseOnCondition() <em>Close On Condition</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCloseOnCondition()
+ * @generated
+ * @ordered
+ */
+ protected String closeOnCondition = CLOSE_ON_CONDITION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEncoding() <em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEncoding()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENCODING_EDEFAULT = "UTF-8";
+
+ /**
+ * The cached value of the '{@link #getEncoding() <em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEncoding()
+ * @generated
+ * @ordered
+ */
+ protected String encoding = ENCODING_EDEFAULT;
+
+ /**
+ * This is true if the Encoding attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean encodingESet;
+
+ /**
+ * The default value of the '{@link #getOpenOnElement() <em>Open On Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPEN_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOpenOnElement() <em>Open On Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String openOnElement = OPEN_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOpenOnElementNS() <em>Open On Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPEN_ON_ELEMENT_NS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOpenOnElementNS() <em>Open On Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected String openOnElementNS = OPEN_ON_ELEMENT_NS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getResourceName() <em>Resource Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceName()
+ * @generated
+ * @ordered
+ */
+ protected static final String RESOURCE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getResourceName() <em>Resource Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceName()
+ * @generated
+ * @ordered
+ */
+ protected String resourceName = RESOURCE_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OutputStreamImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FileRoutingPackage.Literals.OUTPUT_STREAM;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFileNamePattern() {
+ return fileNamePattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFileNamePattern(String newFileNamePattern) {
+ String oldFileNamePattern = fileNamePattern;
+ fileNamePattern = newFileNamePattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN, oldFileNamePattern, fileNamePattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDestinationDirectoryPattern() {
+ return destinationDirectoryPattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDestinationDirectoryPattern(String newDestinationDirectoryPattern) {
+ String oldDestinationDirectoryPattern = destinationDirectoryPattern;
+ destinationDirectoryPattern = newDestinationDirectoryPattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN, oldDestinationDirectoryPattern, destinationDirectoryPattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getListFileNamePattern() {
+ return listFileNamePattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setListFileNamePattern(String newListFileNamePattern) {
+ String oldListFileNamePattern = listFileNamePattern;
+ listFileNamePattern = newListFileNamePattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN, oldListFileNamePattern, listFileNamePattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMark getHighWaterMark() {
+ return highWaterMark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetHighWaterMark(HighWaterMark newHighWaterMark, NotificationChain msgs) {
+ HighWaterMark oldHighWaterMark = highWaterMark;
+ highWaterMark = newHighWaterMark;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, oldHighWaterMark, newHighWaterMark);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setHighWaterMark(HighWaterMark newHighWaterMark) {
+ if (newHighWaterMark != highWaterMark) {
+ NotificationChain msgs = null;
+ if (highWaterMark != null)
+ msgs = ((InternalEObject)highWaterMark).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, null, msgs);
+ if (newHighWaterMark != null)
+ msgs = ((InternalEObject)newHighWaterMark).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, null, msgs);
+ msgs = basicSetHighWaterMark(newHighWaterMark, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, newHighWaterMark, newHighWaterMark));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCloseOnCondition() {
+ return closeOnCondition;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCloseOnCondition(String newCloseOnCondition) {
+ String oldCloseOnCondition = closeOnCondition;
+ closeOnCondition = newCloseOnCondition;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION, oldCloseOnCondition, closeOnCondition));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEncoding(String newEncoding) {
+ String oldEncoding = encoding;
+ encoding = newEncoding;
+ boolean oldEncodingESet = encodingESet;
+ encodingESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__ENCODING, oldEncoding, encoding, !oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetEncoding() {
+ String oldEncoding = encoding;
+ boolean oldEncodingESet = encodingESet;
+ encoding = ENCODING_EDEFAULT;
+ encodingESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, FileRoutingPackage.OUTPUT_STREAM__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetEncoding() {
+ return encodingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOpenOnElement() {
+ return openOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOpenOnElement(String newOpenOnElement) {
+ String oldOpenOnElement = openOnElement;
+ openOnElement = newOpenOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT, oldOpenOnElement, openOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOpenOnElementNS() {
+ return openOnElementNS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOpenOnElementNS(String newOpenOnElementNS) {
+ String oldOpenOnElementNS = openOnElementNS;
+ openOnElementNS = newOpenOnElementNS;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS, oldOpenOnElementNS, openOnElementNS));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getResourceName() {
+ return resourceName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResourceName(String newResourceName) {
+ String oldResourceName = resourceName;
+ resourceName = newResourceName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME, oldResourceName, resourceName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ return basicSetHighWaterMark(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ return getFileNamePattern();
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ return getDestinationDirectoryPattern();
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ return getListFileNamePattern();
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ return getHighWaterMark();
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ return getCloseOnCondition();
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ return getEncoding();
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ return getOpenOnElement();
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ return getOpenOnElementNS();
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ return getResourceName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ setFileNamePattern((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ setDestinationDirectoryPattern((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ setListFileNamePattern((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ setCloseOnCondition((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ setOpenOnElement((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ setOpenOnElementNS((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ setResourceName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ setFileNamePattern(FILE_NAME_PATTERN_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ setDestinationDirectoryPattern(DESTINATION_DIRECTORY_PATTERN_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ setListFileNamePattern(LIST_FILE_NAME_PATTERN_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)null);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ setCloseOnCondition(CLOSE_ON_CONDITION_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ unsetEncoding();
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ setOpenOnElement(OPEN_ON_ELEMENT_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ setOpenOnElementNS(OPEN_ON_ELEMENT_NS_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ setResourceName(RESOURCE_NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ return FILE_NAME_PATTERN_EDEFAULT == null ? fileNamePattern != null : !FILE_NAME_PATTERN_EDEFAULT.equals(fileNamePattern);
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ return DESTINATION_DIRECTORY_PATTERN_EDEFAULT == null ? destinationDirectoryPattern != null : !DESTINATION_DIRECTORY_PATTERN_EDEFAULT.equals(destinationDirectoryPattern);
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ return LIST_FILE_NAME_PATTERN_EDEFAULT == null ? listFileNamePattern != null : !LIST_FILE_NAME_PATTERN_EDEFAULT.equals(listFileNamePattern);
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ return highWaterMark != null;
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ return CLOSE_ON_CONDITION_EDEFAULT == null ? closeOnCondition != null : !CLOSE_ON_CONDITION_EDEFAULT.equals(closeOnCondition);
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ return isSetEncoding();
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ return OPEN_ON_ELEMENT_EDEFAULT == null ? openOnElement != null : !OPEN_ON_ELEMENT_EDEFAULT.equals(openOnElement);
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ return OPEN_ON_ELEMENT_NS_EDEFAULT == null ? openOnElementNS != null : !OPEN_ON_ELEMENT_NS_EDEFAULT.equals(openOnElementNS);
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ return RESOURCE_NAME_EDEFAULT == null ? resourceName != null : !RESOURCE_NAME_EDEFAULT.equals(resourceName);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (fileNamePattern: ");
+ result.append(fileNamePattern);
+ result.append(", destinationDirectoryPattern: ");
+ result.append(destinationDirectoryPattern);
+ result.append(", listFileNamePattern: ");
+ result.append(listFileNamePattern);
+ result.append(", closeOnCondition: ");
+ result.append(closeOnCondition);
+ result.append(", encoding: ");
+ if (encodingESet) result.append(encoding); else result.append("<unset>");
+ result.append(", openOnElement: ");
+ result.append(openOnElement);
+ result.append(", openOnElementNS: ");
+ result.append(openOnElementNS);
+ result.append(", resourceName: ");
+ result.append(resourceName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //OutputStreamImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,237 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage
+ * @generated
+ */
+public class FileRoutingAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static FileRoutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = FileRoutingPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @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 <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected FileRoutingSwitch<Adapter> modelSwitch =
+ new FileRoutingSwitch<Adapter>() {
+ @Override
+ public Adapter caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseHighWaterMark(HighWaterMark object) {
+ return createHighWaterMarkAdapter();
+ }
+ @Override
+ public Adapter caseOutputStream(OutputStream object) {
+ return createOutputStreamAdapter();
+ }
+ @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 <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @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.fileRouting.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark <em>High Water Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark
+ * @generated
+ */
+ public Adapter createHighWaterMarkAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.fileRouting.OutputStream <em>Output Stream</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream
+ * @generated
+ */
+ public Adapter createOutputStreamAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @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 <em>Abstract Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @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 <em>Abstract Resource Config</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @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 <em>Element Visitor</em>}'.
+ * <!-- begin-user-doc -->
+ * 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.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.ElementVisitor
+ * @generated
+ */
+ public Adapter createElementVisitorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //FileRoutingAdapterFactory
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.util.FileRoutingResourceImpl
+ * @generated
+ */
+public class FileRoutingResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new FileRoutingResourceImpl(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;
+ }
+
+} //FileRoutingResourceFactoryImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.util.FileRoutingResourceFactoryImpl
+ * @generated
+ */
+public class FileRoutingResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public FileRoutingResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //FileRoutingResourceImpl
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,243 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> 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.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage
+ * @generated
+ */
+public class FileRoutingSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static FileRoutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingSwitch() {
+ if (modelPackage == null) {
+ modelPackage = FileRoutingPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case FileRoutingPackage.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FileRoutingPackage.HIGH_WATER_MARK: {
+ HighWaterMark highWaterMark = (HighWaterMark)theEObject;
+ T result = caseHighWaterMark(highWaterMark);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FileRoutingPackage.OUTPUT_STREAM: {
+ OutputStream outputStream = (OutputStream)theEObject;
+ T result = caseOutputStream(outputStream);
+ if (result == null) result = caseElementVisitor(outputStream);
+ if (result == null) result = caseAbstractResourceConfig(outputStream);
+ if (result == null) result = caseAbstractAnyType(outputStream);
+ if (result == null) result = caseAnyType(outputStream);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
+ * @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 '<em>High Water Mark</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>High Water Mark</em>'.
+ * @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 '<em>Output Stream</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Output Stream</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOutputStream(OutputStream object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any Type</em>'.
+ * @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 '<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Abstract Any Type</em>'.
+ * @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 '<em>Abstract Resource Config</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Abstract Resource Config</em>'.
+ * @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 '<em>Element Visitor</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Element Visitor</em>'.
+ * @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 '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //FileRoutingSwitch
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java 2009-04-09 06:08:29 UTC (rev 14619)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.FileRoutingPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ FileRoutingPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the FileRoutingResourceFactoryImpl factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected Map<String, Resource.Factory> getRegistrations() {
+ if (registrations == null) {
+ super.getRegistrations();
+ registrations.put(XML_EXTENSION, new FileRoutingResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new FileRoutingResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //FileRoutingXMLProcessor
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 8 months
JBoss Tools SVN: r14617 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: javabean and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-08 23:18:02 -0400 (Wed, 08 Apr 2009)
New Revision: 14617
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/java2xml/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xsd/
Log:
commit codes of new smooks editor
15 years, 8 months
JBoss Tools SVN: r14616 - in trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks: core and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-08 23:16:38 -0400 (Wed, 08 Apr 2009)
New Revision: 14616
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/core/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/core/SmooksCoreActivator.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/AbstractAnyTypeItemProvider.java
Log:
commit codes of new smooks editor
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/core/SmooksCoreActivator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/core/SmooksCoreActivator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/core/SmooksCoreActivator.java 2009-04-09 03:16:38 UTC (rev 14616)
@@ -0,0 +1,50 @@
+package org.jboss.tools.smooks.core;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class SmooksCoreActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.smooks.core";
+
+ // The shared instance
+ private static SmooksCoreActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public SmooksCoreActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static SmooksCoreActivator getDefault() {
+ return plugin;
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/core/SmooksCoreActivator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/AbstractAnyTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/AbstractAnyTypeItemProvider.java 2009-04-09 03:12:43 UTC (rev 14615)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/AbstractAnyTypeItemProvider.java 2009-04-09 03:16:38 UTC (rev 14616)
@@ -14,7 +14,6 @@
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.ecore.xml.type.XMLTypePackage;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
15 years, 8 months
JBoss Tools SVN: r14614 - in trunk: common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-04-08 21:39:15 -0400 (Wed, 08 Apr 2009)
New Revision: 14614
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java
trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java
Log:
JBIDE-3557 Externalise English strings - extracted bundle names in Messages classes to BUNDLE_NAME constants to keep Eclipse static analysis happy
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java 2009-04-08 18:11:04 UTC (rev 14613)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java 2009-04-09 01:39:15 UTC (rev 14614)
@@ -24,6 +24,7 @@
import org.eclipse.osgi.util.NLS;
public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.ide.eclipse.as.core.Messages"; //$NON-NLS-1$
/* Standard and re-usable */
public static String jboss;
public static String server;
@@ -31,7 +32,6 @@
public static String runModeNotSupported;
static {
- NLS.initializeMessages("org.jboss.ide.eclipse.as.core.Messages",
- Messages.class);
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
}
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java 2009-04-08 18:11:04 UTC (rev 14613)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java 2009-04-09 01:39:15 UTC (rev 14614)
@@ -18,12 +18,11 @@
public class Messages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.common.text.ext.hyperlink.xpl.Messages"; //$NON-NLS-1$
private Messages() { }
static {
- NLS.initializeMessages(
- "org.jboss.tools.common.text.ext.hyperlink.xpl.Messages", //$NON-NLS-1$
- Messages.class);
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
public static String cannotOpenLink;
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java 2009-04-08 18:11:04 UTC (rev 14613)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java 2009-04-09 01:39:15 UTC (rev 14614)
@@ -18,14 +18,12 @@
*/
public class JSFTextExtMessages {
-
+ private static final String BUNDLE_NAME = "org.jboss.tools.jsf.text.ext.JSFTextExtMessages"; //$NON-NLS-1$
private JSFTextExtMessages() { }
static {
- NLS.initializeMessages(
- "org.jboss.tools.jsf.text.ext.JSFTextExtMessages",
- JSFTextExtMessages.class);
+ NLS.initializeMessages(BUNDLE_NAME, JSFTextExtMessages.class);
}
public static String Converter;
Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java 2009-04-08 18:11:04 UTC (rev 14613)
+++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java 2009-04-09 01:39:15 UTC (rev 14614)
@@ -18,14 +18,12 @@
*/
public class StrutsTextExtMessages {
+ private static final String BUNDLE_NAME = "org.jboss.tools.struts.text.ext.StrutsTextExtMessages"; //$NON-NLS-1$
-
private StrutsTextExtMessages() { }
static {
- NLS.initializeMessages(
- "org.jboss.tools.struts.text.ext.StrutsTextExtMessages",
- StrutsTextExtMessages.class);
+ NLS.initializeMessages(BUNDLE_NAME, StrutsTextExtMessages.class);
}
public static String OpenTagLibrary;
15 years, 8 months
JBoss Tools SVN: r14613 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-04-08 14:11:04 -0400 (Wed, 08 Apr 2009)
New Revision: 14613
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1077 Made SeamProjectSet work with EJB/EAR/WAR/Test projects
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java 2009-04-08 18:07:00 UTC (rev 14612)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamProjectsSet.java 2009-04-08 18:11:04 UTC (rev 14613)
@@ -10,6 +10,9 @@
******************************************************************************/
package org.jboss.tools.seam.core;
+import java.util.HashSet;
+import java.util.Set;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
@@ -21,9 +24,6 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
@@ -41,17 +41,47 @@
IProject war;
IProject ejb;
IProject test;
+ IProject[] childProjects = new IProject[0];
IEclipsePreferences prefs;
/**
- * @param project
+ * @param project EAR, EJB or Web Seam project
* @return
*/
public static SeamProjectsSet create(IProject project) {
return new SeamProjectsSet(project);
}
- public SeamProjectsSet(IProject warProject) {
+ /**
+ * @param project EAR, EJB or Web Seam project
+ */
+ public SeamProjectsSet(IProject project) {
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, false);
+ if(seamProject==null) {
+ // maybe the project is EAR? If so it doesn't have seam nature.
+ ISeamProject warProject = SeamUtil.findReferencingSeamWarProjectForProject(project);
+ if(warProject!=null) {
+ initWebProject(warProject.getProject());
+ }
+ } else {
+ IScopeContext projectScope = new ProjectScope(project);
+ IEclipsePreferences preferences = projectScope.getNode(SeamCorePlugin.PLUGIN_ID);
+ if(preferences!=null) {
+ String parentProjectName = preferences.get(ISeamFacetDataModelProperties.SEAM_PARENT_PROJECT, null);
+ if(parentProjectName==null) {
+ // The project is main web seam project.
+ initWebProject(project);
+ } else {
+ IProject warProject = ResourcesPlugin.getWorkspace().getRoot().getProject(parentProjectName);
+ if(warProject!=null) {
+ initWebProject(warProject);
+ }
+ }
+ }
+ }
+ }
+
+ public void initWebProject(IProject warProject) {
IScopeContext projectScope = new ProjectScope(warProject);
prefs = projectScope.getNode(SeamCorePlugin.PLUGIN_ID);
@@ -73,10 +103,35 @@
if(testName!=null && !"".equals(testName)) { //$NON-NLS-1$
test = (IProject)warProject.getWorkspace().getRoot().findMember(testName);
}
+
+ IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ Set<IProject> childProjectSet = new HashSet<IProject>();
+ for (int i = 0; i < projects.length; i++) {
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(projects[i], false);
+ if(seamProject!=null) {
+ projectScope = new ProjectScope(projects[i]);
+ IEclipsePreferences preferences = projectScope.getNode(SeamCorePlugin.PLUGIN_ID);
+ if(preferences!=null) {
+ String parentProjectName = preferences.get(ISeamFacetDataModelProperties.SEAM_PARENT_PROJECT, null);
+ if(parentProjectName!=null && parentProjectName.equals(warProject.getName())) {
+ childProjectSet.add(projects[i]);
+ }
+ }
+ }
+ }
+ childProjects = childProjectSet.toArray(new IProject[childProjectSet.size()]);
}
}
+
/**
+ * @return all child projects for web seam project.
+ */
+ public IProject[] getChildProjects() {
+ return childProjects;
+ }
+
+ /**
* @return default deploy type for Seam project set
*/
public String getDefaultDeployType() {
15 years, 8 months
JBoss Tools SVN: r14612 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test: resources/richFacesTest/WebContent/WEB-INF and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-04-08 14:07:00 -0400 (Wed, 08 Apr 2009)
New Revision: 14612
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/classes/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/classes/demo/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/classes/demo/resources.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templates/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templates/common.xhtml
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templetes/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
Log:
issue JBIDE-1605: VPE: no internationalization for <rich:panelMenuGroup>
https://jira.jboss.org/jira/browse/JBIDE-1605
- JUnit test has been rewritten
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/classes/demo/resources.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/classes/demo/resources.properties (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/classes/demo/resources.properties 2009-04-08 18:07:00 UTC (rev 14612)
@@ -0,0 +1,2 @@
+prompt=Your Name\:
+greeting=Hello
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml 2009-04-08 17:24:26 UTC (rev 14611)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml 2009-04-08 18:07:00 UTC (rev 14612)
@@ -5,81 +5,16 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich">
-<f:loadBundle basename="demo.resources" var="msg" />
<ui:composition template="/templates/common.xhtml">
<ui:define name="pageTitle">Greeting to User</ui:define>
<ui:define name="pageHeader">Greeting Page</ui:define>
<ui:define name="body">
- <!-- Panel Menu component -->
-<h:panelGrid columns="2" columnClasses="cols" width="100%">
- <rich:panelMenu style="width:200px" mode="ajax"
- iconExpandedGroup="disc" iconCollapsedGroup="disc"
- iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
- iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right">
- <!-- Panel Menu Group component -->
- <rich:panelMenuGroup label="#{msg['greeting']}">
- <rich:panelMenuItem label="#{msg.greeting}"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.1" />
- </rich:panelMenuItem>
- <!-- Panel Menu Item component -->
- <rich:panelMenuItem label="Item 1.2"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.2" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 1.3"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.3" />
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 2">
- <rich:panelMenuItem label="Item 2.1"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.1" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.2"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.2" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.3"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.3" />
- </rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 2.4">
- <rich:panelMenuItem label="Item 2.4.1"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.4.1" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.4.2"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.4.2" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.4.3"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.4.3" />
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- <rich:panelMenuItem label="Item 2.5"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.5" />
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 3">
- <rich:panelMenuItem label="Item 3.1"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 3.1" />
- </rich:panelMenuItem>c
- <rich:panelMenuItem label="Item 3.2"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 3.2" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 3.3"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 3.3" />
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- </rich:panelMenu>
-</h:panelGrid>
+ <h:panelGrid columns="2" columnClasses="cols" width="100%">
+ <f:loadBundle basename="demo.resources" var="i18n" />
+ <rich:panelMenu>
+ <rich:panelMenuGroup id="panelMenuGroup1" label="#{i18n['greeting']}"/>
+ </rich:panelMenu>
+ </h:panelGrid>
</ui:define>
</ui:composition>
-</html>
\ No newline at end of file
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup/jbide1605.xhtml.xml 2009-04-08 18:07:00 UTC (rev 14612)
@@ -0,0 +1,22 @@
+<tests>
+ <test id="panelMenuGroup1">
+ <DIV CLASS="dr-pmenu-top-group-div rich-pmenu-top-group-div">
+ <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
+ CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="">
+ <TR>
+ <TD VPE-USER-TOGGLE-ID="1"
+ CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
+ <IMG SRC="/.*resources/panelMenuGroup/spacer.gif/" />
+ </TD>
+ <TD STYLE="width: 100%;" CLASS="rich-pmenu-top-group-self-label">
+ Hello
+ </TD>
+ <TD CLASS="rich-pmenu-top-group-self-icon">
+ <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
+ SRC="/.*resources/panelMenuGroup/spacer.gif/" />
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </test>
+</tests>
Copied: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templates (from rev 14513, trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templetes)
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templates/common.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templates/common.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/templates/common.xhtml 2009-04-08 18:07:00 UTC (rev 14612)
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <head>
+ <title><ui:insert name="pageTitle">Page Title</ui:insert></title>
+ <style type="text/css">
+ body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 14px;
+ }
+ .header {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 18px;
+ }
+ .bottom {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 9px;
+ text-align: center;
+ vertical-align: middle;
+ color: #8E969D;
+ }
+ </style>
+ </head>
+
+<body bgcolor="#ffffff">
+<table style="border:1px solid #CAD6E0" align="center" cellpadding="0" cellspacing="0" border="0" width="400">
+<tbody>
+
+ <tr>
+ <td class="header" height="42" align="center" valign="middle" width="100%" bgcolor="#E4EBEB">
+ <ui:insert name="pageHeader">Page Header</ui:insert>
+ </td>
+ </tr>
+ <tr>
+ <td height="1" width="100%" bgcolor="#CAD6E0"></td>
+ </tr>
+
+ <tr>
+ <td width="100%" colspan="2">
+ <table width="100%" style="height:150px" align="left" cellpadding="0" cellspacing="0" border="0">
+ <tbody>
+ <tr>
+ <td align="center" width="100%" valign="middle">
+
+ <ui:insert name="body">Page Body</ui:insert>
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2" valign="bottom" height="1" width="100%" bgcolor="#CAD6E0"></td>
+ </tr>
+</tbody>
+</table>
+</body>
+
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2009-04-08 17:24:26 UTC (rev 14611)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2009-04-08 18:07:00 UTC (rev 14612)
@@ -17,7 +17,6 @@
import junit.framework.TestSuite;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1579Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1605Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1606Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1613Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1713Test;
@@ -62,7 +61,6 @@
suite.addTestSuite(RichFacesFileUploadTemplateTestCase.class);
suite.addTestSuite(RichFacesColumnsTemplateTestCase.class);
suite.addTestSuite(RichFacesPickListTemplateTestCase.class);
- suite.addTestSuite(JBIDE1605Test.class);
suite.addTestSuite(JBIDE1606Test.class);
suite.addTestSuite(RichFacesComponentContentTest.class);
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2009-04-08 17:24:26 UTC (rev 14611)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2009-04-08 18:07:00 UTC (rev 14612)
@@ -25,10 +25,10 @@
setCheckWarning(false);
}
- /**
- *
- * @throws Throwable
- */
+ public void testJbide1605() throws Throwable {
+ performContentTest("components/panelMenuGroup/jbide1605.xhtml"); //$NON-NLS-1$
+ }
+
public void testAjaxValidator() throws Throwable {
performInvisibleTagTest(
"components/ajaxValidator.xhtml", "ajaxValidator");//$NON-NLS-1$ //$NON-NLS-2$
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java 2009-04-08 17:24:26 UTC (rev 14611)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java 2009-04-08 18:07:00 UTC (rev 14612)
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 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.jsf.vpe.richfaces.test.jbide;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
-import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
-import org.mozilla.interfaces.nsIDOMElement;
-import org.mozilla.interfaces.nsIDOMNode;
-
-/**
- * <p>
- * Test case for testing
- * <p>
- * <a href="https://jira.jboss.org/jira/browse/JBIDE-1605">
- * https://jira.jboss.org/jira/browse/JBIDE-1605
- * </a> issue.
- *
- * @author Evgenij Stherbin
- */
-public class JBIDE1605Test extends VpeTest {
-
- /** The Constant COMPONENTS_INPLACE_SELECT_INPLACE_SELECT_XHTML. */
- private static final String PAGE = "components/panelMenuGroup/jbide1605.xhtml"; //$NON-NLS-1$
-
- /** The Constant COUNT_OF_DIVS. */
- private static final int COUNT_OF_DIVS = 13;
-
- /**
- * The Constructor.
- *
- * @param name the name
- */
- public JBIDE1605Test(String name) {
- super(name);
- }
-
- /**
- * Ftest simple JBID e1605.
- *
- * @throws Throwable the throwable
- */
- public void testSimpleJBIDE1605() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(PAGE, RichFacesAllTests.IMPORT_PROJECT_NAME));
- }
-
- /**
- * Test JBID e1605.
- *
- * @throws Throwable the throwable
- */
- public void testJBIDE1605() throws Throwable {
- final nsIDOMElement rst = TestUtil.performTestForRichFacesComponent((IFile) TestUtil.getComponentPath(PAGE,
- RichFacesAllTests.IMPORT_PROJECT_NAME));
-
- List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
-
-// DOMTreeDumper dumper = new DOMTreeDumper();
-// dumper.dumpToStream(System.err, rst);
- TestUtil.findAllElementsByName(rst, elements, HTML.TAG_DIV);
- assertEquals("Size should be equals",COUNT_OF_DIVS,elements.size());
-
- }
-
-
-
-}
15 years, 8 months