In Struts 2 you use getter and setter methods.
Struts2中使用getter和setter方法。
Add a getter and setter for the id attribute.
为id属性添加一个获得者以及设置者。
Configure your Call instance with its setter methods.
使用它的setter方法来配置您的Call实例。
ConfigSetter implements configuration setter methods.
ConfigSetter实现配置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方法。
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方法。
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方法被视为最佳做法。
To facilitate this setter injection, I've registered set methods for both my properties.
为了方便这个setter注入,我为两个属性都注册了set方法。
You use the code in Listing 14 instead of the setter methods that you used in Listing 11.
使用清单14中的代码,而不使用清单11中使用的setter方法。
It's not there because I didn't provide the name field with the getter and setter method.
它不在这里,因为我没有通过getter和setter方法提供name字段。
The initialization code in Listing 2 is part of a class that uses setter injection for DI.
清单2中的初始化代码是一个类的一部分,它使用setter注入进行DI。
An option to filter out all getter and setter methods has been added to the sequence diagram.
并且新版本还在序列图中添加了一个选项,可以把所有getter和setter方法筛选掉。
Each property will have a getter and setter associated with it, along with some initial value.
每个属性将有getter和setter与之关联,还有一些初始值。
The customer class shown in Listing 3 is a good example of a class that USES setter injection.
清单3所示的customer类是使用setter注入的类的良好示例。
应用推荐