Package org.everit.json.schema
Class ConditionalSchema
- java.lang.Object
-
- org.everit.json.schema.Schema
-
- org.everit.json.schema.ConditionalSchema
-
public class ConditionalSchema extends Schema
Validator forif
,then
,else
schemas.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConditionalSchema.Builder
Builder class forConditionalSchema
.
-
Field Summary
-
Fields inherited from class org.everit.json.schema.Schema
schemaLocation
-
-
Constructor Summary
Constructors Constructor Description ConditionalSchema(ConditionalSchema.Builder builder)
-
Method Summary
Modifier and Type Method Description static ConditionalSchema.Builder
builder()
Optional<Schema>
getElseSchema()
Optional<Schema>
getIfSchema()
Optional<Schema>
getThenSchema()
-
Methods inherited from class org.everit.json.schema.Schema
canEqual, definesProperty, describeTo, equals, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, hashCode, isNullable, isReadOnly, isWriteOnly, toString, validate
-
-
-
-
Constructor Detail
-
ConditionalSchema
public ConditionalSchema(ConditionalSchema.Builder builder)
-
-