You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2008/05/23 01:26:18 UTC
svn commit: r659307 [2/24] - in /ode/trunk:
axis2-war/src/main/webapp/WEB-INF/ axis2-war/src/main/webapp/WEB-INF/classes/
axis2-war/src/test/resources/XSDReferences/
axis2-war/src/test/resources/XSDReferences/BPMN/
axis2-war/src/test/resources/XSDRefer...
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ExtensionActivtityGenerator.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ExtensionActivtityGenerator.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ExtensionActivtityGenerator.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ExtensionActivtityGenerator.java Thu May 22 16:25:57 2008
@@ -1,80 +1,80 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationException;
-import org.apache.ode.bpel.compiler.api.ExtensionValidator;
-import org.apache.ode.bpel.compiler.bom.Activity;
-import org.apache.ode.bpel.compiler.bom.CompositeActivity;
-import org.apache.ode.bpel.compiler.bom.ExtensionActivity;
-import org.apache.ode.bpel.o.OActivity;
-import org.apache.ode.bpel.o.OExtensionActivity;
-import org.apache.ode.utils.DOMUtils;
-import org.apache.ode.utils.SerializableElement;
-import org.apache.ode.utils.msg.MessageBundle;
-import org.w3c.dom.Element;
-
-/**
- * Generates code for <code><empty></code> activities.
- * @author Tammo van Lessen
- */
-class ExtensionActivtityGenerator extends DefaultActivityGenerator {
- private static final ExtensionActivityGeneratorMessages __cmsgs =
- MessageBundle.getMessages(ExtensionActivityGeneratorMessages.class);
-
- public void compile(OActivity output, Activity srcx) {
- ExtensionActivity src = (ExtensionActivity) srcx;
- OExtensionActivity oactivity = (OExtensionActivity) output;
- Element child = src.getFirstExtensibilityElement();
- try {
- if (child == null) {
- throw new CompilationException(__cmsgs.errMissingExtensionActivityElement());
- }
- if (!_context.isExtensionDeclared(child.getNamespaceURI())) {
- throw new CompilationException(__cmsgs.errUndeclaredExtensionActivity().setSource(src));
- }
- ExtensionValidator validator = _context.getExtensionValidator(DOMUtils.getElementQName(child));
- if (validator != null) {
- validator.validate(_context, src);
- }
- oactivity.nestedElement = new SerializableElement(child);
- compileChildren(oactivity, (ExtensionActivity) src);
-
- } catch (CompilationException e) {
- _context.recoveredFromError(src, e);
- }
- }
-
- public OActivity newInstance(Activity src) {
- return new OExtensionActivity(_context.getOProcess(), _context.getCurrent());
- }
-
- protected void compileChildren(OExtensionActivity dest, CompositeActivity src) {
- for (Activity child : src.getActivities()) {
- try {
- OActivity compiledChild = _context.compile(child);
- dest.children.add(compiledChild);
- }
- catch (CompilationException ce) {
- _context.recoveredFromError(child, ce);
- }
- }
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationException;
+import org.apache.ode.bpel.compiler.api.ExtensionValidator;
+import org.apache.ode.bpel.compiler.bom.Activity;
+import org.apache.ode.bpel.compiler.bom.CompositeActivity;
+import org.apache.ode.bpel.compiler.bom.ExtensionActivity;
+import org.apache.ode.bpel.o.OActivity;
+import org.apache.ode.bpel.o.OExtensionActivity;
+import org.apache.ode.utils.DOMUtils;
+import org.apache.ode.utils.SerializableElement;
+import org.apache.ode.utils.msg.MessageBundle;
+import org.w3c.dom.Element;
+
+/**
+ * Generates code for <code><empty></code> activities.
+ * @author Tammo van Lessen
+ */
+class ExtensionActivtityGenerator extends DefaultActivityGenerator {
+ private static final ExtensionActivityGeneratorMessages __cmsgs =
+ MessageBundle.getMessages(ExtensionActivityGeneratorMessages.class);
+
+ public void compile(OActivity output, Activity srcx) {
+ ExtensionActivity src = (ExtensionActivity) srcx;
+ OExtensionActivity oactivity = (OExtensionActivity) output;
+ Element child = src.getFirstExtensibilityElement();
+ try {
+ if (child == null) {
+ throw new CompilationException(__cmsgs.errMissingExtensionActivityElement());
+ }
+ if (!_context.isExtensionDeclared(child.getNamespaceURI())) {
+ throw new CompilationException(__cmsgs.errUndeclaredExtensionActivity().setSource(src));
+ }
+ ExtensionValidator validator = _context.getExtensionValidator(DOMUtils.getElementQName(child));
+ if (validator != null) {
+ validator.validate(_context, src);
+ }
+ oactivity.nestedElement = new SerializableElement(child);
+ compileChildren(oactivity, (ExtensionActivity) src);
+
+ } catch (CompilationException e) {
+ _context.recoveredFromError(src, e);
+ }
+ }
+
+ public OActivity newInstance(Activity src) {
+ return new OExtensionActivity(_context.getOProcess(), _context.getCurrent());
+ }
+
+ protected void compileChildren(OExtensionActivity dest, CompositeActivity src) {
+ for (Activity child : src.getActivities()) {
+ try {
+ OActivity compiledChild = _context.compile(child);
+ dest.children.add(compiledChild);
+ }
+ catch (CompilationException ce) {
+ _context.recoveredFromError(child, ce);
+ }
+ }
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/FlowGeneratorMessages.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/FlowGeneratorMessages.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/FlowGeneratorMessages.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/FlowGeneratorMessages.java Thu May 22 16:25:57 2008
@@ -1,42 +1,42 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
-
-public class FlowGeneratorMessages extends CompilationMessageBundle {
-
- /** The link "{0}" does not have a source. */
- public CompilationMessage errLinkMissingSourceActivity(String linkName) {
- return this.formatCompilationMessage("The link \"{0}\" does not have a source.", linkName);
- }
-
- /** The link "{0}" does not have a target. */
- public CompilationMessage errLinkMissingTargetActivity(String linkName) {
- return this.formatCompilationMessage("The link \"{0}\" does not have a target.", linkName);
- }
-
- /** Duplicate declaration of link "{0}". */
- public CompilationMessage errDuplicateLinkDecl(String linkName) {
- return this.formatCompilationMessage("Duplicate declaration of link \"{0}\".", linkName);
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
+
+public class FlowGeneratorMessages extends CompilationMessageBundle {
+
+ /** The link "{0}" does not have a source. */
+ public CompilationMessage errLinkMissingSourceActivity(String linkName) {
+ return this.formatCompilationMessage("The link \"{0}\" does not have a source.", linkName);
+ }
+
+ /** The link "{0}" does not have a target. */
+ public CompilationMessage errLinkMissingTargetActivity(String linkName) {
+ return this.formatCompilationMessage("The link \"{0}\" does not have a target.", linkName);
+ }
+
+ /** Duplicate declaration of link "{0}". */
+ public CompilationMessage errDuplicateLinkDecl(String linkName) {
+ return this.formatCompilationMessage("Duplicate declaration of link \"{0}\".", linkName);
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGeneratorMessages.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGeneratorMessages.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGeneratorMessages.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGeneratorMessages.java Thu May 22 16:25:57 2008
@@ -1,56 +1,56 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import javax.xml.namespace.QName;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
-
-public class InvokeGeneratorMessages extends CompilationMessageBundle {
-
- /**
- * Invoke doesn't define an output variable even though the operation {0}
- * declares an output message.
- */
- public CompilationMessage errInvokeNoOutputMessageForOutputOp(String operation) {
- return this.formatCompilationMessage(
- "Invoke doesn't define an output variable even though the operation \"{0}\" "
- + "declares an output message.", operation);
- }
-
- /**
- * Invoke doesn't define an input variable even though the operation {0}
- * declares an input message.
- */
- public CompilationMessage errInvokeNoInputMessageForInputOp(String operation) {
- return this.formatCompilationMessage(
- "Invoke doesn't define an output variable even though the operation \"{0}\" "
- + "declares an output message.", operation);
- }
-
- public CompilationMessage errPortTypeMismatch(QName iptype, QName pltype) {
- return this.formatCompilationMessage(
- "The portType \"{0}\" specified on the <invoke> does not match \"{1}\", the port type declared in the" +
- "partner link.", iptype, pltype);
-
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import javax.xml.namespace.QName;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
+
+public class InvokeGeneratorMessages extends CompilationMessageBundle {
+
+ /**
+ * Invoke doesn't define an output variable even though the operation {0}
+ * declares an output message.
+ */
+ public CompilationMessage errInvokeNoOutputMessageForOutputOp(String operation) {
+ return this.formatCompilationMessage(
+ "Invoke doesn't define an output variable even though the operation \"{0}\" "
+ + "declares an output message.", operation);
+ }
+
+ /**
+ * Invoke doesn't define an input variable even though the operation {0}
+ * declares an input message.
+ */
+ public CompilationMessage errInvokeNoInputMessageForInputOp(String operation) {
+ return this.formatCompilationMessage(
+ "Invoke doesn't define an output variable even though the operation \"{0}\" "
+ + "declares an output message.", operation);
+ }
+
+ public CompilationMessage errPortTypeMismatch(QName iptype, QName pltype) {
+ return this.formatCompilationMessage(
+ "The portType \"{0}\" specified on the <invoke> does not match \"{1}\", the port type declared in the" +
+ "partner link.", iptype, pltype);
+
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/PickGeneratorMessages.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/PickGeneratorMessages.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/PickGeneratorMessages.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/PickGeneratorMessages.java Thu May 22 16:25:57 2008
@@ -1,48 +1,48 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
-
-public class PickGeneratorMessages extends CompilationMessageBundle {
-
- /**
- * Attempt to use multiple non-initiate correlation sets; second set was
- * "{0}".
- */
- public CompilationMessage errSecondNonInitiateCorrelationSet(String setName) {
- return this.formatCompilationMessage("Attempt to use multiple non-initiate correlation sets;"
- + " second set was \"{0}\".", setName);
- }
-
- public CompilationMessage errForOrUntilMustBeGiven() {
- return this.formatCompilationMessage("An <onAlarm> block must include a <for> or <until> block.");
- }
-
- public CompilationMessage errOnAlarmWithCreateInstance() {
- return this.formatCompilationMessage("An <onAlarm> may not be used when createInstance=yes.");
- }
-
- public CompilationMessage errRendezvousNotSupported() {
- return this.formatCompilationMessage("Rendezvous correlation mode not supported in this context.");
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
+
+public class PickGeneratorMessages extends CompilationMessageBundle {
+
+ /**
+ * Attempt to use multiple non-initiate correlation sets; second set was
+ * "{0}".
+ */
+ public CompilationMessage errSecondNonInitiateCorrelationSet(String setName) {
+ return this.formatCompilationMessage("Attempt to use multiple non-initiate correlation sets;"
+ + " second set was \"{0}\".", setName);
+ }
+
+ public CompilationMessage errForOrUntilMustBeGiven() {
+ return this.formatCompilationMessage("An <onAlarm> block must include a <for> or <until> block.");
+ }
+
+ public CompilationMessage errOnAlarmWithCreateInstance() {
+ return this.formatCompilationMessage("An <onAlarm> may not be used when createInstance=yes.");
+ }
+
+ public CompilationMessage errRendezvousNotSupported() {
+ return this.formatCompilationMessage("Rendezvous correlation mode not supported in this context.");
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ReplyGeneratorMessages.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ReplyGeneratorMessages.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ReplyGeneratorMessages.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ReplyGeneratorMessages.java Thu May 22 16:25:57 2008
@@ -1,41 +1,41 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
-
-public class ReplyGeneratorMessages extends CompilationMessageBundle {
-
- /** The <reply> must specify a reply message. */
- public CompilationMessage errOutputVariableMustBeSpecified() {
- return this.formatCompilationMessage("The <reply> must specify a reply message.");
- }
-
- /**
- * The <reply> activity has an undeclared fault "{0}" for operation
- * "{1}".
- */
- public CompilationMessage errUndeclaredFault(String faultName, String operationName) {
- return this.formatCompilationMessage("The <reply> activity has an undeclared fault"
- + "\"{0}\" for operation \"{1}\".", faultName, operationName);
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
+
+public class ReplyGeneratorMessages extends CompilationMessageBundle {
+
+ /** The <reply> must specify a reply message. */
+ public CompilationMessage errOutputVariableMustBeSpecified() {
+ return this.formatCompilationMessage("The <reply> must specify a reply message.");
+ }
+
+ /**
+ * The <reply> activity has an undeclared fault "{0}" for operation
+ * "{1}".
+ */
+ public CompilationMessage errUndeclaredFault(String faultName, String operationName) {
+ return this.formatCompilationMessage("The <reply> activity has an undeclared fault"
+ + "\"{0}\" for operation \"{1}\".", faultName, operationName);
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/WaitGeneratorMessages.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/WaitGeneratorMessages.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/WaitGeneratorMessages.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/WaitGeneratorMessages.java Thu May 22 16:25:57 2008
@@ -1,32 +1,32 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
-
-public class WaitGeneratorMessages extends CompilationMessageBundle {
-
- /** Must specify exactly one "for" or "until" expression. */
- public CompilationMessage errWaitMustDefineForOrUntilDuration() {
- return this.formatCompilationMessage("Must specify exactly one \"for\" or \"until\" expression.");
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
+
+public class WaitGeneratorMessages extends CompilationMessageBundle {
+
+ /** Must specify exactly one "for" or "until" expression. */
+ public CompilationMessage errWaitMustDefineForOrUntilDuration() {
+ return this.formatCompilationMessage("Must specify exactly one \"for\" or \"until\" expression.");
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/CompilationMessageBundle.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/CompilationMessageBundle.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/CompilationMessageBundle.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/CompilationMessageBundle.java Thu May 22 16:25:57 2008
@@ -1,71 +1,71 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler.api;
-
-import org.apache.ode.utils.msg.MessageBundle;
-
-public abstract class CompilationMessageBundle extends MessageBundle {
-
- // TODO turn CompilationMessage.CODE into a proper Java5 enum
- private static String[] PREFIXES = {"inf", "warn", "err"};
- private static short[] SEVERITIES = {CompilationMessage.INFO, CompilationMessage.WARN,
- CompilationMessage.ERROR};
-
- protected CompilationMessage formatCompilationMessage(String message, Object... args) {
- String methodName = "errUnknown";
- String methodKey = null;
- short severity = 0;
-
- // format the regular message text
- String msg = this.format(message, args);
-
- // I will *so* burn in hell for this
- StackTraceElement[] stack = new Throwable().getStackTrace();
- if (stack.length > 1) {
- methodName = stack[1].getMethodName();
- }
- else {
- // bummer: no stack trace - create an unknown error as fallback.
- }
-
- // find method prefix
- for (int i = 0; i < PREFIXES.length; i++) {
- if (methodName.startsWith(PREFIXES[i])) {
- methodKey = methodName.substring(PREFIXES[i].length());
- severity = SEVERITIES[i];
- break;
- }
- }
-
- // found a prefixed method?
- if (methodKey == null) {
- throw new UnsupportedOperationException("unexpected caller method: " + methodName);
- }
-
- CompilationMessage cmsg = new CompilationMessage();
- cmsg.severity = severity;
- cmsg.phase = 0;
- cmsg.messageText = msg;
- cmsg.code = methodKey;
-
- return cmsg;
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler.api;
+
+import org.apache.ode.utils.msg.MessageBundle;
+
+public abstract class CompilationMessageBundle extends MessageBundle {
+
+ // TODO turn CompilationMessage.CODE into a proper Java5 enum
+ private static String[] PREFIXES = {"inf", "warn", "err"};
+ private static short[] SEVERITIES = {CompilationMessage.INFO, CompilationMessage.WARN,
+ CompilationMessage.ERROR};
+
+ protected CompilationMessage formatCompilationMessage(String message, Object... args) {
+ String methodName = "errUnknown";
+ String methodKey = null;
+ short severity = 0;
+
+ // format the regular message text
+ String msg = this.format(message, args);
+
+ // I will *so* burn in hell for this
+ StackTraceElement[] stack = new Throwable().getStackTrace();
+ if (stack.length > 1) {
+ methodName = stack[1].getMethodName();
+ }
+ else {
+ // bummer: no stack trace - create an unknown error as fallback.
+ }
+
+ // find method prefix
+ for (int i = 0; i < PREFIXES.length; i++) {
+ if (methodName.startsWith(PREFIXES[i])) {
+ methodKey = methodName.substring(PREFIXES[i].length());
+ severity = SEVERITIES[i];
+ break;
+ }
+ }
+
+ // found a prefixed method?
+ if (methodKey == null) {
+ throw new UnsupportedOperationException("unexpected caller method: " + methodName);
+ }
+
+ CompilationMessage cmsg = new CompilationMessage();
+ cmsg.severity = severity;
+ cmsg.phase = 0;
+ cmsg.messageText = msg;
+ cmsg.code = methodKey;
+
+ return cmsg;
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/ExtensionValidator.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/ExtensionValidator.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/ExtensionValidator.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/api/ExtensionValidator.java Thu May 22 16:25:57 2008
@@ -1,33 +1,33 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler.api;
-
-import org.apache.ode.bpel.compiler.bom.ExtensibleElement;
-
-/**
- * Interface that allows Ode extensions to validate an extension element's
- * content during compilation.
- *
- * @author Tammo van Lessen (University of Stuttgart)
- */
-public interface ExtensionValidator {
-
- void validate(CompilerContext context, ExtensibleElement element) throws CompilationException;
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler.api;
+
+import org.apache.ode.bpel.compiler.bom.ExtensibleElement;
+
+/**
+ * Interface that allows Ode extensions to validate an extension element's
+ * content during compilation.
+ *
+ * @author Tammo van Lessen (University of Stuttgart)
+ */
+public interface ExtensionValidator {
+
+ void validate(CompilerContext context, ExtensibleElement element) throws CompilationException;
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensibleElement.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensibleElement.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensibleElement.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensibleElement.java Thu May 22 16:25:57 2008
@@ -1,32 +1,32 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler.bom;
-
-import org.w3c.dom.Element;
-
-/**
- * Common interface for ExtensionActivity and AssignExtensionOperation.
- *
- * @author Tammo van Lessen (University of Stuttgart)
- */
-public interface ExtensibleElement {
-
- Element getNestedElement();
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler.bom;
+
+import org.w3c.dom.Element;
+
+/**
+ * Common interface for ExtensionActivity and AssignExtensionOperation.
+ *
+ * @author Tammo van Lessen (University of Stuttgart)
+ */
+public interface ExtensibleElement {
+
+ Element getNestedElement();
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extension.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extension.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extension.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extension.java Thu May 22 16:25:57 2008
@@ -1,41 +1,41 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler.bom;
-
-import org.w3c.dom.Element;
-
-/**
- * BOM representation of the BPEL <code><extension></code> element.
- *
- * @author Tammo van Lessen (University of Stuttgart)
- */
-public class Extension extends BpelObject {
-
- public Extension(Element el) {
- super(el);
- }
-
- public boolean isMustUnderstand() {
- return getAttribute("mustUnderstand", "no").equals("yes");
- }
-
- public String getNamespaceURI() {
- return getAttribute("namespace", null);
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler.bom;
+
+import org.w3c.dom.Element;
+
+/**
+ * BOM representation of the BPEL <code><extension></code> element.
+ *
+ * @author Tammo van Lessen (University of Stuttgart)
+ */
+public class Extension extends BpelObject {
+
+ public Extension(Element el) {
+ super(el);
+ }
+
+ public boolean isMustUnderstand() {
+ return getAttribute("mustUnderstand", "no").equals("yes");
+ }
+
+ public String getNamespaceURI() {
+ return getAttribute("namespace", null);
+ }
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionActivity.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionActivity.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionActivity.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionActivity.java Thu May 22 16:25:57 2008
@@ -1,101 +1,101 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler.bom;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.w3c.dom.Element;
-
-/**
- * BOM representation of the BPEL <code><extensionActivity></code> activity. The
- * <code><extensionActivity></code> activity contains a nested DOM element that
- * represents the actual extension element. According to the BPEL 2.0 PR1 specification,
- * the standards elements and standards attributes are not located in the extensionActivity
- * element but in the nested element. Therefore the convenient access methods for standards
- * attributes/elements are overridden to refer to the nested elements.
- *
- * @author Tammo van Lessen (University of Stuttgart)
- */
-public class ExtensionActivity extends CompositeActivity implements ExtensibleElement {
- private Activity _childActivity;
-
- public ExtensionActivity(Element el) {
- super(el);
- _childActivity = null;
- Element child = getFirstExtensibilityElement();
- if (child != null) {
- _childActivity = new Activity(getFirstExtensibilityElement());
- }
- }
-
- @Override
- public Expression getJoinCondition() {
- if (_childActivity == null) {
- return null;
- }
- return _childActivity.getJoinCondition();
- }
-
- @Override
- public List<LinkSource> getLinkSources() {
- if (_childActivity == null) {
- return Collections.emptyList();
- }
- return _childActivity.getLinkSources();
- }
-
- @Override
- public List<LinkTarget> getLinkTargets() {
- if (_childActivity == null) {
- return Collections.emptyList();
- }
- return _childActivity.getLinkTargets();
- }
-
- @Override
- public String getName() {
- if (_childActivity == null) {
- return null;
- }
- return _childActivity.getName();
- }
-
- @Override
- public SuppressJoinFailure getSuppressJoinFailure() {
- if (_childActivity == null) {
- return SuppressJoinFailure.NOTSET;
- }
- return _childActivity.getSuppressJoinFailure();
- }
-
- @Override
- public List<Activity> getActivities() {
- if (_childActivity == null) {
- return Collections.emptyList();
- }
-
- return _childActivity.getChildren(Activity.class);
- }
-
- public Element getNestedElement() {
- return getFirstExtensibilityElement();
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler.bom;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.w3c.dom.Element;
+
+/**
+ * BOM representation of the BPEL <code><extensionActivity></code> activity. The
+ * <code><extensionActivity></code> activity contains a nested DOM element that
+ * represents the actual extension element. According to the BPEL 2.0 PR1 specification,
+ * the standards elements and standards attributes are not located in the extensionActivity
+ * element but in the nested element. Therefore the convenient access methods for standards
+ * attributes/elements are overridden to refer to the nested elements.
+ *
+ * @author Tammo van Lessen (University of Stuttgart)
+ */
+public class ExtensionActivity extends CompositeActivity implements ExtensibleElement {
+ private Activity _childActivity;
+
+ public ExtensionActivity(Element el) {
+ super(el);
+ _childActivity = null;
+ Element child = getFirstExtensibilityElement();
+ if (child != null) {
+ _childActivity = new Activity(getFirstExtensibilityElement());
+ }
+ }
+
+ @Override
+ public Expression getJoinCondition() {
+ if (_childActivity == null) {
+ return null;
+ }
+ return _childActivity.getJoinCondition();
+ }
+
+ @Override
+ public List<LinkSource> getLinkSources() {
+ if (_childActivity == null) {
+ return Collections.emptyList();
+ }
+ return _childActivity.getLinkSources();
+ }
+
+ @Override
+ public List<LinkTarget> getLinkTargets() {
+ if (_childActivity == null) {
+ return Collections.emptyList();
+ }
+ return _childActivity.getLinkTargets();
+ }
+
+ @Override
+ public String getName() {
+ if (_childActivity == null) {
+ return null;
+ }
+ return _childActivity.getName();
+ }
+
+ @Override
+ public SuppressJoinFailure getSuppressJoinFailure() {
+ if (_childActivity == null) {
+ return SuppressJoinFailure.NOTSET;
+ }
+ return _childActivity.getSuppressJoinFailure();
+ }
+
+ @Override
+ public List<Activity> getActivities() {
+ if (_childActivity == null) {
+ return Collections.emptyList();
+ }
+
+ return _childActivity.getChildren(Activity.class);
+ }
+
+ public Element getNestedElement() {
+ return getFirstExtensibilityElement();
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionAssignOperation.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionAssignOperation.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionAssignOperation.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/ExtensionAssignOperation.java Thu May 22 16:25:57 2008
@@ -1,56 +1,56 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler.bom;
-
-import org.apache.ode.bpel.compiler.bom.AssignActivity.AssignOperation;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * BOM representation of the BPEL <code><extensionAssignOperation></code>.
- *
- * @author Tammo van Lessen (University of Stuttgart)
- */
-public class ExtensionAssignOperation extends BpelObject implements AssignOperation,
- ExtensibleElement {
- private Element _childElement;
-
- public ExtensionAssignOperation(Element el) {
- super(el);
- }
-
- public Element getNestedElement() {
- //XXX
- //return getFirstExtensibilityElement();
- if (_childElement == null) {
- NodeList nl = getElement().getChildNodes();
- for (int i = 0; i < nl.getLength(); ++i) {
- Node node = nl.item(i);
- if (node.getNodeType() == Node.ELEMENT_NODE &&
- !Bpel20QNames.NS_WSBPEL2_0.equals(node.getNamespaceURI())) {
- _childElement = (Element)node;
- break;
- }
- }
- }
- return _childElement;
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler.bom;
+
+import org.apache.ode.bpel.compiler.bom.AssignActivity.AssignOperation;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * BOM representation of the BPEL <code><extensionAssignOperation></code>.
+ *
+ * @author Tammo van Lessen (University of Stuttgart)
+ */
+public class ExtensionAssignOperation extends BpelObject implements AssignOperation,
+ ExtensibleElement {
+ private Element _childElement;
+
+ public ExtensionAssignOperation(Element el) {
+ super(el);
+ }
+
+ public Element getNestedElement() {
+ //XXX
+ //return getFirstExtensibilityElement();
+ if (_childElement == null) {
+ NodeList nl = getElement().getChildNodes();
+ for (int i = 0; i < nl.getLength(); ++i) {
+ Node node = nl.item(i);
+ if (node.getNodeType() == Node.ELEMENT_NODE &&
+ !Bpel20QNames.NS_WSBPEL2_0.equals(node.getNamespaceURI())) {
+ _childElement = (Element)node;
+ break;
+ }
+ }
+ }
+ return _childElement;
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extensions.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extensions.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extensions.java (original)
+++ ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/Extensions.java Thu May 22 16:25:57 2008
@@ -1,34 +1,34 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.ode.bpel.compiler.bom;
-
-import org.w3c.dom.Element;
-
-/**
- * BOM representation of the BPEL <code><extension></code> element.
- *
- * @author Tammo van Lessen (University of Stuttgart)
- */
-public class Extensions extends BpelObject {
-
- public Extensions(Element el) {
- super(el);
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.compiler.bom;
+
+import org.w3c.dom.Element;
+
+/**
+ * BOM representation of the BPEL <code><extension></code> element.
+ *
+ * @author Tammo van Lessen (University of Stuttgart)
+ */
+public class Extensions extends BpelObject {
+
+ public Extensions(Element el) {
+ super(el);
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationMessageTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationMessageTest.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationMessageTest.java (original)
+++ ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationMessageTest.java Thu May 22 16:25:57 2008
@@ -1,117 +1,117 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.utils.msg.MessageBundle;
-
-import java.net.URI;
-import java.util.Locale;
-
-import junit.framework.TestCase;
-
-public class CompilationMessageTest extends TestCase {
-
- private static String NO_PARAMETER = "No parameter!";
- private static String NO_PARAMETER_CODE = "NoParameter";
- private static String NO_PARAMETER_DE = "Kein Parameter!";
- private static String WRONG_PARAMETER = "Wrong parameter :-)";
- private static String WRONG_PARAMETER_CODE = "WrongParameter";
-
- private CompilationTestMessages _bundle;
- private SourceLocationImpl sloc;
- private Locale oldLocale;
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- oldLocale = Locale.getDefault();
- Locale.setDefault(Locale.ENGLISH);
- _bundle = MessageBundle.getMessages(CompilationTestMessages.class);
- sloc = new SourceLocationImpl(new URI("urn:foo"));
- }
-
- @Override
- protected void tearDown() throws Exception {
- _bundle = null;
- Locale.setDefault(oldLocale);
- super.tearDown();
- }
-
- public void testNoParameter() {
- CompilationMessage msg = _bundle.infNoParameter().setSource(sloc);
- assertEquals(NO_PARAMETER, msg.messageText);
- assertEquals(CompilationMessage.INFO, msg.severity);
- assertEquals(NO_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
-
- msg = _bundle.warnNoParameter().setSource(sloc);
- assertEquals("No parameter!", msg.messageText);
- assertEquals(CompilationMessage.WARN, msg.severity);
- assertEquals(NO_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
-
- msg = _bundle.errNoParameter().setSource(sloc);
- assertEquals(NO_PARAMETER, msg.messageText);
- assertEquals(CompilationMessage.ERROR, msg.severity);
- assertEquals(NO_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
- }
-
- public void testNoParameterLocalized() {
- CompilationTestMessages bundle = MessageBundle.getMessages(
- CompilationTestMessages.class, Locale.GERMAN);
- CompilationMessage msg = bundle.infNoParameter().setSource(sloc);
- assertEquals(NO_PARAMETER_DE, msg.messageText);
- assertEquals(CompilationMessage.INFO, msg.severity);
- assertEquals(NO_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
- }
-
- public void testWrongParameter() {
- CompilationMessage msg = _bundle.infWrongParameter(":-)").setSource(sloc);
- assertEquals(WRONG_PARAMETER, msg.messageText);
- assertEquals(CompilationMessage.INFO, msg.severity);
- assertEquals(WRONG_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
-
- msg = _bundle.warnWrongParameter(":-)").setSource(sloc);
- assertEquals(WRONG_PARAMETER, msg.messageText);
- assertEquals(CompilationMessage.WARN, msg.severity);
- assertEquals(WRONG_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
-
- msg = _bundle.errWrongParameter(":-)").setSource(sloc);
- assertEquals(WRONG_PARAMETER, msg.messageText);
- assertEquals(CompilationMessage.ERROR, msg.severity);
- assertEquals(WRONG_PARAMETER_CODE, msg.code);
- assertSame(sloc, msg.source);
- }
-
- public void testWrongMethod() {
- try {
- _bundle.msgWrongMethod().setSource(sloc);
- fail("should have failed on msgWrongMethod()");
- }
- catch (UnsupportedOperationException uop) {
- // OK
- }
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.utils.msg.MessageBundle;
+
+import java.net.URI;
+import java.util.Locale;
+
+import junit.framework.TestCase;
+
+public class CompilationMessageTest extends TestCase {
+
+ private static String NO_PARAMETER = "No parameter!";
+ private static String NO_PARAMETER_CODE = "NoParameter";
+ private static String NO_PARAMETER_DE = "Kein Parameter!";
+ private static String WRONG_PARAMETER = "Wrong parameter :-)";
+ private static String WRONG_PARAMETER_CODE = "WrongParameter";
+
+ private CompilationTestMessages _bundle;
+ private SourceLocationImpl sloc;
+ private Locale oldLocale;
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ oldLocale = Locale.getDefault();
+ Locale.setDefault(Locale.ENGLISH);
+ _bundle = MessageBundle.getMessages(CompilationTestMessages.class);
+ sloc = new SourceLocationImpl(new URI("urn:foo"));
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ _bundle = null;
+ Locale.setDefault(oldLocale);
+ super.tearDown();
+ }
+
+ public void testNoParameter() {
+ CompilationMessage msg = _bundle.infNoParameter().setSource(sloc);
+ assertEquals(NO_PARAMETER, msg.messageText);
+ assertEquals(CompilationMessage.INFO, msg.severity);
+ assertEquals(NO_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+
+ msg = _bundle.warnNoParameter().setSource(sloc);
+ assertEquals("No parameter!", msg.messageText);
+ assertEquals(CompilationMessage.WARN, msg.severity);
+ assertEquals(NO_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+
+ msg = _bundle.errNoParameter().setSource(sloc);
+ assertEquals(NO_PARAMETER, msg.messageText);
+ assertEquals(CompilationMessage.ERROR, msg.severity);
+ assertEquals(NO_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+ }
+
+ public void testNoParameterLocalized() {
+ CompilationTestMessages bundle = MessageBundle.getMessages(
+ CompilationTestMessages.class, Locale.GERMAN);
+ CompilationMessage msg = bundle.infNoParameter().setSource(sloc);
+ assertEquals(NO_PARAMETER_DE, msg.messageText);
+ assertEquals(CompilationMessage.INFO, msg.severity);
+ assertEquals(NO_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+ }
+
+ public void testWrongParameter() {
+ CompilationMessage msg = _bundle.infWrongParameter(":-)").setSource(sloc);
+ assertEquals(WRONG_PARAMETER, msg.messageText);
+ assertEquals(CompilationMessage.INFO, msg.severity);
+ assertEquals(WRONG_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+
+ msg = _bundle.warnWrongParameter(":-)").setSource(sloc);
+ assertEquals(WRONG_PARAMETER, msg.messageText);
+ assertEquals(CompilationMessage.WARN, msg.severity);
+ assertEquals(WRONG_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+
+ msg = _bundle.errWrongParameter(":-)").setSource(sloc);
+ assertEquals(WRONG_PARAMETER, msg.messageText);
+ assertEquals(CompilationMessage.ERROR, msg.severity);
+ assertEquals(WRONG_PARAMETER_CODE, msg.code);
+ assertSame(sloc, msg.source);
+ }
+
+ public void testWrongMethod() {
+ try {
+ _bundle.msgWrongMethod().setSource(sloc);
+ fail("should have failed on msgWrongMethod()");
+ }
+ catch (UnsupportedOperationException uop) {
+ // OK
+ }
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages.java (original)
+++ ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages.java Thu May 22 16:25:57 2008
@@ -1,55 +1,55 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
-
-public class CompilationTestMessages extends CompilationMessageBundle {
-
- public CompilationMessage infNoParameter() {
- return this.formatCompilationMessage("No parameter!");
- }
-
- public CompilationMessage warnNoParameter() {
- return this.formatCompilationMessage("No parameter!");
- }
-
- public CompilationMessage errNoParameter() {
- return this.formatCompilationMessage("No parameter!");
- }
-
- public CompilationMessage infWrongParameter(String parm) {
- return this.formatCompilationMessage("Wrong parameter {0}", parm);
- }
-
- public CompilationMessage warnWrongParameter(String parm) {
- return this.formatCompilationMessage("Wrong parameter {0}", parm);
- }
-
- public CompilationMessage errWrongParameter(String parm) {
- return this.formatCompilationMessage("Wrong parameter {0}", parm);
- }
-
- public CompilationMessage msgWrongMethod() {
- return this.formatCompilationMessage("Ouch!");
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+import org.apache.ode.bpel.compiler.api.CompilationMessageBundle;
+
+public class CompilationTestMessages extends CompilationMessageBundle {
+
+ public CompilationMessage infNoParameter() {
+ return this.formatCompilationMessage("No parameter!");
+ }
+
+ public CompilationMessage warnNoParameter() {
+ return this.formatCompilationMessage("No parameter!");
+ }
+
+ public CompilationMessage errNoParameter() {
+ return this.formatCompilationMessage("No parameter!");
+ }
+
+ public CompilationMessage infWrongParameter(String parm) {
+ return this.formatCompilationMessage("Wrong parameter {0}", parm);
+ }
+
+ public CompilationMessage warnWrongParameter(String parm) {
+ return this.formatCompilationMessage("Wrong parameter {0}", parm);
+ }
+
+ public CompilationMessage errWrongParameter(String parm) {
+ return this.formatCompilationMessage("Wrong parameter {0}", parm);
+ }
+
+ public CompilationMessage msgWrongMethod() {
+ return this.formatCompilationMessage("Ouch!");
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages_de.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages_de.java?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages_de.java (original)
+++ ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/CompilationTestMessages_de.java Thu May 22 16:25:57 2008
@@ -1,30 +1,30 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ode.bpel.compiler;
-
-import org.apache.ode.bpel.compiler.api.CompilationMessage;
-
-public class CompilationTestMessages_de extends CompilationTestMessages {
-
- public CompilationMessage infNoParameter() {
- return this.formatCompilationMessage("Kein Parameter!");
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.api.CompilationMessage;
+
+public class CompilationTestMessages_de extends CompilationTestMessages {
+
+ public CompilationMessage infNoParameter() {
+ return this.formatCompilationMessage("Kein Parameter!");
+ }
+
+}
Modified: ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/ExtensibleAssignNotSupported.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/ExtensibleAssignNotSupported.bpel?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/ExtensibleAssignNotSupported.bpel (original)
+++ ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/ExtensibleAssignNotSupported.bpel Thu May 22 16:25:57 2008
@@ -1,33 +1,33 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
--->
-
-<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
- targetNamespace="http://jlo/test/compile"
- xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
- xmlns:tns="http://jlo/test/compile"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:ext="urn:ode:test-ext">
- <flow>
- <sequence>
- <assign>
- <extensibleAssign ext:test="xx"/>
- </assign>
- </sequence>
- </flow>
-</process>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+-->
+
+<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
+ targetNamespace="http://jlo/test/compile"
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:tns="http://jlo/test/compile"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:ext="urn:ode:test-ext">
+ <flow>
+ <sequence>
+ <assign>
+ <extensibleAssign ext:test="xx"/>
+ </assign>
+ </sequence>
+ </flow>
+</process>
Modified: ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionActivityElement.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionActivityElement.bpel?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionActivityElement.bpel (original)
+++ ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionActivityElement.bpel Thu May 22 16:25:57 2008
@@ -1,32 +1,32 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
--->
-
-<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
- targetNamespace="http://jlo/test/compile"
- xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- xmlns:tns="http://jlo/test/compile"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:ext="urn:ode:test-ext">
- <flow>
- <sequence>
- <extensionActivity>
- </extensionActivity>
- </sequence>
- </flow>
-</process>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+-->
+
+<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
+ targetNamespace="http://jlo/test/compile"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://jlo/test/compile"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:ext="urn:ode:test-ext">
+ <flow>
+ <sequence>
+ <extensionActivity>
+ </extensionActivity>
+ </sequence>
+ </flow>
+</process>
Modified: ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionAssignOperationElement.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionAssignOperationElement.bpel?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionAssignOperationElement.bpel (original)
+++ ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/MissingExtensionAssignOperationElement.bpel Thu May 22 16:25:57 2008
@@ -1,34 +1,34 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
--->
-
-<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
- targetNamespace="http://jlo/test/compile"
- xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- xmlns:tns="http://jlo/test/compile"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:ext="urn:ode:test-ext">
- <flow>
- <sequence>
- <assign>
- <extensionAssignOperation>
- </extensionAssignOperation>
- </assign>
- </sequence>
- </flow>
-</process>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+-->
+
+<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
+ targetNamespace="http://jlo/test/compile"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://jlo/test/compile"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:ext="urn:ode:test-ext">
+ <flow>
+ <sequence>
+ <assign>
+ <extensionAssignOperation>
+ </extensionAssignOperation>
+ </assign>
+ </sequence>
+ </flow>
+</process>
Modified: ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/UndeclaredExtensionActivity.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/UndeclaredExtensionActivity.bpel?rev=659307&r1=659306&r2=659307&view=diff
==============================================================================
--- ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/UndeclaredExtensionActivity.bpel (original)
+++ ode/trunk/bpel-compiler/src/test/resources/org/apache/ode/bpel/compiler/UndeclaredExtensionActivity.bpel Thu May 22 16:25:57 2008
@@ -1,33 +1,33 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
--->
-
-<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
- targetNamespace="http://jlo/test/compile"
- xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- xmlns:tns="http://jlo/test/compile"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:ext="urn:ode:test-ext">
- <flow>
- <sequence>
- <extensionActivity>
- <ext:unknownExt name="myExt"/>
- </extensionActivity>
- </sequence>
- </flow>
-</process>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+-->
+
+<process name="UndeclaredExtensionActivity" suppressJoinFailure="yes"
+ targetNamespace="http://jlo/test/compile"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://jlo/test/compile"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:ext="urn:ode:test-ext">
+ <flow>
+ <sequence>
+ <extensionActivity>
+ <ext:unknownExt name="myExt"/>
+ </extensionActivity>
+ </sequence>
+ </flow>
+</process>