Examples of DefaultValue


Examples of javax.ws.rs.DefaultValue

                                                          Encoded.class) != null;
        }
    }
   
    private void checkDefaultParameterValue() {
        DefaultValue dv = (DefaultValue)AnnotationUtils.getMethodAnnotation(annotatedMethod,
                                            DefaultValue.class);
        if (dv == null && classResourceInfo != null) {
            dv = (DefaultValue)AnnotationUtils.getClassAnnotation(
                                         classResourceInfo.getServiceClass(),
                                         DefaultValue.class);
        }
        if (dv != null) {
            defaultParamValue = dv.value();
        }
    }
View Full Code Here

Examples of javax.ws.rs.DefaultValue

        return null;
    }
   
    public static String getDefaultParameterValue(Annotation[] anns) {
       
        DefaultValue dv = AnnotationUtils.getAnnotation(anns, DefaultValue.class);
        return dv != null ? dv.value() : null;
       
    }
View Full Code Here

Examples of javax.ws.rs.DefaultValue

   }

   public static ValueInjector getParameterExtractor(Class injectTargetClass, AccessibleObject injectTarget, Class type, Type genericType, Annotation[] annotations, ResteasyProviderFactory providerFactory)
   {

      DefaultValue defaultValue = FindAnnotation.findAnnotation(annotations, DefaultValue.class);
      boolean encode = FindAnnotation.findAnnotation(annotations, Encoded.class) != null || injectTarget.isAnnotationPresent(Encoded.class) || type.isAnnotationPresent(Encoded.class);
      String defaultVal = null;
      if (defaultValue != null) defaultVal = defaultValue.value();

      QueryParam query;
      HeaderParam header;
      MatrixParam matrix;
      PathParam uriParam;
View Full Code Here

Examples of javax.ws.rs.DefaultValue

                                                          Encoded.class) != null;
        }
    }
   
    private void checkDefaultParameterValue() {
        DefaultValue dv = (DefaultValue)AnnotationUtils.getMethodAnnotation(annotatedMethod,
                                            DefaultValue.class);
        if (dv == null && classResourceInfo != null) {
            dv = (DefaultValue)AnnotationUtils.getClassAnnotation(
                                         classResourceInfo.getServiceClass(),
                                         DefaultValue.class);
        }
        if (dv != null) {
            defaultParamValue = dv.value();
        }
    }
View Full Code Here

Examples of javax.ws.rs.DefaultValue

        return null;
    }
   
    public static String getDefaultParameterValue(Annotation[] anns) {
       
        DefaultValue dv = AnnotationUtils.getAnnotation(anns, DefaultValue.class);
        return dv != null ? dv.value() : null;
       
    }
View Full Code Here

Examples of javax.ws.rs.DefaultValue

        return ori.isEncodedEnabled();
    }
   
    public static String getDefaultParameterValue(Annotation[] anns, OperationResourceInfo ori) {
       
        DefaultValue dv = AnnotationUtils.getAnnotation(anns, DefaultValue.class);
        if (dv != null) {
            return dv.value();
        }
       
        if (ori == null) {
            return null;
        }
View Full Code Here

Examples of javax.ws.rs.DefaultValue

    @Test
    public void testBuildParamWithDefault() throws Exception {
        HeaderParam ann =
            Temp.class.getMethod("setHeaderParamWithDefault", double.class)
                .getAnnotation(HeaderParam.class);
        DefaultValue dvAnn =
            Temp.class.getMethod("setHeaderParamWithDefault", double.class)
                .getAnnotation(DefaultValue.class);

        final Annotation[] annArray = new Annotation[] {ann, dvAnn};
View Full Code Here

Examples of org.adbcj.support.DefaultValue

                throw new IllegalStateException("Don't know how to handle field to type " + field.getColumnType());
              }
              if (jdbcResultSet.wasNull()) {
                value = null;
              }
              eventHandler.value(new DefaultValue(field, value), accumulator);
            }
            eventHandler.endRow(accumulator);
          }
          eventHandler.endResults(accumulator);
         
View Full Code Here

Examples of org.aeonbits.owner.Config.DefaultValue

        Key key = method.getAnnotation(Key.class);
        return (key == null) ? method.getName() : key.value();
    }

    static String defaultValue(Method method) {
        DefaultValue defaultValue = method.getAnnotation(DefaultValue.class);
        return defaultValue != null ? defaultValue.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.simple.DefaultValue

        addElementProcessor(new DebugAccessCheck());
        addElementProcessor(new DebugCollectionView());
        addElementProcessor(new DebuggerLink());
        addElementProcessor(new DebugObjectView());
        addElementProcessor(new DebugUsersView());
        addElementProcessor(new DefaultValue());
        addElementProcessor(new EditLink());
        addElementProcessor(new EditObject());
        addElementProcessor(new ElementType());
        addElementProcessor(new Errors());
        addElementProcessor(new ErrorDetails());
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.