Package org.apache.camel.model

Examples of org.apache.camel.model.ExpressionSubElementDefinition


  }

  public static <T> T convertTo(Object value, Class<T> aClass) {
    if (ExpressionSubElementDefinition.class.isAssignableFrom(aClass) && value instanceof ExpressionDefinition) {
      ExpressionDefinition exp = (ExpressionDefinition) value;
      ExpressionSubElementDefinition answer = new ExpressionSubElementDefinition();
      answer.setExpressionType(exp);
      return (T) answer;
    } else if (ExpressionDefinition.class.isAssignableFrom(aClass)
        && value instanceof ExpressionSubElementDefinition) {
      ExpressionSubElementDefinition exp = (ExpressionSubElementDefinition) value;
      return (T) exp.getExpressionType();
    } else if (ExpressionDefinition.class.isAssignableFrom(aClass) && value instanceof List) {
      List list = (List) value;
      if (list.size() > 0) {
        Object object = list.get(0);
        if (object instanceof ExpressionDefinition) {
View Full Code Here

TOP

Related Classes of org.apache.camel.model.ExpressionSubElementDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.