public class ConstraintOnAutolinkObjectSameChoiceFieldValue extends PropertyBusinessRule<AutolinkObject<? super DataObjectDefinition>>
Constructor and Description |
---|
ConstraintOnAutolinkObjectSameChoiceFieldValue(AutolinkObject<?> autolinkproperty,
java.lang.String objectchoicefieldname)
creates a constraint on auto-link object for same choice field value
|
Modifier and Type | Method and Description |
---|---|
ChoiceField |
getChoiceField() |
java.lang.String[] |
getImportstatements() |
void |
writeInitialization(SourceGenerator sg) |
isUserimplemented
changeName, cleanName, equals, getName
public ConstraintOnAutolinkObjectSameChoiceFieldValue(AutolinkObject<?> autolinkproperty, java.lang.String objectchoicefieldname)
autolinkproperty
- a link property already linked to both objectsobjectchoicefieldname
- the name in upper case of the linked object
choice field (should already be created on the
object)public ChoiceField getChoiceField()
public 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>>