com.mchange.v2.codegen.bean
Class ExplicitPropsConstructorGeneratorExtension
java.lang.Object
com.mchange.v2.codegen.bean.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExplicitPropsConstructorGeneratorExtension
public ExplicitPropsConstructorGeneratorExtension()
ExplicitPropsConstructorGeneratorExtension
public ExplicitPropsConstructorGeneratorExtension(java.lang.String[] propNames)
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)
extraGeneralImports
public java.util.Collection extraGeneralImports()
- Specified by:
extraGeneralImports in interface GeneratorExtension
extraSpecificImports
public java.util.Collection extraSpecificImports()
- Specified by:
extraSpecificImports in interface GeneratorExtension
extraInterfaceNames
public java.util.Collection extraInterfaceNames()
- Specified by:
extraInterfaceNames in interface GeneratorExtension
generate
public void generate(ClassInfo info,
java.lang.Class superclassType,
Property[] props,
java.lang.Class[] propTypes,
IndentedWriter iw)
throws java.io.IOException
- Specified by:
generate in interface GeneratorExtension
- Throws:
java.io.IOException