E
- left data object for the linkF
- right data object for the linkpublic class ConstraintOnLinkObjectSameParent<E extends DataObjectDefinition,F extends DataObjectDefinition> extends PropertyBusinessRule<LinkObject<E,F>>
Constructor and Description |
---|
ConstraintOnLinkObjectSameParent(LinkObject<E,F> linkproperty,
LinkedToParent<E> leftobjectparentproperty,
LinkedToParent<F> rightobjectparentproperty)
creates a new constraint
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getImportstatements() |
LinkedToParent<E> |
getLeftobjectparentproperty()
provides the link to the common parent from the left object
|
LinkObject<E,F> |
getLinkproperty()
provides the link object on which the constraint is placed
|
LinkedToParent<F> |
getRightobjectparentproperty()
provides the link to the common parent from the right object
|
void |
writeInitialization(SourceGenerator sg) |
isUserimplemented
changeName, cleanName, equals, getName
public ConstraintOnLinkObjectSameParent(LinkObject<E,F> linkproperty, LinkedToParent<E> leftobjectparentproperty, LinkedToParent<F> rightobjectparentproperty)
linkproperty
- link object the constraint is onleftobjectparentproperty
- link to the common parent for left objectrightobjectparentproperty
- link to the common parent for right objectpublic LinkObject<E,F> getLinkproperty()
public LinkedToParent<E> getLeftobjectparentproperty()
public LinkedToParent<F> getRightobjectparentproperty()
public void writeInitialization(SourceGenerator sg) throws java.io.IOException
writeInitialization
in class PropertyBusinessRule<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
sg
- source generatorjava.io.IOException
- if anything bad happens while writing the filepublic java.lang.String[] getImportstatements()
getImportstatements
in class PropertyBusinessRule<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>