Class BeanProperty

    • Constructor Detail

      • BeanProperty

        public BeanProperty​(String name)
        The constructor.
        Parameters:
        name - the Name.
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name of the property.
      • getPropertyMethod

        public BeanMethodProperty getPropertyMethod()
        Returns:
        propertyMethod
      • getGetterMethod

        public BeanMethodGetter getGetterMethod()
        Returns:
        getterMethod
      • getSetterMethod

        public BeanMethodSetter getSetterMethod()
        Returns:
        setterMethod
      • getType

        public Class<?> getType()
        Returns:
        type
      • getPropertyType

        public String getPropertyType()
        Returns:
        propertyType
      • writeField

        public void writeField​(Writer writer)
                        throws IOException
        Writes the property field declaration.
        Parameters:
        writer - the Writer.
        Throws:
        IOException - on error.
      • writeFieldInitializer

        public void writeFieldInitializer​(Writer writer)
                                   throws IOException
        Writes the property field initializer statement for constructor.
        Parameters:
        writer - the Writer.
        Throws:
        IOException - on error.