Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The concept you are looking for is called "Java Beans".</p> <p>In Java, a Java Bean implements getters (also-known-as accessors) and setters (also-known-as mutators) using a specific naming convention.</p> <p>It is easier for me to demonstrate that describe the naming convention.</p> <pre><code>boolean xxxBlammo; Boolean hoot; // Note that this is not a boolean (primative). String smashy; // the key is that this is not a boolean. // convention: starts with is, first letter of property is capatalized. public boolean isXxxBlammo() { return xxxBlammo; } // Note that the return type is not the primative boolean. // convention: starts with get, first letter of prooperty is capatalized. public Boolean getHoot() { return hoot; } // The naming convention is the same for getSmashy as it is for getHoot. // convention: starts with get, first letter of prooperty is capatalized. public String getSmashy() { return smashy; } // starts with set, first letter of property is capatalized. public void setXxxBlammo(final boolean newValue) { xxxBlammo = newValue; } // same naming convention for all setters. public void setHoot(final Boolean newValue) ... public void setSmashy(final String newValue) ... </code></pre> <p>The EL expression #{beany.smashy} references the "smashy" property of the "beany" Java Bean , which means it translates into a call to the getSmashy() getter.</p> <p>In your case, #{timeBean.time} references the "time" property of the "timeBean" Java Bean, which means it translates to a call to the getTime() getter.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload