Examples of Param


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Param

        T result = caseHtmlParam(htmlParam);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.PARAM: {
        Param param = (Param)theEObject;
        T result = caseParam(param);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.PERMISSIONS: {
View Full Code Here

Examples of br.com.objectos.comuns.sitebricks.relational.SearchString.Param

public class SearchStringTest {

  public void main_param() {
    SearchString s = new SearchString("abc");

    Param p = s.param();

    assertThat(p.toString(), equalTo("abc"));
  }
View Full Code Here

Examples of br.com.objectos.way.ui.SearchString.Param

public class SearchStringTest {

  public void main_param() {
    SearchString s = new SearchString("abc");

    Param p = s.param();

    assertThat(p.toString(), equalTo("abc"));
  }
View Full Code Here

Examples of com.alibaba.citrus.turbine.dataresolver.Param

        // 当所需要的对象未定义时,resolver factory仍可以创建,但在取得resolver时报错。
        // 这样使得同一套配置可用于所有环境,仅当你需要注入特定对象时,才报错。
        assertNotNull(parserRequestContext, "no ParserRequestContext defined");

        // 单个参数
        Param paramAnnotation = context.getAnnotation(Param.class);

        if (paramAnnotation != null) {
            String[] defaultValues = getDefaultValues(paramAnnotation, context);
            String paramName = DataResolverUtil.getAnnotationNameOrValue(Param.class, paramAnnotation, context,
                                                                         !isEmptyArray(defaultValues));
View Full Code Here

Examples of com.avaje.ebeaninternal.api.BindParams.Param

                } while (endOfParam < sql.length());

                // add the named parameter value to bindList
                String paramName = sql.substring(nameParamStart + 1, endOfParam);
               
                Param param;
                if (paramName.startsWith(ENCRYPTKEY_PREFIX)){
                    param = addEncryptKeyParam(paramName);
                } else {
                    param = params.getParameter(paramName);
                }
               
                if (param == null) {
                  String msg = "Bind value is not set or null for [" + paramName
                    + "] in [" + sql+ "]";
                    throw new PersistenceException(msg);
                }

                String sub = sql.substring(startPos, nameParamStart);
                orderedList.appendSql(sub);

                // check if inValue is a Collection type...
                Object inValue = param.getInValue();
                if (inValue != null && inValue instanceof Collection<?>){
                  // Chop up Collection parameter into a number
                  // of individual parameters and add each one individually
                    Collection<?> collection = (Collection<?>)inValue;
                    int c = 0;
View Full Code Here

Examples of com.avaje.ebeaninternal.api.BindParams.Param

    bindParameters.registerOut(position, type);
    return this;
  }

  public Object getObject(int position) {
    Param p = bindParameters.getParameter(position);
    return p.getOutValue();
  }
View Full Code Here

Examples of com.cloud.serializer.Param

        Argument id = null;

        for (Field responseField : responseFields) {
            SerializedName nameAnnotation = responseField.getAnnotation(SerializedName.class);
            if (nameAnnotation != null) {
               Param paramAnnotation = responseField.getAnnotation(Param.class);
                 Argument respArg = new Argument(nameAnnotation.value());

                 boolean hasChildren = false;
                 if (paramAnnotation != null && paramAnnotation.includeInApiDoc()) {
                     String description = paramAnnotation.description();
                     Class fieldClass = paramAnnotation.responseObject();
                     if (description != null && !description.isEmpty()) {
                         respArg.setDescription(description);
                     }

                     if(!paramAnnotation.since().isEmpty()){
                       respArg.setSinceVersion(paramAnnotation.since());
                     }
                    
                     if (fieldClass != null) {
                         Class<?> superClass = fieldClass.getSuperclass();
                         if (superClass != null) {
                             String superName = superClass.getName();
                             if (superName.equals(BaseResponse.class.getName())) {
                                 ArrayList<Argument> fieldArguments = new ArrayList<Argument>();
                                 Field[] fields = fieldClass.getDeclaredFields();
                                 fieldArguments = setResponseFields(fields, fieldClass);
                                 respArg.setArguments(fieldArguments);
                                 hasChildren = true;
                             }
                         }
                     }
                 }

                 if (paramAnnotation != null && paramAnnotation.includeInApiDoc()) {
                     if (nameAnnotation.value().equals("id")) {
                         id = respArg;
                     } else {
                         if (hasChildren) {
                             respArg.setName(nameAnnotation.value() + "(*)");
 
View Full Code Here

Examples of com.draagon.util.Param

    else if ( mode == EDIT )
    {
        Collection<Param> days = new ArrayList<Param>();
       
        if ( getEmptyString() != null ) {
          days.add( new Param( getEmptyString(), "" ));
        }
       
        for ( int i = 1; i < 32; i++ ) {
          days.add( new Param( "" + i, "" + i ));
        }
     
        String selStr = (sel <= 0 || sel > 31 ) ? "" : "" + sel;

        HtmlViewHelper.drawSelectBox( page, label, selStr, days, params );
View Full Code Here

Examples of com.khs.sherpa.annotation.Param

     
      Class<?>[] types = method.getParameterTypes();
      Annotation[][] parameters = method.getParameterAnnotations();
      for(int i=0; i<parameters.length; i++) {
        Class<?> type = types[i];
        Param annotation = null;
        if(parameters[i].length > 0 ) {
          for(Annotation an: parameters[i]) {
            if(an.annotationType().isAssignableFrom(Param.class)) {
              annotation = (Param) an;
              break;
            }
          }
         
        }
        if(annotation != null) {
          params.put(annotation.value(), type.getName());
        }
      }
     
      if(params.size() > 0) {
        action.put("params", params);
View Full Code Here

Examples of com.kurento.tool.rom.server.Param

    if (args != null && args.length > 0) {

      props = new Props();
      for (int i = 0; i < args.length; i++) {

        Param param = getParamAnnotation(annotations[i]);
        props.add(param.value(), args[i]);
      }
    }

    return props;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.