private CookieValueNamedValueInfo(CookieValue annotation) { super(annotation.name(), annotation.required(), annotation.defaultValue()); } }
private CookieValueNamedValueInfo(CookieValue annotation) { super(annotation.name(), annotation.required(), annotation.defaultValue()); } }
private CookieValueNamedValueInfo(CookieValue annotation) { super(annotation.name(), annotation.required(), annotation.defaultValue()); } }
@Override protected String getAnnotationParameterDefaultValue(Object annotation) { String defaultValue = ((CookieValue) annotation).defaultValue(); if (defaultValue.equals(ValueConstants.DEFAULT_NONE)) { return ""; } return defaultValue; } }
private CookieParameter extractCookieValue(Type type, CookieValue cookieValue) { String paramName = StringUtils.defaultIfEmpty(cookieValue.value(), cookieValue.name()); CookieParameter cookieParameter = new CookieParameter().name(paramName) .required(cookieValue.required()); Property schema = readAsPropertyIfPrimitive(type); if (!DEFAULT_VALUE.equals(cookieValue.defaultValue())) { cookieParameter.setDefaultValue(cookieValue.defaultValue()); cookieParameter.setRequired(false); } if (schema != null) { cookieParameter.setProperty(schema); } return cookieParameter; }
@Override protected String getAnnotationParameterDefaultValue(Object annotation) { String defaultValue = ((CookieValue) annotation).defaultValue(); if (defaultValue.equals(ValueConstants.DEFAULT_NONE)) { return ""; } return defaultValue; } }
private CookieValueNamedValueInfo(CookieValue annotation) { super(annotation.name(), annotation.required(), annotation.defaultValue()); } }
private CookieValueNamedValueInfo(CookieValue annotation) { super(annotation.name(), annotation.required(), annotation.defaultValue()); } }
private CookieValueNamedValueInfo(CookieValue annotation) { super(annotation.name(), annotation.required(), annotation.defaultValue()); } }
@Override boolean doCollect(ApiParamObject apiParamObject, AnnotatedElement element) { CookieValue cookieValue = element.getAnnotation(CookieValue.class); if (cookieValue == null) { return false; } String name = null; if (StringUtils.hasText(cookieValue.value())) { name = cookieValue.value(); } if (StringUtils.hasText(cookieValue.name())) { name = cookieValue.name(); } apiParamObject.setName(name); boolean required = cookieValue.required(); apiParamObject.setRequired(required); String paramSample = cookieValue.defaultValue(); if (StringUtils.hasText(paramSample)) { if (ValueConstants.DEFAULT_NONE.equals(paramSample)) { paramSample = ""; } apiParamObject.setSample(paramSample); } return true; } },
parameterName = declaration.getSimpleName().toString(); if (!ValueConstants.DEFAULT_NONE.equals(cookieParam.defaultValue())) { defaultValue = cookieParam.defaultValue(); required = false;
cookieValue.defaultValue()) ? null : cookieValue.defaultValue(); this.hasCookieValueAnnotation = true; break;
cookieName = cookieValue.name(); required = cookieValue.required(); defaultValue = parseDefaultValueAttribute(cookieValue.defaultValue()); annotationsFound++;