/** * Method called create an instance that handles details of unwrapping * contained value. * * @since 1.9 */ public BeanPropertyWriter unwrappingWriter() { return new UnwrappingBeanPropertyWriter(this); }
@Override public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { if (getClass() != UnwrappingBeanPropertyWriter.class) { throw new IllegalStateException("UnwrappingBeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } // better try to create unwrapping instance if (!ser.isUnwrappingSerializer()) { ser = ser.unwrappingSerializer(); } return new UnwrappingBeanPropertyWriter(this, ser); }
/** * Method called create an instance that handles details of unwrapping * contained value. * * @since 1.9 */ public BeanPropertyWriter unwrappingWriter() { return new UnwrappingBeanPropertyWriter(this); }
@Override public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { if (getClass() != UnwrappingBeanPropertyWriter.class) { throw new IllegalStateException("UnwrappingBeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } // better try to create unwrapping instance if (!ser.isUnwrappingSerializer()) { ser = ser.unwrappingSerializer(); } return new UnwrappingBeanPropertyWriter(this, ser); }
/** * Method called create an instance that handles details of unwrapping * contained value. * * @since 1.9 */ public BeanPropertyWriter unwrappingWriter() { return new UnwrappingBeanPropertyWriter(this); }
/** * Method called create an instance that handles details of unwrapping * contained value. * * @since 1.9 */ public BeanPropertyWriter unwrappingWriter() { return new UnwrappingBeanPropertyWriter(this); }
@Override public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { if (getClass() != UnwrappingBeanPropertyWriter.class) { throw new IllegalStateException("UnwrappingBeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } // better try to create unwrapping instance if (!ser.isUnwrappingSerializer()) { ser = ser.unwrappingSerializer(); } return new UnwrappingBeanPropertyWriter(this, ser); }
@Override public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { if (getClass() != UnwrappingBeanPropertyWriter.class) { throw new IllegalStateException("UnwrappingBeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } // better try to create unwrapping instance if (!ser.isUnwrappingSerializer()) { ser = ser.unwrappingSerializer(); } return new UnwrappingBeanPropertyWriter(this, ser); }