/** * Adds data from the {@link ApiModelProperty} annotation to the * representation property. * * @param apiModelProperty * The {@link ApiModelProperty} annotation. * @param property * The {@link Property} to update. */ public static void processApiModelProperty( ApiModelProperty apiModelProperty, Property property) { if (!StringUtils.isNullOrEmpty(apiModelProperty.value())) { property.setDescription(apiModelProperty.value()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.dataType())) { property.setType(apiModelProperty.dataType()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.allowableValues())) { property.setRequired(true); property.setList(true); } }
/** * Adds data from the {@link ApiModelProperty} annotation to the * representation property. * * @param apiModelProperty * The {@link ApiModelProperty} annotation. * @param property * The {@link Property} to update. */ public static void processApiModelProperty( ApiModelProperty apiModelProperty, Property property) { if (!StringUtils.isNullOrEmpty(apiModelProperty.value())) { property.setDescription(apiModelProperty.value()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.dataType())) { property.setType(apiModelProperty.dataType()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.allowableValues())) { property.setRequired(true); property.setList(true); } }
/** * Adds data from the {@link ApiModelProperty} annotation to the * representation property. * * @param apiModelProperty * The {@link ApiModelProperty} annotation. * @param property * The {@link Property} to update. */ public static void processApiModelProperty( ApiModelProperty apiModelProperty, Property property) { if (!StringUtils.isNullOrEmpty(apiModelProperty.value())) { property.setDescription(apiModelProperty.value()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.dataType())) { property.setType(apiModelProperty.dataType()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.allowableValues())) { property.setRequired(true); property.setList(true); } }
/** * Adds data from the {@link ApiModelProperty} annotation to the * representation property. * * @param apiModelProperty * The {@link ApiModelProperty} annotation. * @param property * The {@link Property} to update. */ public static void processApiModelProperty( ApiModelProperty apiModelProperty, Property property) { if (!StringUtils.isNullOrEmpty(apiModelProperty.value())) { property.setDescription(apiModelProperty.value()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.dataType())) { property.setType(apiModelProperty.dataType()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.allowableValues())) { property.setRequired(true); property.setList(true); } }
/** * Adds data from the {@link ApiModelProperty} annotation to the * representation property. * * @param apiModelProperty * The {@link ApiModelProperty} annotation. * @param property * The {@link Property} to update. */ public static void processApiModelProperty( ApiModelProperty apiModelProperty, Property property) { if (!StringUtils.isNullOrEmpty(apiModelProperty.value())) { property.setDescription(apiModelProperty.value()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.dataType())) { property.setType(apiModelProperty.dataType()); } if (!StringUtils.isNullOrEmpty(apiModelProperty.allowableValues())) { property.setRequired(true); property.setList(true); } }