Class ModelPropertyContext


  • public class ModelPropertyContext
    extends java.lang.Object
    • Method Detail

      • getSpecificationBuilder

        public PropertySpecificationBuilder getSpecificationBuilder()
        Model property specification. Use this to override model property attributes
        Returns:
        the builder
      • getDocumentationType

        public DocumentationType getDocumentationType()
        Documentation type this context supports, swagger 1.2, 2.0 or vanilla spring mvc
        Returns:
        documentation type
      • getAnnotatedElement

        public java.util.Optional<java.lang.reflect.AnnotatedElement> getAnnotatedElement()
        Returns:
        annotated element that this model property is annotated with
      • getBeanPropertyDefinition

        public java.util.Optional<com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition> getBeanPropertyDefinition()
        Returns:
        bean property definition for this model property
      • getResolver

        public com.fasterxml.classmate.TypeResolver getResolver()
        Returns:
        resolver used to resolve types
      • getOwner

        public ModelContext getOwner()
        Owning model context
        Returns:
        context that owns the property