@Override protected FloatProperty create() { return new FloatProperty(); }
if (Objects.equal(typeName, "float")) { _matched=true; _switchResult = new FloatProperty();
} else if (float.class == objectClass || Float.class == objectClass) { swaggerProperty = new FloatProperty(); } else if (double.class == objectClass || Double.class == objectClass) {
} else if (float.class == objectClass || Float.class == objectClass) { swaggerProperty = new FloatProperty(); } else if (double.class == objectClass || Double.class == objectClass) {
FloatProperty property = new FloatProperty(); property.setRequired(annotation.required()); return property
private static Map<String, Property> initProperties() { Map<String, Property> properties = new LinkedHashMap<>(); properties.put(PROPERTY_ONE_NAME, new StringProperty() .example(PROPERTY_ONE_EXAMPLE) .required(true) .description(PROPERTY_ONE_DESCRIPTION)); properties.put(PROPERTY_TWO_NAME, new StringProperty() .example(PROPERTY_TWO_EXAMPLE) .required(true) .description(PROPERTY_TWO_DESCRIPTION)); IntegerProperty integerProp = new IntegerProperty(); LongProperty longProp = new LongProperty(); BooleanProperty booleanProp = new BooleanProperty(); integerProp.setExample(""); longProp.setExample(""); booleanProp.setExample(""); properties.put(ARRAY_PROP_NAME, new ArrayProperty().example("").description("")); properties.put(DOUBLE_PROP_NAME, new DoubleProperty().example("").description("")); properties.put(FLOAT_PROP_NAME, new FloatProperty().example("").description("")); properties.put(INTEGER_PROP_NAME, integerProp.description("")); properties.put(LONG_PROP_NAME, longProp.description("")); properties.put(BOOLEAN_PROP_NAME, booleanProp.description("")); properties.put(OBJECT_PROP_NAME, new ObjectProperty().example("").description("")); return properties; } }
return fillProperty(new FloatProperty(), mapping);
public Model getGETModel(Representation rep) { ModelImpl modelImpl = (ModelImpl) super.getGETModel(rep); if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { modelImpl .property("uuid", new StringProperty()) .property("display", new StringProperty()) .property("fieldNumber", new IntegerProperty()) .property("fieldPart", new StringProperty()) .property("pageNumber", new IntegerProperty()) .property("minOccurs", new IntegerProperty()) .property("maxOccurs", new IntegerProperty()) .property("required", new BooleanProperty()._default(false)) .property("sortWeight", new FloatProperty()) .property("retired", new BooleanProperty()); //FIXME } if (rep instanceof DefaultRepresentation) { modelImpl .property("parent", new RefProperty("#/definitions/FormFormfieldGetRef")) .property("form", new RefProperty("#/definitions/FormGetRef")) .property("field", new RefProperty("#/definitions/FieldGetRef")); } else if (rep instanceof FullRepresentation) { modelImpl .property("parent", new RefProperty("#/definitions/FormFormfieldGet")) .property("form", new RefProperty("#/definitions/FormGet")) .property("field", new RefProperty("#/definitions/FieldGet")); } return modelImpl; }