/** * Method that will construct and return a new writer that has * same properties as this writer, but uses specified serializer * instead of currently configured one (if any). */ public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { // sanity check to ensure sub-classes override... if (getClass() != BeanPropertyWriter.class) { throw new IllegalStateException("BeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } return new BeanPropertyWriter(this, ser); }
BeanPropertyWriter bpw = new BeanPropertyWriter(am, _beanDesc.getClassAnnotations(), name, declaredType, ser, typeSer, serializationType, m, f, suppressNulls, valueToSuppress);
/** * Method that will construct and return a new writer that has * same properties as this writer, but uses specified serializer * instead of currently configured one (if any). */ public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { // sanity check to ensure sub-classes override... if (getClass() != BeanPropertyWriter.class) { throw new IllegalStateException("BeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } return new BeanPropertyWriter(this, ser); }
/** * Method that will construct and return a new writer that has * same properties as this writer, but uses specified serializer * instead of currently configured one (if any). */ public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { return new BeanPropertyWriter(_name, ser, _cfgSerializationType, _accessorMethod, _field, _suppressNulls, _suppressableValue); }
BeanPropertyWriter bpw = new BeanPropertyWriter(am, _beanDesc.getClassAnnotations(), name, declaredType, ser, typeSer, serializationType, m, f, suppressNulls, valueToSuppress);
/** * Method that will construct and return a new writer that has * same properties as this writer, but uses specified serializer * instead of currently configured one (if any). */ public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { // sanity check to ensure sub-classes override... if (getClass() != BeanPropertyWriter.class) { throw new IllegalStateException("BeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } return new BeanPropertyWriter(this, ser); }
/** * Method that will construct and return a new writer that has * same properties as this writer, but uses specified serializer * instead of currently configured one (if any). */ public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { // sanity check to ensure sub-classes override... if (getClass() != BeanPropertyWriter.class) { throw new IllegalStateException("BeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } return new BeanPropertyWriter(this, ser); }
/** * Method that will construct and return a new writer that has * same properties as this writer, but uses specified serializer * instead of currently configured one (if any). */ public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) { // sanity check to ensure sub-classes override... if (getClass() != BeanPropertyWriter.class) { throw new IllegalStateException("BeanPropertyWriter sub-class does not override 'withSerializer()'; needs to!"); } return new BeanPropertyWriter(this, ser); }
protected BeanPropertyWriter _buildProperty(String name, JsonSerializer<Object> ser, boolean defaultUseStaticTyping, Annotated a, Method m, Field f) { Class<?> serializationType = findSerializationType(a, defaultUseStaticTyping); Object suppValue = null; boolean suppressNulls = false; JsonSerialize.Inclusion methodProps = _annotationIntrospector.findSerializationInclusion(a, _outputProps); if (methodProps != null) { switch (methodProps) { case NON_DEFAULT: suppValue = getDefaultValue(name, m, f); if (suppValue == null) { suppressNulls = true; } break; case NON_NULL: suppressNulls = true; break; } } return new BeanPropertyWriter(name, ser, serializationType, m, f, suppressNulls, suppValue); }
BeanPropertyWriter bpw = new BeanPropertyWriter(am, _beanDesc.getClassAnnotations(), name, declaredType, ser, typeSer, serializationType, m, f, suppressNulls, valueToSuppress);
BeanPropertyWriter bpw = new BeanPropertyWriter(am, _beanDesc.getClassAnnotations(), name, declaredType, ser, typeSer, serializationType, m, f, suppressNulls, valueToSuppress);
return new BeanPropertyWriter(am, _beanDesc.getClassAnnotations(), name, declaredType, ser, typeSer, serializationType, m, f, suppressNulls, suppValue);