Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.advantageous.qbit.meta.swagger;
 
 
 public class Parameter {
 
     private final String name;
     private final String in;
     private final String description;
    private final boolean required;
    private final Schema schema;
    private final String type;
    private final boolean allowEmptyValue;
    private final Schema items;
    
Determines the format of the array if type array is used. Possible values are: csv - comma separated values foo,bar. ssv - space separated values foo bar. tsv - tab separated values foo\tbar. pipes - pipe separated values foo|bar. multi - corresponds to multiple parameter instances instead of multiple values for a single instance foo=bar&foo=baz. This is valid only for parameters in "query" or "formData". Default value is csv.
    private final String collectionFormat;
    @SerializedName("default")
    private final String defaultValue;
    /*
    maximum	number	See http://json-schema.org/latest/json-schema-validation.html#anchor17.
exclusiveMaximum	boolean	See http://json-schema.org/latest/json-schema-validation.html#anchor17.
minimum	number	See http://json-schema.org/latest/json-schema-validation.html#anchor21.
exclusiveMinimum	boolean	See http://json-schema.org/latest/json-schema-validation.html#anchor21.
maxLength	integer	See http://json-schema.org/latest/json-schema-validation.html#anchor26.
minLength	integer	See http://json-schema.org/latest/json-schema-validation.html#anchor29.
pattern	string	See http://json-schema.org/latest/json-schema-validation.html#anchor33.
maxItems	integer	See http://json-schema.org/latest/json-schema-validation.html#anchor42.
minItems	integer	See http://json-schema.org/latest/json-schema-validation.html#anchor45.
uniqueItems	boolean	See http://json-schema.org/latest/json-schema-validation.html#anchor49.
enum	[*]	See http://json-schema.org/latest/json-schema-validation.html#anchor76.
multipleOf	number	See http://json-schema.org/latest/json-schema-validation.html#anchor14.
     */
    public Parameter(String nameString inString descriptionboolean requiredSchema schemaString type,
                     boolean allowEmptyValueSchema itemsString collectionFormatString defaultValue) {
        this. = name;
        this. = in;
        this. = description;
        this. = required;
        this. = schema;
        this. = type;
        this. = allowEmptyValue;
        this. = items;
        this. = collectionFormat;
        this. = defaultValue;
    }
    public String getName() {
        return ;
    }
    public String getIn() {
        return ;
    }
    public String getDescription() {
        return ;
    }
    public boolean isRequired() {
        return ;
    }
    public Schema getSchema() {
        return ;
    }
    public String getType() {
        return ;
    }
    public boolean isAllowEmptyValue() {
        return ;
    }
    public Schema getItems() {
        return ;
    }
    public String getCollectionFormat() {
        return ;
    }
    public String getDefaultValue() {
        return ;
    }
New to GrepCode? Check out our FAQ X