switch (attr) { case "description": _switchResult = prop.getDescription(); break; case "example": _switchResult = prop.getExample(); break; case "format": _switchResult = prop.getFormat(); break; case "name": _switchResult = prop.getName(); break; case "position": _switchResult = prop.getPosition(); break; case "readOnly": _switchResult = prop.getReadOnly(); break; case "required": _switchResult = Boolean.valueOf(prop.getRequired()); break; case "title": _switchResult = prop.getTitle(); break; case "type": _switchResult = prop.getType(); break; case "xml":
public Property description(String description) { this.setDescription(description); return this; }
@Override public void setExample(String example) { this.setExample((Object) example); }
if (resolved.getFormat() == null) { resolved.setFormat(PropertyId.FORMAT.<String>findValue(args)); resolved.setAllowEmptyValue(value); resolved.setTitle(value); resolved.setDescription(value); resolved.setExample(value); resolved.setVendorExtensionMap(value);
protected AbstractProperty fillProperty(AbstractProperty property, Framework.Mapping<?> mapping) { property.setDescription(attach(mapping).desc()); property.setFormat(format(mapping)); property.setRequired(required(mapping)); property.setExample(attach(mapping).example()); if (property instanceof AbstractNumericProperty) { AbstractNumericProperty numericProperty = (AbstractNumericProperty) property; numericProperty.setMaximum(maximum(mapping)); numericProperty.setExclusiveMaximum(exclusiveMaximum(mapping)); numericProperty.setMinimum(minimum(mapping)); numericProperty.setExclusiveMinimum(exclusiveMinimum(mapping)); } if (property instanceof StringProperty) { StringProperty stringProperty = (StringProperty) property; stringProperty.setPattern(pattern(mapping)); stringProperty.setEnum(enums(mapping)); stringProperty.setMaxLength(maxLength(mapping)); stringProperty.setMinLength(minLength(mapping)); } return property; }
@Override public boolean equals(Object o) { if (!(o instanceof ComposedProperty)) { return false; } if (!super.equals(o)) { return false; } return Objects.equals(allOf, ((ComposedProperty) o).allOf); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; MapProperty that = (MapProperty) o; if (property != null ? !property.equals(that.property) : that.property != null) return false; if (minProperties != null ? !minProperties.equals(that.minProperties) : that.minProperties != null) return false; return maxProperties != null ? maxProperties.equals(that.maxProperties) : that.maxProperties == null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BooleanProperty)) { return false; } if (!super.equals(o)) { return false; } BooleanProperty that = (BooleanProperty) o; if (_default != null ? !_default.equals(that._default) : that._default != null) { return false; } return _enum != null ? _enum.equals(that._enum) : that._enum == null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ArrayProperty)) { return false; } if (!super.equals(o)) { return false; } ArrayProperty that = (ArrayProperty) o; if (uniqueItems != null ? !uniqueItems.equals(that.uniqueItems) : that.uniqueItems != null) { return false; } if (items != null ? !items.equals(that.items) : that.items != null) { return false; } if (maxItems != null ? !maxItems.equals(that.maxItems) : that.maxItems != null) { return false; } return minItems != null ? minItems.equals(that.minItems) : that.minItems == null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AbstractNumericProperty)) { return false; } if (!super.equals(o)) { return false; } AbstractNumericProperty that = (AbstractNumericProperty) o; if (minimum != null ? !minimum.equals(that.minimum) : that.minimum != null) { return false; } if (maximum != null ? !maximum.equals(that.maximum) : that.maximum != null) { return false; } if (multipleOf != null ? !multipleOf.equals(that.multipleOf) : that.multipleOf != null) { return false; } if (exclusiveMinimum != null ? !exclusiveMinimum.equals(that.exclusiveMinimum) : that.exclusiveMinimum != null) { return false; } return exclusiveMaximum != null ? exclusiveMaximum.equals(that.exclusiveMaximum) : that.exclusiveMaximum == null; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (!(obj instanceof RefProperty)) { return false; } RefProperty other = (RefProperty) obj; if (genericRef == null) { if (other.genericRef != null) { return false; } } else if (!genericRef.equals(other.genericRef)) { return false; } return true; } }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false;
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false;
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false;
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false;