Package com.noleme.vault.parser.module
Class VariableRegistrationModule
- java.lang.Object
-
- com.noleme.vault.parser.module.VariableRegistrationModule
-
- All Implemented Interfaces:
VaultModule
public class VariableRegistrationModule extends Object implements VaultModule
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/11/24
-
-
Constructor Summary
Constructors Constructor Description VariableRegistrationModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<Object>
arrayAsList(com.fasterxml.jackson.databind.node.ArrayNode node)
String
identifier()
static Map<String,Object>
objectAsMap(com.fasterxml.jackson.databind.node.ObjectNode node)
void
process(com.fasterxml.jackson.databind.node.ObjectNode json, Definitions definitions)
static Object
value(com.fasterxml.jackson.databind.JsonNode node)
FIXME: the "long" vs "int" and "double" vs "float" output question is still open FIXME: it is worth noting that this method was implemented after the first (weird?)static Object
valueOrContainer(com.fasterxml.jackson.databind.JsonNode node)
-
-
-
Method Detail
-
identifier
public String identifier()
- Specified by:
identifier
in interfaceVaultModule
- Returns:
-
process
public void process(com.fasterxml.jackson.databind.node.ObjectNode json, Definitions definitions) throws VaultParserException
- Specified by:
process
in interfaceVaultModule
- Throws:
VaultParserException
-
valueOrContainer
public static Object valueOrContainer(com.fasterxml.jackson.databind.JsonNode node)
- Parameters:
node
-- Returns:
-
value
public static Object value(com.fasterxml.jackson.databind.JsonNode node)
FIXME: the "long" vs "int" and "double" vs "float" output question is still open FIXME: it is worth noting that this method was implemented after the first (weird?) design decision to always interpret "int" and "double" values out of JSON files and this method tried to remain BC-break free.- Parameters:
node
-- Returns:
-
arrayAsList
public static List<Object> arrayAsList(com.fasterxml.jackson.databind.node.ArrayNode node)
- Parameters:
node
-- Returns:
-
-