public class AutoNamingRule extends PropertyBusinessRule<Named>
Named
property, the name
is automatically generated at object creation and update.Constructor and Description |
---|
AutoNamingRule(StringPattern pattern,
Named named)
creates an automatic naming rule for the named property
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getImportstatements() |
void |
writeInitialization(SourceGenerator sg) |
isUserimplemented
changeName, cleanName, equals, getName
public AutoNamingRule(StringPattern pattern, Named named)
pattern
- String patternnamed
- named property of the objectpublic void writeInitialization(SourceGenerator sg) throws java.io.IOException
writeInitialization
in class PropertyBusinessRule<Named>
sg
- source generatorjava.io.IOException
- if anything bad happens while writing the filepublic java.lang.String[] getImportstatements()
getImportstatements
in class PropertyBusinessRule<Named>