Class NullLexicalProcessor
- java.lang.Object
 - 
- com.evolveum.midpoint.prism.impl.lex.json.NullLexicalProcessor
 
 
- 
- All Implemented Interfaces:
 LexicalProcessor<XNodeImpl>
public class NullLexicalProcessor extends Object implements LexicalProcessor<XNodeImpl>
"Null" processor that reads XNodes into XNodes and writes XNodes as XNodes. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.impl.lex.LexicalProcessor
LexicalProcessor.RootXNodeHandler 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NullLexicalProcessor() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRead(@NotNull File file)Checks if the processor can read from a given file.booleancanRead(@NotNull String dataString)Checks 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 XNodeImplwrite(@NotNull RootXNode xnode, @Nullable SerializationContext serializationContext)Serializes a root node into XNode tree.@NotNull XNodeImplwrite(@NotNull XNode xnode, @NotNull QName rootElementName, @Nullable SerializationContext serializationContext)Serializes a non-root node into XNode tree.@NotNull XNodeImplwrite(@NotNull List<RootXNodeImpl> roots, @Nullable SerializationContext context)TODO Not supported for NullLexicalProcessor, though. 
 - 
 
- 
- 
Method Detail
- 
read
@NotNull public @NotNull RootXNodeImpl read(@NotNull @NotNull ParserSource source, @NotNull @NotNull ParsingContext parsingContext)
- Specified by:
 readin interfaceLexicalProcessor<XNodeImpl>
 
- 
readObjects
@NotNull public @NotNull List<RootXNodeImpl> readObjects(@NotNull @NotNull ParserSource source, @NotNull @NotNull ParsingContext parsingContext)
- Specified by:
 readObjectsin interfaceLexicalProcessor<XNodeImpl>
 
- 
readObjectsIteratively
public void readObjectsIteratively(@NotNull @NotNull ParserSource source, @NotNull @NotNull ParsingContext parsingContext, LexicalProcessor.RootXNodeHandler handler)- Specified by:
 readObjectsIterativelyin interfaceLexicalProcessor<XNodeImpl>
 
- 
canRead
public boolean canRead(@NotNull @NotNull File file)Description 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 interfaceLexicalProcessor<XNodeImpl>
 
- 
canRead
public boolean canRead(@NotNull @NotNull String dataString)Description 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 interfaceLexicalProcessor<XNodeImpl>
 
- 
write
@NotNull public @NotNull XNodeImpl 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 interfaceLexicalProcessor<XNodeImpl>- Throws:
 SchemaException
 
- 
write
@NotNull public @NotNull XNodeImpl 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 interfaceLexicalProcessor<XNodeImpl>- Throws:
 SchemaException
 
- 
write
@NotNull public @NotNull XNodeImpl 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 interfaceLexicalProcessor<XNodeImpl>- Throws:
 SchemaException
 
 - 
 
 -