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

de.larssh.json.dom.values.JsonDomValue Maven / Gradle / Ivy

package de.larssh.json.dom.values;

import de.larssh.json.dom.JsonDomType;
import de.larssh.json.dom.children.JsonDomChildren;

/**
 * Generic wrapper to keep JSON implementation specifics off of JSON DOM.
 *
 * @param  implementation specific JSON element type
 */
public interface JsonDomValue {
	/**
	 * Returns a map of child node names and their values.
	 *
	 * 

* For JSON objects and arrays a map of keys to wrapped values should be * returned. For other JSON elements an empty map should be returned. * * @return map of child node names and their value. */ JsonDomChildren> getChildren(); /** * Returns the implementation specific JSON element. * * @return implementation specific JSON element */ T getJsonElement(); /** * Returns the text value. * *

* For JSON strings this is the string value without quotes. For other JSON * elements it is their JSON representation. * * @return text value */ String getTextValue(); /** * Returns the JSON elements value type. * * @return JSON data type */ JsonDomType getType(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy