public class JsonRuleParser extends Object
Constructor and Description |
---|
JsonRuleParser() |
Modifier and Type | Method and Description |
---|---|
Double |
extractDoubleKeyword(com.fasterxml.jackson.databind.JsonNode node,
String keyword,
boolean isRequired) |
Integer |
extractIntKeyword(com.fasterxml.jackson.databind.JsonNode node,
String keyword,
boolean isRequired) |
String |
extractStringKeyword(com.fasterxml.jackson.databind.JsonNode node,
String keyword,
boolean isRequired) |
String |
getAllErrors() |
String |
getError() |
List<String> |
getErrors() |
AtomCondition |
parseAtomCondition(com.fasterxml.jackson.databind.JsonNode node) |
EnergyCorrection |
parseEnergyCorrection(com.fasterxml.jackson.databind.JsonNode node) |
EnergyRule |
parseEnergyRule(com.fasterxml.jackson.databind.JsonNode node) |
List<EnergyRule> |
readEnergyRuleSet(com.fasterxml.jackson.databind.JsonNode node) |
static List<EnergyRule> |
readRuleSetFromJSON(String jsonFileName) |
static String |
toJSONString(EnergyCorrection eCorr,
String offset) |
static String |
toJSONString(EnergyRule eRule) |
static String |
toJSONString(EnergyRule eRule,
String offset) |
public String getError()
public String getAllErrors()
public EnergyRule parseEnergyRule(com.fasterxml.jackson.databind.JsonNode node)
public EnergyCorrection parseEnergyCorrection(com.fasterxml.jackson.databind.JsonNode node)
public AtomCondition parseAtomCondition(com.fasterxml.jackson.databind.JsonNode node)
public List<EnergyRule> readEnergyRuleSet(com.fasterxml.jackson.databind.JsonNode node)
public static List<EnergyRule> readRuleSetFromJSON(String jsonFileName) throws Exception
Exception
public static String toJSONString(EnergyRule eRule)
public static String toJSONString(EnergyRule eRule, String offset)
public static String toJSONString(EnergyCorrection eCorr, String offset)
public String extractStringKeyword(com.fasterxml.jackson.databind.JsonNode node, String keyword, boolean isRequired)
public Double extractDoubleKeyword(com.fasterxml.jackson.databind.JsonNode node, String keyword, boolean isRequired)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.