E
- type of current objectpublic class LinkedToDefaultParent<E extends DataObjectDefinition> extends PropertyBusinessRule<LinkedToParent<E>>
Constructor and Description |
---|
LinkedToDefaultParent(java.lang.String defaultnumber,
boolean createifnotexists,
LinkedToParent<E> linkedtoparent)
creates a linked to default parent that will link to a default parent,
potentially creating it if it does not exist
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getImportstatements() |
void |
writeInitialization(SourceGenerator sg) |
isUserimplemented
changeName, cleanName, equals, getName
public LinkedToDefaultParent(java.lang.String defaultnumber, boolean createifnotexists, LinkedToParent<E> linkedtoparent)
defaultnumber
- default parent numbercreateifnotexists
- if true, create missing parent, if false, throw an
exception if the parent does not existlinkedtoparent
- related linked to parent propertypublic void writeInitialization(SourceGenerator sg) throws java.io.IOException
writeInitialization
in class PropertyBusinessRule<LinkedToParent<E extends DataObjectDefinition>>
sg
- source generatorjava.io.IOException
- if anything bad happens while writing the filepublic java.lang.String[] getImportstatements()
getImportstatements
in class PropertyBusinessRule<LinkedToParent<E extends DataObjectDefinition>>