That is, you cannot call any setter methods.
更确切的说,您不能调用任何setter方法。
In Struts 2 you use getter and setter methods.
Struts2中使用getter和setter方法。
Add a getter and setter for the id attribute.
为id属性添加一个获得者以及设置者。
Note that, unlike beans, there is no setter method.
注意,与Bean 不同,这里没有setter方法。
Configure your Call instance with its setter methods.
使用它的setter方法来配置您的Call实例。
ConfigSetter implements configuration setter methods.
ConfigSetter实现配置setter方法。
There is already some code that implements the setter.
我们已经有了实现setter的代码。
Listing 1. The setter of a deferred-value attribute.
清单1. deferred - value属性的setter方法。
Now look at setter and getter methods in Listing 1.
现在,在清单1中查看setter和getter方法。
Generate getter and setter methods for these variables.
为这些变量产生获得和设置属性值的方法。
These setter methods set the attribute values of the user.
这些setter方法用于设置用户的属性值。
Listing 7 shows some of the constants and a setter method.
清单7显示了一些常量和setter方法。
Keep the address property along with its getter and setter.
保留address属性以及它的getter和setter。
There is also a setter method for the orderService reference.
这儿同样有一个orderService引用的setter方法。
The data model also has a setter and getter to access the data.
数据模型还具有访问数据的setter和getter。
The other three header setter primitives have similar functions.
其他三个头部setter原语具有类似的功能。
Each property has an accessor and a mutator (getter and setter).
每个属性具有一个accessor和mutator (getter和setter)。
A setter modifies the value of a field; a getter obtains its value.
setter是修改字段值,而getter是获取其值。
You must have a setter and getter method for network-transfer fields.
您必须具有用于网络传输字段的setter和getter方法。
Each data element has its own individual "getter" and "setter" method.
每个数据元素有自己的“getter”和“setter”方法。
Listing 8 shows how to use the ThreadMXBean's getter and setter operations.
清单8展示了如何使用ThreadMXBean的getter和setter操作。
A setter modifies the value of a field, whereas a getter obtains its value.
setter修改字段的值,而getter获取它的值。
Note that all the setter methods are implemented by Spring configuration beans.
注意,所有的setter方法都是由Spring的配置bean实现的。
If desired, you can cut instruct Eclipse to generate getter and setter methods.
如果需要,可以直接要求Eclipse生成getter和setter方法。
The mapping can be implemented by creating your own getter and setter methods.
可以通过创建自己的获取器和设置器方法来实现映射。
Assuming that the setter methods are correctly named, XJConf will do two things.
只要正确命名了setter方法,XJConf将做两件事。
Using a private field and annotating the setter method is considered a best practice.
使用私有字段并注释setter方法被视为最佳做法。
应用推荐