com.fasterxml.jackson.databind

Class BeanProperty.Std

  • All Implemented Interfaces:
    BeanProperty, Named
    Direct Known Subclasses:
    ValueInjector
    Enclosing interface:
    BeanProperty


    public static class BeanProperty.Std
    extends Object
    implements BeanProperty
    Simple stand-alone implementation, useful as a placeholder or base class for more complex implementations.
    • Field Detail

      • _member

        protected final AnnotatedMember _member
        Physical entity (field, method or constructor argument) that is used to access value of property (or in case of constructor property, just placeholder)
      • _contextAnnotations

        protected final Annotations _contextAnnotations
        Annotations defined in the context class (if any); may be null if no annotations were found
    • Method Detail

      • getAnnotation

        public <A extends Annotation> A getAnnotation(Class<A> acls)
        Description copied from interface: BeanProperty
        Method for finding annotation associated with this property; meaning annotation associated with one of entities used to access property.
        Specified by:
        getAnnotation in interface BeanProperty
      • getContextAnnotation

        public <A extends Annotation> A getContextAnnotation(Class<A> acls)
        Description copied from interface: BeanProperty
        Method for finding annotation associated with context of this property; usually class in which member is declared (or its subtype if processing subtype).
        Specified by:
        getContextAnnotation in interface BeanProperty
      • getFullName

        public PropertyName getFullName()
        Description copied from interface: BeanProperty
        Method for getting full name definition, including possible format-specific additional properties (such as namespace when using XML backend).
        Specified by:
        getFullName in interface BeanProperty
      • isRequired

        public boolean isRequired()
        Description copied from interface: BeanProperty
        Whether value for property is marked as required using annotations or associated schema.
        Specified by:
        isRequired in interface BeanProperty
      • getMetadata

        public PropertyMetadata getMetadata()
        Description copied from interface: BeanProperty
        Accessor for additional optional information about property.
        Specified by:
        getMetadata in interface BeanProperty
        Returns:
        Metadata about property; never null.
      • getMember

        public AnnotatedMember getMember()
        Description copied from interface: BeanProperty
        Method for accessing primary physical entity that represents the property; annotated field, method or constructor property.
        Specified by:
        getMember in interface BeanProperty
      • depositSchemaProperty

        public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor)
        Implementation of this method throws UnsupportedOperationException, since instances of this implementation should not be used as part of actual structure visited. Rather, other implementations should handle it.
        Specified by:
        depositSchemaProperty in interface BeanProperty
        Parameters:
        objectVisitor - Visitor to used as the callback handler

Copyright © 2014 FasterXML. All Rights Reserved.