Examples of MatrixVariable


Examples of org.destecs.core.contract.MatrixVariable

           
       
      }
    } else if (v instanceof MatrixVariable)
    {
      MatrixVariable matrixVariable = (MatrixVariable) v;

      List<Integer> dimensions = matrixVariable.getDimensions();

      List<String> results = buildMatrixIndexes(dimensions);
      for (String res : results)
      {
        TableItem item = new TableItem(table, SWT.NONE);
        String itemName = matrixVariable.getName() + "[" + res + "]";
        item.setText(0, itemName);
        String existing = getValueIfPresent(itemName);

        if (existing == null)
        {
View Full Code Here

Examples of org.springframework.web.bind.annotation.MatrixVariable

    return true;
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    MatrixVariable annotation = parameter.getParameterAnnotation(MatrixVariable.class);
    return new PathParamNamedValueInfo(annotation);
  }
View Full Code Here

Examples of org.springframework.web.bind.annotation.MatrixVariable

* @since 3.2
*/
public class MatrixVariableMapMethodArgumentResolver implements HandlerMethodArgumentResolver {

  public boolean supportsParameter(MethodParameter parameter) {
    MatrixVariable paramAnnot = parameter.getParameterAnnotation(MatrixVariable.class);
    if (paramAnnot != null) {
      if (Map.class.isAssignableFrom(parameter.getParameterType())) {
        return !StringUtils.hasText(paramAnnot.value());
      }
    }
    return false;
  }
View Full Code Here

Examples of org.springframework.web.bind.annotation.MatrixVariable

    return true;
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    MatrixVariable annotation = parameter.getParameterAnnotation(MatrixVariable.class);
    return new PathParamNamedValueInfo(annotation);
  }
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.