开发者

Naming of include/exclude enum

I'm having difficulties naming an enum that should have the values Include and Exclude. If the enumerations were In and Out, I'd name the enum Direction, but what's the similar and appropriate word to group Include and Exclude?

The context and application of the enum is to set whether a selection of objects are to be included in or e开发者_运维知识库xcluded from a larger set.


How about "Inclusion"?


Filter maybe? Or Condition?


That would really depend on the context I guess, it hard to give a single name to such vague concepts.

Integration ? Integration(Rule|Policy) ? Yeah, not convincing I know.


That seems to be related to Sets and Subsets. I would say something like SetRelation. If you're talking about Set elements, then maybe you should use Element (BelongsTo|DoesNotBelongTo)


SelectionUsage or SelectionUsageType


T(Filter)Operation = (foInclude, foExclude)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜