Class TypeDefinitionYamlDocument


  • public class TypeDefinitionYamlDocument
    extends java.lang.Object
    Loads type definitions in Yaml and exposes them in the same format as SyntheticXmlDocument to be picked up by the TypeSystemBootstrapper.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.fasterxml.jackson.databind.ObjectMapper YAML_PARSER  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<TypeSpecification> getTypes()  
      static TypeDefinitionYamlDocument read​(com.xebialabs.deployit.plugin.api.reflect.IDescriptorRegistry descriptorRegistry, java.lang.String yamlContent)  
      static TypeDefinitionYamlDocument read​(com.xebialabs.deployit.plugin.api.reflect.IDescriptorRegistry descriptorRegistry, java.net.URL typeYaml)  
      static java.util.Set<com.networknt.schema.ValidationMessage> validateYaml​(java.lang.String file)  
      static java.util.Set<com.networknt.schema.ValidationMessage> validateYaml​(java.net.URL yaml)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • YAML_PARSER

        public static final com.fasterxml.jackson.databind.ObjectMapper YAML_PARSER
    • Method Detail

      • read

        public static TypeDefinitionYamlDocument read​(com.xebialabs.deployit.plugin.api.reflect.IDescriptorRegistry descriptorRegistry,
                                                      java.net.URL typeYaml)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static TypeDefinitionYamlDocument read​(com.xebialabs.deployit.plugin.api.reflect.IDescriptorRegistry descriptorRegistry,
                                                      java.lang.String yamlContent)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • validateYaml

        public static java.util.Set<com.networknt.schema.ValidationMessage> validateYaml​(java.lang.String file)
                                                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • validateYaml

        public static java.util.Set<com.networknt.schema.ValidationMessage> validateYaml​(java.net.URL yaml)
                                                                                  throws java.io.IOException
        Throws:
        java.io.IOException