Class DefaultBeanProperty

    • Constructor Detail

      • DefaultBeanProperty

        public DefaultBeanProperty​(String name)
    • Method Detail

      • getName

        public String getName()
        The name of the bean, which is based on the name of the mutator or accessor, not on the field.
        Specified by:
        getName in interface BeanProperty
        Returns:
        the name of the bean
      • setType

        public void setType​(JavaType type)
      • getType

        public JavaType getType()
        The type of the bean, either used as argument type of the mutator or return type of the accessor.
        Specified by:
        getType in interface BeanProperty
        Returns:
        the type of the bean
      • getAccessor

        public JavaMethod getAccessor()
        This can return both the isProperty if the property is of type Boolean or getProperty for any other type of Object.
        Specified by:
        getAccessor in interface BeanProperty
        Returns:
        the getter, otherwise null
      • setAccessor

        public void setAccessor​(JavaMethod accessor)
      • getMutator

        public JavaMethod getMutator()
        The setter-method of the bean.
        Specified by:
        getMutator in interface BeanProperty
        Returns:
        the setter, otherwise null
      • setMutator

        public void setMutator​(JavaMethod mutator)