Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Model methods: "find...()" vs. "get...()"

Hi Felix,
I totally agree with you. I would also go with getParameter(String name) etc.

Cheers,
Christian

On 07/02/2012 06:10 PM, Riegerf@xxxxxxxxxxxxxxxxxxxxxxx wrote:
Hi Christian,

Quoting Christian Krause <henshin.ck@xxxxxxxxx>:
TransformationSystem#findRuleByName(...);

vs.

TransformationUnit#getParameterByName(...);

I have not checked it but I think we use more "find" than "get". But I don't mind which one we choose.

Some more questions: Can we really "find" rules/etc. or does the rule name need to be the passed String exactly? If so, "find" is misleading and should be replaced by "get." Then, we should also drop "ByName," as we have no other way to get Rules.

Felix

_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev




Back to the top