public class YamlLexicalProcessor extends AbstractJsonLexicalProcessor
LexicalProcessor.RootXNodeHandler
schemaRegistry
Constructor and Description |
---|
YamlLexicalProcessor(SchemaRegistry schemaRegistry) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(File file)
Checks if the processor can read from a given file.
|
boolean |
canRead(String dataString)
Checks if the processor can read from a given string.
|
com.fasterxml.jackson.dataformat.yaml.YAMLGenerator |
createJacksonGenerator(StringWriter out) |
protected MidpointYAMLParser |
createJacksonParser(InputStream stream) |
protected void |
resetInlineTypeIfPossible(com.evolveum.midpoint.prism.lex.json.AbstractJsonLexicalProcessor.JsonSerializationContext ctx) |
protected boolean |
supportsInlineTypes() |
protected QName |
tagToTypeName(Object tag,
com.evolveum.midpoint.prism.lex.json.AbstractJsonLexicalProcessor.JsonParsingContext ctx) |
protected void |
writeInlineType(QName typeName,
com.evolveum.midpoint.prism.lex.json.AbstractJsonLexicalProcessor.JsonSerializationContext ctx) |
getExplicitType, read, readObjects, readObjectsIteratively, write, write, write
public YamlLexicalProcessor(@NotNull SchemaRegistry schemaRegistry)
public boolean canRead(@NotNull File file) throws IOException
LexicalProcessor
IOException
public boolean canRead(@NotNull String dataString)
LexicalProcessor
public com.fasterxml.jackson.dataformat.yaml.YAMLGenerator createJacksonGenerator(StringWriter out) throws SchemaException
createJacksonGenerator
in class AbstractJsonLexicalProcessor
SchemaException
protected MidpointYAMLParser createJacksonParser(InputStream stream) throws SchemaException, IOException
createJacksonParser
in class AbstractJsonLexicalProcessor
SchemaException
IOException
protected QName tagToTypeName(Object tag, com.evolveum.midpoint.prism.lex.json.AbstractJsonLexicalProcessor.JsonParsingContext ctx) throws IOException, SchemaException
tagToTypeName
in class AbstractJsonLexicalProcessor
IOException
SchemaException
protected boolean supportsInlineTypes()
supportsInlineTypes
in class AbstractJsonLexicalProcessor
protected void writeInlineType(QName typeName, com.evolveum.midpoint.prism.lex.json.AbstractJsonLexicalProcessor.JsonSerializationContext ctx) throws IOException
writeInlineType
in class AbstractJsonLexicalProcessor
IOException
protected void resetInlineTypeIfPossible(com.evolveum.midpoint.prism.lex.json.AbstractJsonLexicalProcessor.JsonSerializationContext ctx)
resetInlineTypeIfPossible
in class AbstractJsonLexicalProcessor
Copyright © 2019 Evolveum. All rights reserved.