Examples of defaultValue()


Examples of org.springframework.web.bind.annotation.CookieValue.defaultValue()

        }
        else if (CookieValue.class.isInstance(paramAnn)) {
          CookieValue cookieValue = (CookieValue) paramAnn;
          cookieName = cookieValue.value();
          required = cookieValue.required();
          defaultValue = parseDefaultValueAttribute(cookieValue.defaultValue());
          annotationsFound++;
        }
        else if (PathVariable.class.isInstance(paramAnn)) {
          PathVariable pathVar = (PathVariable) paramAnn;
          pathVarName = pathVar.value();
View Full Code Here

Examples of org.springframework.web.bind.annotation.RequestHeader.defaultValue()

        }
        else if (RequestHeader.class.isInstance(paramAnn)) {
          RequestHeader requestHeader = (RequestHeader) paramAnn;
          headerName = requestHeader.value();
          required = requestHeader.required();
          defaultValue = parseDefaultValueAttribute(requestHeader.defaultValue());
          annotationsFound++;
        }
        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
View Full Code Here

Examples of org.springframework.web.bind.annotation.RequestParam.defaultValue()

        for (Annotation paramAnn : parameters[i].getParameterAnnotations()) {
          if (data != null && RequestParam.class.isInstance(paramAnn)) {
            RequestParam requestParam = (RequestParam) paramAnn;
            String paramName = requestParam.value();
            boolean required = requestParam.required();
            String defaultValue = requestParam.defaultValue();

            Object val = data.get(paramName);
            if (val == null) {
              if (defaultValue != null) {
                val = defaultValue;
View Full Code Here

Examples of org.structr.web.common.HtmlProperty.defaultValue()

    if (value != null) {

      boolean explicitlySpecified = true;
      boolean isId = false;

      if (value.equals(htmlProperty.defaultValue())) {
        explicitlySpecified = false;
      }

      return new DOMAttribute((Page) getOwnerDocument(), this, name, value, explicitlySpecified, isId);
    }
View Full Code Here

Examples of org.waveprotocol.wave.util.settings.Setting.defaultValue()

        for (Map.Entry<Setting, Field> entry : coreSettings.entrySet()) {

          Setting setting = entry.getKey();
          Class<?> type = entry.getValue().getType();
          String value =
              propertyMap.containsKey(setting.name()) ? propertyMap.get(setting.name()) : setting
                  .defaultValue();
          if (int.class.equals(type)) {
            // Integer defaultValue = null;
            // if (!setting.defaultValue().isEmpty()) {
            // defaultValue = Integer.parseInt(setting.defaultValue());
View Full Code Here

Examples of restx.config.SettingsKey.defaultValue()

                            error(String.format(
                                    "all methods in a Settings interface must be annotated with @SettingsKey - %s",
                                            element.getSimpleName()), element);
                            continue;
                        }
                        shouldGenerateProvider |= !Strings.isNullOrEmpty(settingsKey.defaultValue())
                                                    || !Strings.isNullOrEmpty(settingsKey.doc());

                        keys.add(ImmutableMap.<String, Object>builder()
                                .put("accessorReturnType", accessorReturnType)
                                .put("configAccessor", configAccessor)
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.