Class ExplicitPropsConstructorGeneratorExtension

  • All Implemented Interfaces:
    GeneratorExtension

    public class ExplicitPropsConstructorGeneratorExtension
    extends java.lang.Object
    implements GeneratorExtension
    Writes a constructor that takes an explicitly listed subset of a bean's properties for its arguments, and sets these properties initial values appropriately. Skips any specified names for properties that are not found in a bean being generated. Writes nothing if there are none of the property names are properties of the bean.
    • Constructor Detail

      • ExplicitPropsConstructorGeneratorExtension

        public ExplicitPropsConstructorGeneratorExtension()
      • ExplicitPropsConstructorGeneratorExtension

        public ExplicitPropsConstructorGeneratorExtension​(java.lang.String[] propNames)
    • Method Detail

      • getPropNames

        public java.lang.String[] getPropNames()
      • setPropNames

        public void setPropNames​(java.lang.String[] propNames)
      • isSkipsSilently

        public boolean isSkipsSilently()
      • setsSkipsSilently

        public void setsSkipsSilently​(boolean skips_silently)