Class TypeDefinitionYamlDocument
- java.lang.Object
-
- com.xebialabs.xlplatform.synthetic.yaml.TypeDefinitionYamlDocument
-
public class TypeDefinitionYamlDocument extends java.lang.ObjectLoads type definitions in Yaml and exposes them in the same format asSyntheticXmlDocumentto be picked up by theTypeSystemBootstrapper.
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectMapperYAML_PARSER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TypeSpecification>getTypes()static TypeDefinitionYamlDocumentread(java.lang.String yamlContent)static TypeDefinitionYamlDocumentread(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)
-
-
-
Method Detail
-
getTypes
public java.util.List<TypeSpecification> getTypes()
-
read
public static TypeDefinitionYamlDocument read(java.net.URL typeYaml) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public static TypeDefinitionYamlDocument read(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
-
-