Package com.networknt.schema
Class SchemaLocation.Builder
java.lang.Object
com.networknt.schema.SchemaLocation.Builder
- Enclosing class:
SchemaLocation
Builder for building
SchemaLocation
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SchemaLocation.Builder
absoluteIri
(AbsoluteIri absoluteIri) Sets the canonical absolute IRI of the schema object.protected SchemaLocation.Builder
absoluteIri
(String absoluteIri) Sets the canonical absolute IRI of the schema object.build()
Builds aSchemaLocation
.protected SchemaLocation.Builder
fragment
(JsonNodePath fragment) Sets the fragment.protected SchemaLocation.Builder
Sets the fragment.
-
Field Details
-
absoluteIri
-
fragment
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
absoluteIri
Sets the canonical absolute IRI of the schema object.This is a unique identifier indicated by the $id property or id property in Draft 4 and earlier. This does not have to be network accessible.
- Parameters:
absoluteIri
- the canonical IRI of the schema object- Returns:
- the builder
-
absoluteIri
Sets the canonical absolute IRI of the schema object.This is a unique identifier indicated by the $id property or id property in Draft 4 and earlier. This does not have to be network accessible.
- Parameters:
absoluteIri
- the canonical IRI of the schema object- Returns:
- the builder
-
fragment
Sets the fragment.- Parameters:
fragment
- the fragment- Returns:
- the builder
-
fragment
Sets the fragment.- Parameters:
fragment
- the fragment- Returns:
- the builder
-
build
Builds aSchemaLocation
.- Returns:
- the schema location
-