Class MidpointYAMLGenerator
java.lang.Object
com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.base.GeneratorBase
com.fasterxml.jackson.dataformat.yaml.YAMLGenerator
com.evolveum.midpoint.prism.impl.lex.json.yaml.MidpointYAMLGenerator
- All Implemented Interfaces:
- com.fasterxml.jackson.core.Versioned,- Closeable,- Flushable,- AutoCloseable
public class MidpointYAMLGenerator
extends com.fasterxml.jackson.dataformat.yaml.YAMLGenerator
- 
Nested Class SummaryNested classes/interfaces inherited from class com.fasterxml.jackson.dataformat.yaml.YAMLGeneratorcom.fasterxml.jackson.dataformat.yaml.YAMLGenerator.Feature
- 
Field SummaryFields inherited from class com.fasterxml.jackson.dataformat.yaml.YAMLGenerator_docVersion, _emitter, _formatFeatures, _objectId, _outputOptions, _quotingChecker, _rootValueCount, _streamWriteConstraints, _typeId, _writer, MAX_INT_AS_LONG, MIN_INT_AS_LONG, PLAIN_NUMBER_P, TAG_BINARYFields inherited from class com.fasterxml.jackson.core.base.GeneratorBase_cfgNumbersAsStrings, _closed, _features, _ioContext, _objectCodec, _writeContext, DERIVED_FEATURES_MASK, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRINGFields inherited from class com.fasterxml.jackson.core.JsonGenerator_cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES
- 
Constructor SummaryConstructorsConstructorDescriptionMidpointYAMLGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int jsonFeatures, int yamlFeatures, com.fasterxml.jackson.core.ObjectCodec codec, Writer out, org.yaml.snakeyaml.DumperOptions.Version version) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.yaml.snakeyaml.events.ScalarEvent_scalarEvent(String value, org.yaml.snakeyaml.DumperOptions.ScalarStyle style) voidvoidBrutal hack, as default behavior has lead to the following:- !<http://midpoint.evolveum.com/xml/ns/public/model/scripting-3/SearchExpressionType> !<http://midpoint.evolveum.com/xml/ns/public/model/scripting-3/SearchExpressionType> '@element': "http://midpoint.evolveum.com/xml/ns/public/model/scripting-3#search"(so we need to explicitly reset typeId after writing it)Methods inherited from class com.fasterxml.jackson.dataformat.yaml.YAMLGenerator_emit, _emitEndDocument, _emitStartDocument, _lf, _releaseBuffers, _verifyValueWrite, _writeScalar, buildDumperOptions, canUseSchema, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, close, configure, disable, enable, flush, getFormatFeatures, getOutputBuffered, getOutputTarget, getWriteCapabilities, isEnabled, overrideFormatFeatures, setPrettyPrinter, streamWriteConstraints, useDefaultPrettyPrinter, version, writeBinary, writeBoolean, writeEndArray, writeEndObject, writeFieldId, writeFieldName, writeFieldName, writeNull, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeObjectId, writeObjectRef, writeRaw, writeRaw, writeRaw, writeRaw, writeRawUTF8String, writeRawValue, writeRawValue, writeRawValue, writeStartArray, writeStartObject, writeString, writeString, writeString, writeTypeId, writeUTF8StringMethods inherited from class com.fasterxml.jackson.core.base.GeneratorBase_asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, assignCurrentValue, currentValue, disable, enable, getCodec, getFeatureMask, getOutputContext, ioContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setFeatureMask, writeBinary, writeObject, writeRawValue, writeStartObject, writeTreeMethods inherited from class com.fasterxml.jackson.core.JsonGenerator_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, _writeTypePrefixUsingNative, _writeTypePrefixUsingWrapper, canOmitFields, canWriteBinaryNatively, configure, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, getCharacterEscapes, getCurrentValue, getHighestEscapedChar, getPrettyPrinter, getSchema, isEnabled, setCharacterEscapes, setCurrentValue, setHighestNonEscapedChar, setRootValueSeparator, setSchema, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeNullField, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeOmittedField, writePOJO, writePOJOField, writeRaw, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypePrefix, writeTypeSuffix
- 
Constructor Details- 
MidpointYAMLGeneratorpublic MidpointYAMLGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int jsonFeatures, int yamlFeatures, com.fasterxml.jackson.core.ObjectCodec codec, Writer out, org.yaml.snakeyaml.DumperOptions.Version version) throws IOException - Throws:
- IOException
 
 
- 
- 
Method Details- 
resetTypeIdpublic void resetTypeId()Brutal hack, as default behavior has lead to the following:- !<http://midpoint.evolveum.com/xml/ns/public/model/scripting-3/SearchExpressionType> !<http://midpoint.evolveum.com/xml/ns/public/model/scripting-3/SearchExpressionType> '@element': "http://midpoint.evolveum.com/xml/ns/public/model/scripting-3#search"(so we need to explicitly reset typeId after writing it)
- 
_scalarEventprotected org.yaml.snakeyaml.events.ScalarEvent _scalarEvent(String value, org.yaml.snakeyaml.DumperOptions.ScalarStyle style) - Overrides:
- _scalarEventin class- com.fasterxml.jackson.dataformat.yaml.YAMLGenerator
 
- 
newDocument- Throws:
- IOException
 
 
-