public MapProperty(TypeSerializer typeSer, BeanProperty prop) { super((prop == null) ? PropertyMetadata.STD_REQUIRED_OR_OPTIONAL : prop.getMetadata()); _typeSerializer = typeSer; _property = (prop == null) ? BOGUS_PROP : prop; }
protected Nulls findContentNullStyle(DeserializationContext ctxt, BeanProperty prop) throws JsonMappingException { if (prop != null) { return prop.getMetadata().getContentNulls(); } return null; }
public MapProperty(TypeSerializer typeSer, BeanProperty prop) { super((prop == null) ? PropertyMetadata.STD_REQUIRED_OR_OPTIONAL : prop.getMetadata()); _typeSerializer = typeSer; _property = prop; }
public MapProperty(TypeSerializer typeSer, BeanProperty prop) { super((prop == null) ? PropertyMetadata.STD_REQUIRED_OR_OPTIONAL : prop.getMetadata()); _typeSerializer = typeSer; _property = (prop == null) ? BOGUS_PROP : prop; }
public static boolean hasIndex(BeanProperty writer) { return writer.getMetadata().hasIndex(); }
protected Nulls findContentNullStyle(DeserializationContext ctxt, BeanProperty prop) throws JsonMappingException { if (prop != null) { return prop.getMetadata().getContentNulls(); } return null; }
public static boolean hasIndex(BeanProperty writer) { return writer.getMetadata().hasIndex(); }
public static boolean hasIndex(BeanProperty writer) { return writer.getMetadata().hasIndex(); }
/** * Override this to add information specific to the property of bean * For example, bean validation annotations could be used to specify * value constraints in the schema * @param beanProperty */ public void enrichWithBeanProperty(BeanProperty beanProperty) { setDescription(beanProperty.getMetadata().getDescription()); }
/** * Override this to add information specific to the property of bean * For example, bean validation annotations could be used to specify * value constraints in the schema * @param beanProperty */ public void enrichWithBeanProperty(BeanProperty beanProperty) { setDescription(beanProperty.getMetadata().getDescription()); }
@Override public int nextTag(BeanProperty writer) { Integer ix = writer.getMetadata().getIndex(); if (ix != null) { return ix.intValue(); } throw new IllegalStateException("No index metadata found for " + writer.getFullName() + " (usually annotated with @JsonProperty.index): either annotate all properties of type " + writer.getWrapperName().getSimpleName() + " with indexes or none at all"); } }
@Override public int nextTag(BeanProperty writer) { Integer ix = writer.getMetadata().getIndex(); if (ix != null) { return ix.intValue(); } throw new IllegalStateException("No index metadata found for " + writer.getFullName() + " (usually annotated with @JsonProperty.index): either annotate all properties of type " + writer.getWrapperName().getSimpleName() + " with indexes or none at all"); } }