com.fasterxml.jackson.databind.ser.impl

Class WritableObjectId



  • public final class WritableObjectId
    extends Object
    Simple value container used to keep track of Object Ids during serialization.
    • Field Detail

      • generator

        public final com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator
      • idWritten

        protected boolean idWritten
    • Constructor Detail

      • WritableObjectId

        public WritableObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator)
    • Method Detail

      • writeAsId

        public boolean writeAsId(com.fasterxml.jackson.core.JsonGenerator jgen,
                        SerializerProvider provider,
                        ObjectIdWriter w)
                          throws IOException,
                                 com.fasterxml.jackson.core.JsonGenerationException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonGenerationException
      • writeAsField

        public void writeAsField(com.fasterxml.jackson.core.JsonGenerator jgen,
                        SerializerProvider provider,
                        ObjectIdWriter w)
                          throws IOException,
                                 com.fasterxml.jackson.core.JsonGenerationException
        Method called to output Object Id as specified.
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonGenerationException

Copyright © 2014 FasterXML. All Rights Reserved.