Class BeanPropertyDefinition

  • All Implemented Interfaces:
    Named
    Direct Known Subclasses:
    POJOPropertyBuilder

    public abstract class BeanPropertyDefinition
    extends Object
    implements Named
    Simple value classes that contain definitions of properties, used during introspection of properties to use for serialization and deserialization purposes. These instances are created before actual BeanProperty instances are created, i.e. they are used earlier in the process flow.
    Since:
    1.9
    • Constructor Detail

      • BeanPropertyDefinition

        public BeanPropertyDefinition()
    • Method Detail

      • getName

        public abstract String getName()
        Accessor for name used for external representation (in JSON).
        Specified by:
        getName in interface Named
      • getInternalName

        public abstract String getInternalName()
        Accessor that can be used to determine implicit name from underlying element(s) before possible renaming. This is the "internal" name derived from accessor ("x" from "getX"), and is not based on annotations or naming strategy.
      • hasGetter

        public abstract boolean hasGetter()
      • hasSetter

        public abstract boolean hasSetter()
      • hasField

        public abstract boolean hasField()
      • hasConstructorParameter

        public abstract boolean hasConstructorParameter()
      • couldDeserialize

        public boolean couldDeserialize()
      • couldSerialize

        public boolean couldSerialize()
      • getAccessor

        public abstract AnnotatedMember getAccessor()
        Method used to find accessor (getter, field to access) to use for accessing value of the property. Null if no such member exists.
      • getMutator

        public abstract AnnotatedMember getMutator()
        Method used to find mutator (constructor parameter, setter, field) to use for changing value of the property. Null if no such member exists.