ApiParam ann = parameter.getAnnotation(ApiParam.class); Property property = modelConverters.readAsProperty(parameter.getParameterizedType()); property.setRequired(ann.required()); property.setAccess(ann.access()); property.setDefault(ann.defaultValue()); property.setDescription(ann.description()); model.addProperty(ann.value(), property); });
parameter.setRequired(param.required()); if (param.value() != null && !"".equals(param.value())) { parameter.setName(param.value()); parameter.setDescription(param.value()); parameter.setAccess(param.access()); allowableValues = param.allowableValues(); if (allowableValues != null) { if (allowableValues.startsWith("range")) { if (param.value() != null && !"".equals(param.value())) { bp.setName(param.value()); bp.setDescription(param.value());
@Override public String findPropertyDescription(Annotated a) { ApiParam apiParam = a.getAnnotation(ApiParam.class); if (apiParam != null) { return apiParam.description(); } ApiModel model = a.getAnnotation(ApiModel.class); if (model != null && !"".equals(model.description())) { return model.description(); } ApiModelProperty prop = a.getAnnotation(ApiModelProperty.class); if (prop != null) { return prop.value(); } return null; }
@Override public Boolean hasRequiredMarker(AnnotatedMember m) { ApiParam apiParam = m.getAnnotation(ApiParam.class); if (apiParam != null) { return apiParam.required(); } ApiModelProperty ann = m.getAnnotation(ApiModelProperty.class); if (ann != null) { return ann.required(); } XmlElement elem = m.getAnnotation(XmlElement.class); if (elem != null) { if (elem.required()) { return true; } } return null; }
ApiParam ann = parameter.getAnnotation(ApiParam.class); property.setRequired(ann.required()); if(!ann.description().isEmpty()) { property.description(ann.defaultValue()); if(!ann.access().isEmpty()) { property.setAccess(ann.defaultValue()); if(!ann.defaultValue().isEmpty()) { property.setDefault(ann.defaultValue()); model.addProperty(ann.value(), property); if (property instanceof RefProperty) { Map<String, Model> subProperty = modelConverters.read(parameter.getParameterizedType());
@JsonCreator public SingleUserBatchOperations( @ApiParam(value = "set_properties", required = false) ObjectNode setProperties, @ApiParam(value = "set_properties_once", required = false) ObjectNode setPropertiesOnce, @ApiParam(value = "increment_properties", required = false) Map<String, Double> incrementProperties, @ApiParam(value = "unset_properties", required = false) List<String> unsetProperties, @ApiParam("time") Long time) { this.setProperties = setProperties; this.setPropertiesOnce = setPropertiesOnce; this.incrementProperties = incrementProperties; this.unsetProperties = unsetProperties; this.time = time; }
@JsonCreator public EmailActionConfig(@ApiParam("column_name") String columnName, @ApiParam("title") String title, @ApiParam("content") String content, @ApiParam("variables") Map<String, String> defaultValues, @ApiParam("rich_text") boolean richText) { this.columnName = columnName; this.title = title; this.content = content; this.defaultValues = defaultValues; this.richText = richText; } }
@JsonCreator private QueryResult( @ApiParam("metadata") List<SchemaField> metadata, @ApiParam("result") List<List<Object>> result, @ApiParam("error") QueryError error, @ApiParam("properties") Map<String, Object> properties) { this.metadata = metadata; this.result = result; this.error = error; this.properties = properties; } public QueryResult(List<SchemaField> metadata, List<List<Object>> result) {
@JsonCreator public Parameter( @ApiParam("type") FieldType type, @ApiParam("placeholder") String placeholder, @ApiParam("description") String description, @ApiParam(value = "value", required = false) Object value) { this.type = type; this.placeholder = placeholder; this.description = description; this.value = value; } }
@JsonCreator public FilterQuery(@ApiParam(value = "filter", required = false) String filter, @ApiParam(value = "event_filters", required = false) List<UserStorage.EventFilter> event_filter, @ApiParam(value = "sorting", required = false) UserStorage.Sorting sorting) { this.filter = filter; this.event_filter = event_filter; this.sorting = sorting; } }
@JsonCreator public UIEventMapper(@ApiParam("name") String name, @ApiParam(value = "image", required = false) String image, @ApiParam(value = "description", required = false) String description, @ApiParam(value = "code", required = false) String code, @ApiParam("parameters") Map<String, Parameter> parameters) { this.name = name; this.image = image; this.description = description; this.script = code; this.parameters = parameters; } }
@JsonCreator public MergeRequest(@ApiParam("id") Object id, @ApiParam("api") User.UserContext api, @ApiParam("anonymous_id") Object anonymousId, @ApiParam("created_at") long createdAt, @ApiParam("merged_at") long mergedAt) { this.id = id; this.api = api; this.anonymousId = anonymousId; this.createdAt = createdAt; this.mergedAt = mergedAt; } }
@JsonCreator public QueryError( @ApiParam("message") String message, @ApiParam(value = "sqlState", required = false) String sqlState, @ApiParam(value = "errorCode", required = false) Integer errorCode, @ApiParam(value = "errorLine", required = false) Integer errorLine, @ApiParam(value = "charPositionInLine", required = false) Integer charPositionInLine) { this.message = message; this.sqlState = sqlState; this.errorCode = errorCode; this.errorLine = errorLine; this.charPositionInLine = charPositionInLine; }
public Event(String project, String collection, EventContext api, List<SchemaField> schema, GenericRecord properties) { this.project = project; this.collection = collection; this.properties = properties; this.schema = schema; this.api = api; }