com.relogiclabs.json.schema.message.ContextDetail 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.message;
import com.relogiclabs.json.schema.tree.Context;
import com.relogiclabs.json.schema.tree.Location;
import com.relogiclabs.json.schema.type.JNode;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public abstract class ContextDetail {
private Context context;
private String message;
public ContextDetail(JNode node, String message) {
this.context = node.getContext();
this.message = message;
}
public Location getLocation() {
return context.getLocation();
}
}