public class ConstraintOnAutolinkObjectSameParent extends PropertyBusinessRule<AutolinkObject<? super DataObjectDefinition>>
Constructor and Description |
---|
ConstraintOnAutolinkObjectSameParent(AutolinkObject<?> autolinkproperty,
LinkedToParent<?> sameparent)
creates a constraint on auto-link object that allows to link two objects only
if they have the same parent
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getImportstatements() |
void |
writeInitialization(SourceGenerator sg) |
isUserimplemented
changeName, cleanName, equals, getName
public ConstraintOnAutolinkObjectSameParent(AutolinkObject<?> autolinkproperty, LinkedToParent<?> sameparent)
autolinkproperty
- the linked property this is added tosameparent
- the linked to parent property to consider for the
linked objectpublic void writeInitialization(SourceGenerator sg) throws java.io.IOException
writeInitialization
in class PropertyBusinessRule<AutolinkObject<? super DataObjectDefinition>>
sg
- source generatorjava.io.IOException
- if anything bad happens while writing the filepublic java.lang.String[] getImportstatements()
getImportstatements
in class PropertyBusinessRule<AutolinkObject<? super DataObjectDefinition>>