Class JsonLexicalProcessor
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor
-
- com.evolveum.midpoint.prism.impl.lex.json.JsonLexicalProcessor
-
- All Implemented Interfaces:
LexicalProcessor<String>
public class JsonLexicalProcessor extends AbstractJsonLexicalProcessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.impl.lex.LexicalProcessor
LexicalProcessor.RootXNodeHandler
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor
schemaRegistry
-
-
Constructor Summary
Constructors Constructor Description JsonLexicalProcessor(SchemaRegistry schemaRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.core.JsonGenerator
createJacksonGenerator(StringWriter out)
protected com.fasterxml.jackson.core.JsonParser
createJacksonParser(InputStream stream)
protected boolean
supportsInlineTypes()
protected QName
tagToTypeName(Object tid, com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor.JsonParsingContext ctx)
protected void
writeInlineType(QName typeName, com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor.JsonSerializationContext ctx)
-
Methods inherited from class com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor
getExplicitType, read, readObjects, readObjectsIteratively, resetInlineTypeIfPossible, write, write, write
-
-
-
-
Constructor Detail
-
JsonLexicalProcessor
public JsonLexicalProcessor(@NotNull SchemaRegistry schemaRegistry)
-
-
Method Detail
-
canRead
public boolean canRead(@NotNull File file) throws IOException
Description copied from interface:LexicalProcessor
Checks if the processor can read from a given file. (Guessed by file extension, for now.) Used for autodetection of language.- Throws:
IOException
-
canRead
public boolean canRead(@NotNull String dataString)
Description copied from interface:LexicalProcessor
Checks if the processor can read from a given string. Note this is only an approximative information (for now). Used for autodetection of language.
-
createJacksonParser
protected com.fasterxml.jackson.core.JsonParser createJacksonParser(InputStream stream) throws SchemaException, IOException
- Specified by:
createJacksonParser
in classAbstractJsonLexicalProcessor
- Throws:
SchemaException
IOException
-
createJacksonGenerator
public com.fasterxml.jackson.core.JsonGenerator createJacksonGenerator(StringWriter out) throws SchemaException
- Specified by:
createJacksonGenerator
in classAbstractJsonLexicalProcessor
- Throws:
SchemaException
-
tagToTypeName
protected QName tagToTypeName(Object tid, com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor.JsonParsingContext ctx)
- Specified by:
tagToTypeName
in classAbstractJsonLexicalProcessor
-
supportsInlineTypes
protected boolean supportsInlineTypes()
- Specified by:
supportsInlineTypes
in classAbstractJsonLexicalProcessor
-
writeInlineType
protected void writeInlineType(QName typeName, com.evolveum.midpoint.prism.impl.lex.json.AbstractJsonLexicalProcessor.JsonSerializationContext ctx) throws IOException
- Specified by:
writeInlineType
in classAbstractJsonLexicalProcessor
- Throws:
IOException
-
-