public List<ValidationResult> validate(MappingNode root, String resourceLocation) { NodeVisitor nodeVisitor = new NodeVisitor(yamlValidator, resourceLoader, tagResolvers); yamlValidator.getContextPath().pushRoot(resourceLocation); errorMessage.addAll(preValidation(root)); nodeVisitor.visitDocument(root); return errorMessage; }
public List<ValidationResult> validate(MappingNode root, String resourceLocation) { NodeVisitor nodeVisitor = new NodeVisitor(yamlValidator, resourceLoader, tagResolvers); yamlValidator.getContextPath().pushRoot(resourceLocation); errorMessage.addAll(preValidation(root)); nodeVisitor.visitDocument(root); return errorMessage; }
public T build(Reader content, String resourceLocation) { try { Yaml yamlParser = new Yaml(); NodeVisitor nodeVisitor = new NodeVisitor(this, resourceLoader, tagResolvers); rootNode = (MappingNode) yamlParser.compose(content); contextPath.pushRoot(resourceLocation); preBuildProcess(); nodeVisitor.visitDocument(rootNode); postBuildProcess(); return documentObject; } finally { IOUtils.closeQuietly(content); } }
public T build(Reader content, String resourceLocation) { if (content == null) { throw new ResourceNotFoundException(resourceLocation); } try { Yaml yamlParser = new Yaml(); NodeVisitor nodeVisitor = new NodeVisitor(this, resourceLoader, tagResolvers); rootNode = (MappingNode) yamlParser.compose(content); contextPath.pushRoot(resourceLocation); preBuildProcess(); nodeVisitor.visitDocument(rootNode); postBuildProcess(); return documentObject; } finally { IOUtils.closeQuietly(content); } }
nodeVisitor.visitDocument(rootNode);
nodeVisitor.visitDocument(rootNode);