Class SubstitutedMethodProperty

java.lang.Object
com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
com.fasterxml.jackson.databind.deser.SettableBeanProperty
com.regnosys.rosetta.common.serialisation.xml.SubstitutedMethodProperty
All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty, com.fasterxml.jackson.databind.util.Named, Serializable

public class SubstitutedMethodProperty extends com.fasterxml.jackson.databind.deser.SettableBeanProperty
A copy of MethodProperty, which is a final class, with support for specializing the type to a more specific type. This is necessary for deserialising substitution groups; see RosettaBeanDeserializerModifier.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty

    com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating

    Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty

    com.fasterxml.jackson.databind.BeanProperty.Bogus, com.fasterxml.jackson.databind.BeanProperty.Std
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.fasterxml.jackson.databind.introspect.AnnotatedMethod
     
    protected final Method
    Setter method for modifying property value; used for "regular" method-accessible properties.
    protected final boolean
     
    protected final com.fasterxml.jackson.databind.JavaType
     

    Fields inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty

    _contextAnnotations, _managedReferenceName, _nullProvider, _objectIdInfo, _propertyIndex, _propName, _type, _valueDeserializer, _valueTypeDeserializer, _viewMatcher, _wrapperName, MISSING_VALUE_DESERIALIZER

    Fields inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase

    _aliases, _metadata

    Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty

    EMPTY_FORMAT, EMPTY_INCLUDE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    SubstitutedMethodProperty(com.fasterxml.jackson.databind.deser.impl.MethodProperty src, com.fasterxml.jackson.databind.JavaType substitutedType, com.fasterxml.jackson.databind.introspect.AnnotatedMethod method)
     
    protected
    SubstitutedMethodProperty(SubstitutedMethodProperty src, com.fasterxml.jackson.databind.JsonDeserializer<?> deser, com.fasterxml.jackson.databind.deser.NullValueProvider nva)
     
    protected
    SubstitutedMethodProperty(SubstitutedMethodProperty src, com.fasterxml.jackson.databind.PropertyName newName)
     
    protected
    Constructor used for JDK Serialization when reading persisted object
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, Object instance)
     
    deserializeSetAndReturn(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, Object instance)
     
    void
    fixAccess(com.fasterxml.jackson.databind.DeserializationConfig config)
     
    <A extends Annotation>
    A
     
    com.fasterxml.jackson.databind.introspect.AnnotatedMember
     
    com.fasterxml.jackson.databind.JavaType
     
    final void
    set(Object instance, Object value)
     
    setAndReturn(Object instance, Object value)
     
    com.fasterxml.jackson.databind.deser.SettableBeanProperty
    withName(com.fasterxml.jackson.databind.PropertyName newName)
     
    com.fasterxml.jackson.databind.deser.SettableBeanProperty
    withNullProvider(com.fasterxml.jackson.databind.deser.NullValueProvider nva)
     
    com.fasterxml.jackson.databind.deser.SettableBeanProperty
    withValueDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
     

    Methods inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty

    _throwAsIOE, _throwAsIOE, _throwAsIOE, _throwAsIOE, assignIndex, depositSchemaProperty, deserialize, deserializeWith, getContextAnnotation, getCreatorIndex, getDeclaringClass, getFullName, getInjectableValueId, getManagedReferenceName, getName, getNullValueProvider, getObjectIdInfo, getPropertyIndex, getValueDeserializer, getValueTypeDeserializer, getWrapperName, hasValueDeserializer, hasValueTypeDeserializer, hasViews, isIgnorable, isInjectionOnly, markAsIgnorable, setManagedReferenceName, setObjectIdInfo, setViews, toString, visibleInView, withSimpleName

    Methods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase

    findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • _annotated

      protected final com.fasterxml.jackson.databind.introspect.AnnotatedMethod _annotated
    • _setter

      protected final transient Method _setter
      Setter method for modifying property value; used for "regular" method-accessible properties.
    • _skipNulls

      protected final boolean _skipNulls
      Since:
      2.9
    • _substitutedType

      protected final com.fasterxml.jackson.databind.JavaType _substitutedType
  • Constructor Details

    • SubstitutedMethodProperty

      public SubstitutedMethodProperty(com.fasterxml.jackson.databind.deser.impl.MethodProperty src, com.fasterxml.jackson.databind.JavaType substitutedType, com.fasterxml.jackson.databind.introspect.AnnotatedMethod method)
    • SubstitutedMethodProperty

      protected SubstitutedMethodProperty(SubstitutedMethodProperty src, com.fasterxml.jackson.databind.JsonDeserializer<?> deser, com.fasterxml.jackson.databind.deser.NullValueProvider nva)
    • SubstitutedMethodProperty

      protected SubstitutedMethodProperty(SubstitutedMethodProperty src, com.fasterxml.jackson.databind.PropertyName newName)
    • SubstitutedMethodProperty

      protected SubstitutedMethodProperty(SubstitutedMethodProperty src, Method m)
      Constructor used for JDK Serialization when reading persisted object
  • Method Details

    • getType

      public com.fasterxml.jackson.databind.JavaType getType()
      Specified by:
      getType in interface com.fasterxml.jackson.databind.BeanProperty
      Overrides:
      getType in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • withName

      public com.fasterxml.jackson.databind.deser.SettableBeanProperty withName(com.fasterxml.jackson.databind.PropertyName newName)
      Specified by:
      withName in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • withValueDeserializer

      public com.fasterxml.jackson.databind.deser.SettableBeanProperty withValueDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
      Specified by:
      withValueDeserializer in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • withNullProvider

      public com.fasterxml.jackson.databind.deser.SettableBeanProperty withNullProvider(com.fasterxml.jackson.databind.deser.NullValueProvider nva)
      Specified by:
      withNullProvider in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • fixAccess

      public void fixAccess(com.fasterxml.jackson.databind.DeserializationConfig config)
      Overrides:
      fixAccess in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • getAnnotation

      public <A extends Annotation> A getAnnotation(Class<A> acls)
      Specified by:
      getAnnotation in interface com.fasterxml.jackson.databind.BeanProperty
      Specified by:
      getAnnotation in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • getMember

      public com.fasterxml.jackson.databind.introspect.AnnotatedMember getMember()
      Specified by:
      getMember in interface com.fasterxml.jackson.databind.BeanProperty
      Specified by:
      getMember in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
    • deserializeAndSet

      public void deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, Object instance) throws IOException
      Specified by:
      deserializeAndSet in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
      Throws:
      IOException
    • deserializeSetAndReturn

      public Object deserializeSetAndReturn(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, Object instance) throws IOException
      Specified by:
      deserializeSetAndReturn in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
      Throws:
      IOException
    • set

      public final void set(Object instance, Object value) throws IOException
      Specified by:
      set in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
      Throws:
      IOException
    • setAndReturn

      public Object setAndReturn(Object instance, Object value) throws IOException
      Specified by:
      setAndReturn in class com.fasterxml.jackson.databind.deser.SettableBeanProperty
      Throws:
      IOException