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

io.continual.util.data.exprEval.JsonDataSource Maven / Gradle / Ivy

There is a newer version: 0.3.14
Show newest version
package io.continual.util.data.exprEval;

import org.json.JSONObject;

import io.continual.util.data.json.JsonEval;

public class JsonDataSource implements ExprDataSource 
{
	public JsonDataSource ( JSONObject data )
	{
		fData = data;
	}

	@Override
	public Object eval ( String label )
	{
		return fData != null ?
			JsonEval.eval ( fData, label ) :
			null
		;
	}

	private final JSONObject fData;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy