# getter methods of boolean fields cannot be like isXXX()

**URL:** <https://techcommunity.softwareag.com/t/getter-methods-of-boolean-fields-cannot-be-like-isxxx/57219>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [February 21, 2006, 10:49pm UTC](https://techcommunity.softwareag.com/t/getter-methods-of-boolean-fields-cannot-be-like-isxxx/57219 "2006-02-21T22:49:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onur\_Kutlu\_GAGO](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@Onur\_Kutlu\_GAGO](https://techcommunity.softwareag.com/u/Onur_Kutlu_GAGO)\
**Post date:** [February 21, 2006, 10:49pm UTC](https://techcommunity.softwareag.com/t/getter-methods-of-boolean-fields-cannot-be-like-isxxx/57219/1 "2006-02-21T22:49:34Z")

</div>

It is common to name getter methods of boolean fields as isXXX() instead of getXXX(). For example:

```auto

private boolean valid;

public boolean isValid() {
return valid;
}
```

However CAI Editors do not recognize boolean fields unless you name their getter methods as getXXX(). Why :?:

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [February 22, 2006, 1:15am UTC](https://techcommunity.softwareag.com/t/getter-methods-of-boolean-fields-cannot-be-like-isxxx/57219/2 "2006-02-22T01:15:10Z")

</div>

…same question was just responsed one week ago… (not to blame you! just to indicate that the same problem also is seen by others).

The true and honest (and a bit stupid) answer on “Why?” is: because it always had been. At least: we documented it etc. …

Bjoern

---

<div class="post-metadata">

**Author:** ![Onur\_Kutlu\_GAGO](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@Onur\_Kutlu\_GAGO](https://techcommunity.softwareag.com/u/Onur_Kutlu_GAGO)\
**Post date:** [February 22, 2006, 1:13pm UTC](https://techcommunity.softwareag.com/t/getter-methods-of-boolean-fields-cannot-be-like-isxxx/57219/3 "2006-02-22T13:13:51Z")

</div>

I am sorry to repeat the same complaint :oops:

I hope you will make the necessary changes in the upcoming versions.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/getter-methods-of-boolean-fields-cannot-be-like-isxxx/57219/4 "2021-04-02T14:38:29Z")

</div>


