Constructor. @param builder the builder containing the optional title, description and id attributes of the schema
(Builder<?> builder)
| 128 | * the builder containing the optional title, description and id attributes of the schema |
| 129 | */ |
| 130 | protected Schema(Builder<?> builder) { |
| 131 | this.title = builder.title; |
| 132 | this.description = builder.description; |
| 133 | this.id = builder.id; |
| 134 | this.schemaLocation = builder.schemaLocation == null ? null : builder.schemaLocation.toString(); |
| 135 | this.location = builder.schemaLocation; |
| 136 | this.defaultValue = builder.defaultValue; |
| 137 | this.nullable = builder.nullable; |
| 138 | this.readOnly = builder.readOnly; |
| 139 | this.writeOnly = builder.writeOnly; |
| 140 | this.unprocessedProperties = new HashMap<>(builder.unprocessedProperties); |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Performs the schema validation. |