camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r555221 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model: ./ language/
Date Wed, 11 Jul 2007 09:19:55 GMT
Author: jstrachan
Date: Wed Jul 11 02:19:53 2007
New Revision: 555221

URL: http://svn.apache.org/viewvc?view=rev&rev=555221
Log:
refactor to move the JAXB2 POJOs into camel-core so that they can be merged with the DSL camel.builder package; as they are pretty much the same kinds of objects. For CAMEL-71

Added:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ChoiceType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FilterType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/IdentifiedType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptorRef.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OutputType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorRef.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteContainer.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RoutesType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitterType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WhenType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ELExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/GroovyExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/HeaderExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/JavaScriptExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/LanguageExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/OgnlExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PhpExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PythonExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/RubyExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/SqlExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XPathExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XQueryExpression.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package-info.java   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package.html   (with props)
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package-info.java   (with props)
Removed:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/CamelContextElement.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteElement.java
Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package.html

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ChoiceType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ChoiceType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ChoiceType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ChoiceType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,91 @@
+/**
+ *
+ * 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.camel.model;
+
+import org.apache.camel.Processor;
+import org.apache.camel.processor.FilterProcessor;
+import org.apache.camel.processor.ChoiceProcessor;
+
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlElement;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Collections;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "choice")
+public class ChoiceType extends ProcessorType {
+    private List<WhenType> whenClauses = new ArrayList<WhenType>();
+    private OtherwiseType otherwise;
+    private List<InterceptorRef> interceptors = new ArrayList<InterceptorRef>();
+
+    @Override
+    public String toString() {
+        return "Choice[ " + getWhenClauses() + " " + getOtherwise() + "]";
+    }
+
+    @Override
+    public Processor createProcessor(RouteType route) {
+        List<FilterProcessor> filters = new ArrayList<FilterProcessor>();
+        for (WhenType whenClaus : whenClauses) {
+            filters.add(whenClaus.createProcessor(route));
+        }
+        Processor otherwiseProcessor = null;
+        if (otherwise != null) {
+            otherwiseProcessor = otherwise.createProcessor(route);
+        }
+        return new ChoiceProcessor(filters, otherwiseProcessor);
+    }
+
+    @XmlElementRef
+    public List<WhenType> getWhenClauses() {
+        return whenClauses;
+    }
+
+    public void setWhenClauses(List<WhenType> whenClauses) {
+        this.whenClauses = whenClauses;
+    }
+
+    public List<ProcessorType> getOutputs() {
+        return Collections.EMPTY_LIST;
+    }
+
+    @XmlElementRef
+    public OtherwiseType getOtherwise() {
+        return otherwise;
+    }
+
+    public void setOtherwise(OtherwiseType otherwise) {
+        this.otherwise = otherwise;
+    }
+
+    @XmlElement(required = false)
+    public List<InterceptorRef> getInterceptors() {
+        return interceptors;
+    }
+
+    public void setInterceptors(List<InterceptorRef> interceptors) {
+        this.interceptors = interceptors;
+    }
+
+
+}
+

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ChoiceType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FilterType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FilterType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FilterType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FilterType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,91 @@
+/**
+ *
+ * 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.camel.model;
+
+import org.apache.camel.model.language.ExpressionType;
+import org.apache.camel.processor.FilterProcessor;
+import org.apache.camel.Processor;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlTransient;
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "filter")
+@XmlAccessorType(XmlAccessType.FIELD)
+//@XmlType(propOrder = {"interceptors", "expression", "outputs"})
+public class FilterType extends ProcessorType {
+
+    @XmlElement(required = false)
+    private List<InterceptorRef> interceptors = new ArrayList<InterceptorRef>();
+
+    // TODO can we zap this hack to get schemagen to generate the correct schema?
+    @XmlElementRef
+    private List<ExpressionType> expressions;
+    @XmlTransient
+    private ExpressionType expression;
+
+    @XmlElementRef
+    private List<ProcessorType> outputs = new ArrayList<ProcessorType>();
+
+    @Override
+    public String toString() {
+        return "Filter[ " + getExpression() + " -> " + getOutputs() + "]";
+    }
+
+    @Override
+    public FilterProcessor createProcessor(RouteType route) {
+        Processor childProcessor = route.createProcessor(getOutputs());
+        return new FilterProcessor(getExpression().createPredicate(route), childProcessor);
+    }
+
+    public List<InterceptorRef> getInterceptors() {
+        return interceptors;
+    }
+
+    public void setInterceptors(List<InterceptorRef> interceptors) {
+        this.interceptors = interceptors;
+    }
+
+    public ExpressionType getExpression() {
+        if (expression == null && expressions != null && !expressions.isEmpty()) {
+            expression = expressions.get(0);
+        }
+        return expression;
+    }
+
+    public void setExpression(ExpressionType expression) {
+        this.expression = expression;
+    }
+
+    public List<ProcessorType> getOutputs() {
+        return outputs;
+    }
+
+    public void setOutputs(List<ProcessorType> outputs) {
+        this.outputs = outputs;
+    }
+
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FilterType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * Represents an XML &lt;to/&gt; element
+ *
+ * @version $Revision: $
+ */
+@XmlRootElement(name = "from")
+@XmlAccessorType(XmlAccessType.FIELD)
+public class FromType {
+    @XmlAttribute
+    private String uri;
+
+    public FromType() {
+    }
+
+    public FromType(String uri) {
+        setUri(uri);
+    }
+
+    @Override
+    public String toString() {
+        return "From[" + uri + "]";
+    }
+
+    // Properties
+    //-----------------------------------------------------------------------
+    public String getUri() {
+        return uri;
+    }
+
+    public void setUri(String uri) {
+        this.uri = uri;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/IdentifiedType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/IdentifiedType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/IdentifiedType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/IdentifiedType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+/**
+ *
+ * 	The unique identifier for a bean. The scope of the identifier
+ * 	is the enclosing bean factory.
+ *
+ *
+ * <p>Java class for identifiedType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType name="identifiedType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlType(name = "identifiedType")
+public abstract class IdentifiedType {
+
+    protected String id;
+
+    /**
+     * Gets the value of the id property.
+     *
+     * @return
+     *     possible object is
+     *     {@link String }
+     *
+     */
+    @XmlAttribute
+    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+    @XmlID
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * Sets the value of the id property.
+     *
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *
+     */
+    public void setId(String value) {
+        this.id = value;
+    }
+
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/IdentifiedType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptorRef.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptorRef.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptorRef.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptorRef.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,50 @@
+/**
+ *
+ * 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.camel.model;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "interceptor")
+public class InterceptorRef {
+    private String ref;
+
+    public InterceptorRef() {
+    }
+
+    public InterceptorRef(String ref) {
+        setRef(ref);
+    }
+
+    @Override
+    public String toString() {
+        return "Interceptor[ref:  " + ref + "]";
+    }
+
+    @XmlAttribute(required = true)
+    public String getRef() {
+        return ref;
+    }
+
+    public void setRef(String ref) {
+        this.ref = ref;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptorRef.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,35 @@
+/**
+ *
+ * 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.camel.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "otherwise")
+@XmlAccessorType(XmlAccessType.FIELD)
+public class OtherwiseType extends OutputType {
+
+    @Override
+    public String toString() {
+        return "Otherwise[" + getOutputs() + "]";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OutputType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OutputType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OutputType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OutputType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,74 @@
+/**
+ *
+ * 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.camel.model;
+
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * A useful base class for output types
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlType(name="outputType")
+public abstract class OutputType extends ProcessorType {
+    protected List<ProcessorType> outputs = new ArrayList<ProcessorType>();
+    private List<InterceptorRef> interceptors = new ArrayList<InterceptorRef>();
+
+    @XmlElementRef
+    public List<ProcessorType> getOutputs() {
+        return outputs;
+    }
+
+    public void setOutputs(List<ProcessorType> outputs) {
+        this.outputs = outputs;
+    }
+
+    @XmlElement(required = false)
+    public List<InterceptorRef> getInterceptors() {
+        return interceptors;
+    }
+
+    public void setInterceptors(List<InterceptorRef> interceptors) {
+        this.interceptors = interceptors;
+    }
+
+
+    // Fluent API
+    //-------------------------------------------------------------------------
+/*    public FilterType filter(ExpressionType expression) {
+        FilterType filter = new FilterType();
+        filter.setExpression(expression);
+        getOutputs().add(filter);
+        return filter;
+    }
+
+    public FilterType filter(String language, String expression) {
+        return filter(new LanguageExpression(language, expression));
+    }
+
+    public OutputType to(String uri) {
+        ToType to = new ToType();
+        to.setUri(uri);
+        getOutputs().add(to);
+        return this;
+    }*/
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OutputType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorRef.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorRef.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorRef.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorRef.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,43 @@
+/**
+ *
+ * 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.camel.model;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "process")
+public class ProcessorRef extends OutputType {
+    private String ref;
+
+    @Override
+    public String toString() {
+        return "Processor[ref:  " + ref + "]";
+    }
+
+    @XmlAttribute(required = true)
+    public String getRef() {
+        return ref;
+    }
+
+    public void setRef(String ref) {
+        this.ref = ref;
+    }
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorRef.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,67 @@
+/**
+ *
+ * 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.camel.model;
+
+import org.apache.camel.model.language.ExpressionType;
+import org.apache.camel.model.language.LanguageExpression;
+import org.apache.camel.Processor;
+
+import java.util.List;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public abstract class ProcessorType {
+
+    public abstract List<ProcessorType> getOutputs();
+    public abstract List<InterceptorRef> getInterceptors();
+
+    public ProcessorType interceptor(String ref) {
+        getInterceptors().add(new InterceptorRef(ref));
+        return this;
+    }
+
+    public ProcessorType interceptors(String... refs) {
+        for (String ref : refs) {
+            interceptor(ref);
+        }
+        return this;
+    }
+
+    public FilterType filter(ExpressionType expression) {
+        FilterType filter = new FilterType();
+        filter.setExpression(expression);
+        getOutputs().add(filter);
+        return filter;
+    }
+
+    public FilterType filter(String language, String expression) {
+        return filter(new LanguageExpression(language, expression));
+    }
+
+    public ProcessorType to(String uri) {
+        ToType to = new ToType();
+        to.setUri(uri);
+        getOutputs().add(to);
+        return this;
+    }
+
+    public Processor createProcessor(RouteType route) {
+        throw new UnsupportedOperationException("Not implemented yet!");
+    }
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import org.apache.camel.model.language.ExpressionType;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "recipientList")
+@XmlAccessorType(XmlAccessType.FIELD)
+public class RecipientListType extends OutputType {
+    @XmlElementRef
+    private ExpressionType expression;
+
+    @Override
+    public String toString() {
+        return "RecipientList[ " + getExpression()  + "]";
+    }
+
+    public ExpressionType getExpression() {
+        return expression;
+    }
+
+    public void setExpression(ExpressionType expression) {
+        this.expression = expression;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteContainer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteContainer.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteContainer.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteContainer.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import javax.xml.bind.annotation.XmlElementRef;
+import java.util.List;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public interface RouteContainer {
+    /**
+     * A list of routes
+     *
+     * @return
+     */
+    @XmlElementRef
+    List<RouteType> getRoutes();
+
+    /**
+     * Sets the routes to use
+     *
+     * @param routes
+     */
+    void setRoutes(List<RouteType> routes);
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteContainer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,146 @@
+/*
+ * 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.camel.model;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.Endpoint;
+import org.apache.camel.Processor;
+import org.apache.camel.Route;
+import org.apache.camel.impl.EventDrivenConsumerRoute;
+import org.apache.camel.processor.CompositeProcessor;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * Represents an XML &lt;route/&gt; element
+ *
+ * @version $Revision: $
+ */
+@XmlRootElement(name = "route")
+@XmlType(propOrder = {"interceptors", "inputs", "outputs"})
+public class RouteType extends ProcessorType implements CamelContextAware {
+    private CamelContext camelContext;
+    private List<InterceptorRef> interceptors = new ArrayList<InterceptorRef>();
+    private List<FromType> inputs = new ArrayList<FromType>();
+    private List<ProcessorType> outputs = new ArrayList<ProcessorType>();
+
+    @Override
+    public String toString() {
+        return "Route[ " + inputs + " -> " + outputs + "]";
+    }
+
+    public void addRoutes(CamelContext context) throws Exception {
+        setCamelContext(context);
+
+        Collection<Route> routes = new ArrayList<Route>();
+
+        for (FromType fromType : inputs) {
+            routes.add(createRoute(fromType));
+        }
+
+        context.addRoutes(routes);
+    }
+
+    public Endpoint resolveEndpoint(String uri) {
+        CamelContext context = getCamelContext();
+        if (context == null) {
+            throw new IllegalArgumentException("No CamelContext has been injected!");
+        }
+        Endpoint answer = context.getEndpoint(uri);
+        if (answer == null) {
+            throw new IllegalArgumentException("No Endpoint found for uri: " + uri);
+        }
+        return answer;
+    }
+
+    public Processor createProcessor(List<ProcessorType> processors) {
+        List<Processor> list = new ArrayList<Processor>();
+        for (ProcessorType output : processors) {
+            Processor processor = output.createProcessor(this);
+            list.add(processor);
+        }
+        if (list.size() == 0) {
+            return null;
+        }
+        Processor processor;
+        if (list.size() == 1) {
+            processor = list.get(0);
+        }
+        else {
+            processor = new CompositeProcessor(list);
+        }
+        return processor;
+    }
+
+    // Properties
+    //-----------------------------------------------------------------------
+
+    @XmlElement(required = false, name = "interceptor")
+    public List<InterceptorRef> getInterceptors() {
+        return interceptors;
+    }
+
+    public void setInterceptors(List<InterceptorRef> interceptors) {
+        this.interceptors = interceptors;
+    }
+
+    @XmlElementRef
+    public List<FromType> getInputs() {
+        return inputs;
+    }
+
+    public void setInputs(List<FromType> inputs) {
+        this.inputs = inputs;
+    }
+
+    @XmlElementRef
+    public List<ProcessorType> getOutputs() {
+        return outputs;
+    }
+
+    public void setOutputs(List<ProcessorType> outputs) {
+        this.outputs = outputs;
+    }
+
+    @XmlTransient
+    public CamelContext getCamelContext() {
+        return camelContext;
+    }
+
+    public void setCamelContext(CamelContext camelContext) {
+        this.camelContext = camelContext;
+    }
+
+    // Fluent API
+    //-----------------------------------------------------------------------
+    public RouteType from(String uri) {
+        getInputs().add(new FromType(uri));
+        return this;
+    }
+
+    protected Route createRoute(FromType fromType) throws Exception {
+        return new EventDrivenConsumerRoute(resolveEndpoint(fromType.getUri()), createProcessor(outputs));
+    }
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RoutesType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RoutesType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RoutesType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RoutesType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,57 @@
+/*
+ * 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.camel.model;
+
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlElementRef;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Represents a collection of routes
+ *
+ * @version $Revision: $
+ */
+@XmlRootElement(name = "routes")
+public class RoutesType implements RouteContainer {
+    private List<RouteType> routes = new ArrayList<RouteType>();
+
+    @Override
+    public String toString() {
+        return "Routes: " + routes;
+    }
+
+    // Properties
+    //-----------------------------------------------------------------------
+
+    @XmlElementRef
+    public List<RouteType> getRoutes() {
+        return routes;
+    }
+
+    public void setRoutes(List<RouteType> routes) {
+        this.routes = routes;
+    }
+
+    // Fluent API
+    //-------------------------------------------------------------------------
+    public RouteType route() {
+        RouteType route = new RouteType();
+        getRoutes().add(route);
+        return route;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RoutesType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitterType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitterType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitterType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitterType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import org.apache.camel.model.language.ExpressionType;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "splitter")
+@XmlAccessorType(XmlAccessType.FIELD)
+public class SplitterType extends OutputType {
+    @XmlElementRef
+    private ExpressionType expression;
+
+    @Override
+    public String toString() {
+        return "Splitter[ " + getExpression() + " -> " + getOutputs() + "]";
+    }
+
+    public ExpressionType getExpression() {
+        return expression;
+    }
+
+    public void setExpression(ExpressionType expression) {
+        this.expression = expression;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitterType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import org.apache.camel.Processor;
+import org.apache.camel.processor.SendProcessor;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlElement;
+import java.util.List;
+import java.util.Collections;
+
+/**
+ * Represents an XML &lt;to/&gt; element
+ *
+ * @version $Revision: $
+ */
+@XmlRootElement(name = "to")
+public class ToType extends ProcessorType {
+    private String uri;
+    private List<InterceptorRef> interceptors;
+
+    @Override
+    public String toString() {
+        return "To[" + uri + "]";
+    }
+
+    @Override
+    public Processor createProcessor(RouteType route) {
+        return new SendProcessor(route.resolveEndpoint(getUri()));
+    }
+
+    // Properties
+    //-----------------------------------------------------------------------
+    @XmlAttribute
+    public String getUri() {
+        return uri;
+    }
+
+    public void setUri(String uri) {
+        this.uri = uri;
+    }
+    
+    public List<ProcessorType> getOutputs() {
+        return Collections.EMPTY_LIST;
+    }
+
+    @XmlElement(required = false)
+    public List<InterceptorRef> getInterceptors() {
+        return interceptors;
+    }
+
+    public void setInterceptors(List<InterceptorRef> interceptors) {
+        this.interceptors = interceptors;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WhenType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WhenType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WhenType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WhenType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +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.camel.model;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "when")
+public class WhenType extends FilterType {
+
+    @Override
+    public String toString() {
+        return "When[ " + getExpression() + " -> " + getOutputs() + "]";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/WhenType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ELExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ELExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ELExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ELExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For EL expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "el")
+public class ELExpression extends ExpressionType {
+    public ELExpression() {
+    }
+
+    public ELExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "el";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ELExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,94 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Predicate;
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.Language;
+import org.apache.camel.model.RouteType;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlValue;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+/**
+ * A useful base class for an expression
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlType(name = "expressionType")
+public abstract class ExpressionType {
+    private String expression;
+    private String id;
+
+    public abstract String getLanguage();
+
+    protected ExpressionType() {
+    }
+
+    protected ExpressionType(String expression) {
+        this.expression = expression;
+    }
+
+    @Override
+    public String toString() {
+        return getLanguage() + "Expression[" + getExpression() + "]";
+    }
+
+    public Predicate<Exchange> createPredicate(RouteType route) {
+        CamelContext camelContext = route.getCamelContext();
+        Language language = camelContext.getLanguageResolver().resolveLanguage(getLanguage(), camelContext);
+        return language.createPredicate(getExpression());
+    }
+
+    @XmlValue
+    public String getExpression() {
+        return expression;
+    }
+
+    public void setExpression(String expression) {
+        this.expression = expression;
+    }
+
+    /**
+     * Gets the value of the id property.
+     *
+     * @return possible object is
+     *         {@link String }
+     */
+    @XmlAttribute
+    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+    @XmlID
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * Sets the value of the id property.
+     *
+     * @param value allowed object is
+     *              {@link String }
+     */
+    public void setId(String value) {
+        this.id = value;
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/GroovyExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/GroovyExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/GroovyExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/GroovyExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For Groovy expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "groovy")
+public class GroovyExpression extends ExpressionType {
+    public GroovyExpression() {
+    }
+
+    public GroovyExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "groovy";
+    }
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/GroovyExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/HeaderExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/HeaderExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/HeaderExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/HeaderExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * An expression which extracts the named header
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "header")
+public class HeaderExpression extends ExpressionType {
+    public HeaderExpression() {
+    }
+
+    public HeaderExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "header";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/HeaderExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/JavaScriptExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/JavaScriptExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/JavaScriptExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/JavaScriptExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For JavaScript expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "javaScript")
+public class JavaScriptExpression extends ExpressionType {
+    public JavaScriptExpression() {
+    }
+
+    public JavaScriptExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "js";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/JavaScriptExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/LanguageExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/LanguageExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/LanguageExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/LanguageExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,49 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * Represents a parameterised language expression which can support any language
+ * at runtime using the language attribute.
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "expression")
+public class LanguageExpression extends ExpressionType {
+    private String language;
+
+    public LanguageExpression() {
+    }
+
+    public LanguageExpression(String language, String expression) {
+        setLanguage(language);
+        setExpression(expression);
+    }
+
+    @XmlAttribute
+    public String getLanguage() {
+        return language;
+    }
+
+    public void setLanguage(String language) {
+        this.language = language;
+    }
+}

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/LanguageExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/OgnlExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/OgnlExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/OgnlExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/OgnlExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For OGNL expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "ognl")
+public class OgnlExpression extends ExpressionType {
+    public OgnlExpression() {
+    }
+
+    public OgnlExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "ognl";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/OgnlExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PhpExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PhpExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PhpExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PhpExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For PHP expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "php")
+public class PhpExpression extends ExpressionType {
+    public PhpExpression() {
+    }
+
+    public PhpExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "php";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PhpExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PythonExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PythonExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PythonExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PythonExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For Python expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "python")
+public class PythonExpression extends ExpressionType {
+    public PythonExpression() {
+    }
+
+    public PythonExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "python";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/PythonExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/RubyExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/RubyExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/RubyExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/RubyExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For Ruby expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "ruby")
+public class RubyExpression extends ExpressionType {
+    public RubyExpression() {
+    }
+
+    public RubyExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "ruby";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/RubyExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/SqlExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/SqlExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/SqlExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/SqlExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For SQ: expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "sql")
+public class SqlExpression extends ExpressionType {
+    public SqlExpression() {
+    }
+
+    public SqlExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "sql";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/SqlExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XPathExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XPathExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XPathExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XPathExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For XPath expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "xpath")
+public class XPathExpression extends ExpressionType {
+    public XPathExpression() {
+    }
+
+    public XPathExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "xpath";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XPathExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XQueryExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XQueryExpression.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XQueryExpression.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XQueryExpression.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,39 @@
+/**
+ *
+ * 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.camel.model.language;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * For XQuery expresions and predicates
+ *
+ * @version $Revision: 1.1 $
+ */
+@XmlRootElement(name = "xquery")
+public class XQueryExpression extends ExpressionType {
+    public XQueryExpression() {
+    }
+
+    public XQueryExpression(String expression) {
+        super(expression);
+    }
+
+    public String getLanguage() {
+        return "xquery";
+    }
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/XQueryExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package-info.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package-info.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package-info.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package-info.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://activemq.apache.org/camel/schema/spring", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.camel.model.language;

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package.html
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package.html?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package.html (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package.html Wed Jul 11 02:19:53 2007
@@ -0,0 +1,28 @@
+<!--
+    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.
+-->
+<html>
+<head>
+</head>
+<body>
+
+The JAXB POJOs for the
+<a href="http://activemq.apache.org/camel/expression.html">Expression</a> and
+<a href="http://activemq.apache.org/camel/predicate.html">Predicate</a> plugins for the
+<a href="http://activemq.apache.org/camel/xml-configuration.html">XML Configuration</a>.
+
+</body>
+</html>

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/package.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package-info.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package-info.java?view=auto&rev=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package-info.java (added)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package-info.java Wed Jul 11 02:19:53 2007
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://activemq.apache.org/camel/schema/spring", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.camel.model;

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package.html
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package.html?view=diff&rev=555221&r1=555220&r2=555221
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package.html (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/package.html Wed Jul 11 02:19:53 2007
@@ -19,11 +19,9 @@
 </head>
 <body>
 
-The Camel <a href="http://activemq.apache.org/camel/dsl.html">Domain Specific Language</a> for creating
-<a href="http://activemq.apache.org/camel/routes.html">Routes</a>,
-<a href="http://activemq.apache.org/camel/predicate.html">Predicates</a>,
-<a href="http://activemq.apache.org/camel/expression.html">Expressions</a> and
-<a href="http://activemq.apache.org/camel/error-handler.html">Error Handlers</a>. The entry point to the builder suite is the <a href="http://activemq.apache.org/camel/maven/camel-core/apidocs/org/apache/camel/builder/RouteBuilder.html">RouteBuilder</a> class.
+The JAXB POJOs for the
+<a href="http://activemq.apache.org/camel/xml-configuration.html">XML Configuration</a>
+of the routing rules.
 
 </body>
 </html>



Mime
View raw message