Class ScopedImportExtractor
- java.lang.Object
-
- com.noleme.vault.parser.module.service.ScopedImportExtractor
-
- All Implemented Interfaces:
ServiceDefinitionExtractor
public class ScopedImportExtractor extends Object implements ServiceDefinitionExtractor
- Author:
- Pierre LECERF ([email protected]) Created on 23/05/2021
-
-
Constructor Summary
Constructors Constructor Description ScopedImportExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(com.fasterxml.jackson.databind.node.ObjectNode json)
ServiceDefinition
extract(com.fasterxml.jackson.databind.node.ObjectNode json, Definitions definitions)
-
-
-
Method Detail
-
accepts
public boolean accepts(com.fasterxml.jackson.databind.node.ObjectNode json)
- Specified by:
accepts
in interfaceServiceDefinitionExtractor
- Returns:
- true if the extractor can handle this definition, false otherwise
-
extract
public ServiceDefinition extract(com.fasterxml.jackson.databind.node.ObjectNode json, Definitions definitions) throws VaultParserException
- Specified by:
extract
in interfaceServiceDefinitionExtractor
- Returns:
- Throws:
VaultParserException
-
-