com.relogiclabs.json.schema.internal.builder.JNodeBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of relogiclabs-json-schema Show documentation
Show all versions of relogiclabs-json-schema Show documentation
The New JSON Schema prioritizes simplicity, conciseness, and readability, making
it user-friendly and accessible without the need for extensive prior knowledge.
It offers efficient read-write facilities, precise JSON document definition
through various data types and functions, and extensibility to meet modern web
service diverse requirements.
package com.relogiclabs.json.schema.internal.builder;
import com.relogiclabs.json.schema.tree.Context;
import com.relogiclabs.json.schema.type.JNode;
import lombok.Getter;
import lombok.experimental.Accessors;
import java.util.Map;
@Getter
@Accessors(fluent = true)
public abstract class JNodeBuilder> {
private Map relations;
private Context context;
@SuppressWarnings("unchecked")
public T relations(Map relations) {
this.relations = relations;
return (T) this;
}
@SuppressWarnings("unchecked")
public T context(Context context) {
this.context = context;
return (T) this;
}
public abstract JNode build();
}