Package org.everit.json.schema
Class ConditionalSchema.Builder
- java.lang.Object
-
- org.everit.json.schema.Schema.Builder<ConditionalSchema>
-
- org.everit.json.schema.ConditionalSchema.Builder
-
- Enclosing class:
- ConditionalSchema
public static class ConditionalSchema.Builder extends Schema.Builder<ConditionalSchema>
Builder class forConditionalSchema
.
-
-
Field Summary
-
Fields inherited from class org.everit.json.schema.Schema.Builder
unprocessedProperties
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ConditionalSchema
build()
ConditionalSchema.Builder
elseSchema(Schema elseSchema)
ConditionalSchema.Builder
ifSchema(Schema ifSchema)
ConditionalSchema.Builder
thenSchema(Schema thenSchema)
-
Methods inherited from class org.everit.json.schema.Schema.Builder
defaultValue, description, id, nullable, readOnly, schemaLocation, schemaLocation, title, unprocessedProperties, writeOnly
-
-
-
-
Method Detail
-
ifSchema
public ConditionalSchema.Builder ifSchema(Schema ifSchema)
-
thenSchema
public ConditionalSchema.Builder thenSchema(Schema thenSchema)
-
elseSchema
public ConditionalSchema.Builder elseSchema(Schema elseSchema)
-
build
public ConditionalSchema build()
- Specified by:
build
in classSchema.Builder<ConditionalSchema>
-
-