All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.relogiclabs.json.schema.message.ContextDetail Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.12.1
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy