Package org.everit.json.schema
Class ReferenceSchema.Builder
- java.lang.Object
-
- org.everit.json.schema.Schema.Builder<ReferenceSchema>
-
- org.everit.json.schema.ReferenceSchema.Builder
-
- Enclosing class:
- ReferenceSchema
public static class ReferenceSchema.Builder extends Schema.Builder<ReferenceSchema>
Builder class forReferenceSchema
.
-
-
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 ReferenceSchema
build()
This method caches its result, so multiple invocations will return referentially the sameReferenceSchema
instance.ReferenceSchema.Builder
copy()
ReferenceSchema.Builder
description(String description)
ReferenceSchema.Builder
refValue(String refValue)
ReferenceSchema.Builder
schemaLocation(SchemaLocation location)
ReferenceSchema.Builder
title(String title)
ReferenceSchema.Builder
unprocessedProperties(Map<String,Object> unprocessedProperties)
-
Methods inherited from class org.everit.json.schema.Schema.Builder
defaultValue, id, nullable, readOnly, schemaLocation, writeOnly
-
-
-
-
Method Detail
-
build
public ReferenceSchema build()
This method caches its result, so multiple invocations will return referentially the sameReferenceSchema
instance.- Specified by:
build
in classSchema.Builder<ReferenceSchema>
-
refValue
public ReferenceSchema.Builder refValue(String refValue)
-
unprocessedProperties
public ReferenceSchema.Builder unprocessedProperties(Map<String,Object> unprocessedProperties)
- Overrides:
unprocessedProperties
in classSchema.Builder<ReferenceSchema>
-
title
public ReferenceSchema.Builder title(String title)
- Overrides:
title
in classSchema.Builder<ReferenceSchema>
-
description
public ReferenceSchema.Builder description(String description)
- Overrides:
description
in classSchema.Builder<ReferenceSchema>
-
schemaLocation
public ReferenceSchema.Builder schemaLocation(SchemaLocation location)
- Overrides:
schemaLocation
in classSchema.Builder<ReferenceSchema>
-
copy
public ReferenceSchema.Builder copy()
-
-