Class POJOPropertyBuilder

    • Field Detail

      • _name

        protected final java.lang.String _name
        External name of logical property; may change with renaming (by new instance being constructed using a new name)
      • _internalName

        protected final java.lang.String _internalName
        Original internal name, derived from accessor, of this property. Will not be changed by renaming.
      • _fields

        protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedField> _fields
      • _ctorParameters

        protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedParameter> _ctorParameters
      • _getters

        protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedMethod> _getters
      • _setters

        protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedMethod> _setters
    • Constructor Detail

      • POJOPropertyBuilder

        public POJOPropertyBuilder​(java.lang.String internalName)
      • POJOPropertyBuilder

        public POJOPropertyBuilder​(POJOPropertyBuilder src,
                                   java.lang.String newName)
    • Method Detail

      • withName

        public POJOPropertyBuilder withName​(java.lang.String newName)
        Method for constructing a renamed instance
      • getInternalName

        public java.lang.String getInternalName()
        Description copied from class: BeanPropertyDefinition
        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.
        Specified by:
        getInternalName in class BeanPropertyDefinition
      • isExplicitlyIncluded

        public boolean isExplicitlyIncluded()
        Description copied from class: BeanPropertyDefinition
        Accessor that can be called to check whether property was included due to an explicit marker (usually annotation), or just by naming convention.
        Specified by:
        isExplicitlyIncluded in class BeanPropertyDefinition
        Returns:
        True if property was explicitly included (usually by having one of components being annotated); false if inclusion was purely due to naming or visibility definitions (that is, implicit)
      • addField

        public void addField​(AnnotatedField a,
                             java.lang.String ename,
                             boolean visible,
                             boolean ignored)
      • addCtor

        public void addCtor​(AnnotatedParameter a,
                            java.lang.String ename,
                            boolean visible,
                            boolean ignored)
      • addGetter

        public void addGetter​(AnnotatedMethod a,
                              java.lang.String ename,
                              boolean visible,
                              boolean ignored)
      • addSetter

        public void addSetter​(AnnotatedMethod a,
                              java.lang.String ename,
                              boolean visible,
                              boolean ignored)
      • addAll

        public void addAll​(POJOPropertyBuilder src)
        Method for adding all property members from specified collector into this collector.
      • removeIgnored

        public void removeIgnored()
        Method called to remove all entries that are marked as ignored.
      • removeNonVisible

        public void removeNonVisible()
      • trimByVisibility

        public void trimByVisibility()
        Method called to trim unnecessary entries, such as implicit getter if there is an explict one available. This is important for later stages, to avoid unnecessary conflicts.
      • mergeAnnotations

        public void mergeAnnotations​(boolean forSerialization)
      • anyExplicitNames

        public boolean anyExplicitNames()
      • anyVisible

        public boolean anyVisible()
      • anyIgnorals

        public boolean anyIgnorals()
      • anyDeserializeIgnorals

        public boolean anyDeserializeIgnorals()
      • anySerializeIgnorals

        public boolean anySerializeIgnorals()
      • findNewName

        public java.lang.String findNewName()
        Method called to check whether property represented by this collector should be renamed from the implicit name; and also verify that there are no conflicting rename definitions.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object