Class DelegatingLexicalProcessor
java.lang.Object
com.evolveum.midpoint.prism.impl.lex.json.DelegatingLexicalProcessor
- All Implemented Interfaces:
- LexicalProcessor<String>
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.impl.lex.LexicalProcessorLexicalProcessor.RootXNodeHandler
- 
Constructor SummaryConstructorsConstructorDescriptionDelegatingLexicalProcessor(@NotNull AbstractReader reader, @NotNull AbstractWriter writer) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanChecks if the processor can read from a given file.booleanChecks if the processor can read from a given string.@NotNull RootXNodeImplread(@NotNull ParserSource source, @NotNull ParsingContext parsingContext) @NotNull List<RootXNodeImpl>readObjects(@NotNull ParserSource source, @NotNull ParsingContext parsingContext) voidreadObjectsIteratively(@NotNull ParserSource source, @NotNull ParsingContext parsingContext, LexicalProcessor.RootXNodeHandler handler) @NotNull Stringwrite(@NotNull RootXNode xnode, @Nullable SerializationContext serializationContext) Serializes a root node into XNode tree.@NotNull Stringwrite(@NotNull XNode xnode, @NotNull QName rootElementName, @Nullable SerializationContext serializationContext) Serializes a non-root node into XNode tree.@NotNull Stringwrite(@NotNull List<RootXNodeImpl> roots, @Nullable SerializationContext context) TODO Not supported for NullLexicalProcessor, though.
- 
Constructor Details- 
DelegatingLexicalProcessorpublic DelegatingLexicalProcessor(@NotNull @NotNull AbstractReader reader, @NotNull @NotNull AbstractWriter writer) 
 
- 
- 
Method Details- 
read@NotNull public @NotNull RootXNodeImpl read(@NotNull @NotNull ParserSource source, @NotNull @NotNull ParsingContext parsingContext) throws SchemaException, IOException - Specified by:
- readin interface- LexicalProcessor<String>
- Throws:
- SchemaException
- IOException
 
- 
readObjects@NotNull public @NotNull List<RootXNodeImpl> readObjects(@NotNull @NotNull ParserSource source, @NotNull @NotNull ParsingContext parsingContext) throws SchemaException, IOException - Specified by:
- readObjectsin interface- LexicalProcessor<String>
- Throws:
- SchemaException
- IOException
 
- 
readObjectsIterativelypublic void readObjectsIteratively(@NotNull @NotNull ParserSource source, @NotNull @NotNull ParsingContext parsingContext, LexicalProcessor.RootXNodeHandler handler) throws SchemaException, IOException - Specified by:
- readObjectsIterativelyin interface- LexicalProcessor<String>
- Throws:
- SchemaException
- IOException
 
- 
canReadDescription copied from interface:LexicalProcessorChecks if the processor can read from a given file. (Guessed by file extension, for now.) Used for autodetection of language.- Specified by:
- canReadin interface- LexicalProcessor<String>
- Throws:
- IOException
 
- 
canReadDescription copied from interface:LexicalProcessorChecks if the processor can read from a given string. Note this is only an approximative information (for now). Used for autodetection of language.- Specified by:
- canReadin interface- LexicalProcessor<String>
 
- 
write@NotNull public @NotNull String write(@NotNull @NotNull RootXNode xnode, @Nullable @Nullable SerializationContext serializationContext) throws SchemaException Description copied from interface:LexicalProcessorSerializes a root node into XNode tree.- Specified by:
- writein interface- LexicalProcessor<String>
- Throws:
- SchemaException
 
- 
write@NotNull public @NotNull String write(@NotNull @NotNull XNode xnode, @NotNull @NotNull QName rootElementName, @Nullable @Nullable SerializationContext serializationContext) throws SchemaException Description copied from interface:LexicalProcessorSerializes a non-root node into XNode tree. So, xnode SHOULD NOT be a root node (at least for now). TODO consider removing - replacing by the previous form.- Specified by:
- writein interface- LexicalProcessor<String>
- Throws:
- SchemaException
 
- 
write@NotNull public @NotNull String write(@NotNull @NotNull List<RootXNodeImpl> roots, @Nullable @Nullable SerializationContext context) throws SchemaException Description copied from interface:LexicalProcessorTODO Not supported for NullLexicalProcessor, though.- Specified by:
- writein interface- LexicalProcessor<String>
- Throws:
- SchemaException
 
 
-