This includes property accessor methods and events.
其中包括属性访问器方法和事件。
You also need to add a few simple accessor methods to SimpleNode.
您还需要将一些简单的存取器方法添加到SimpleNode。
Once more iterate over the attributes and output accessor methods.
如果遇到多次属性访问,输出访问器方法。
The effective use of accessor methods will be covered in future tips.
以后的提示中会涉及访问器方法的有效使用。
Use accessor methods instead of constructors to reinitialize the object.
使用访问函数方法代替构造函数来重新初始化对象。
My first step is to create accessor methods for each UI component, shown in Listing 2.
第一步是为每个UI组件创建访问器方法,如清单2所示。
There are times when you don't want the accessor methods to be generated automatically.
有时候你可能不希望自动生成这些访问器方法。
For this example make sure the Protected Fields with Public accessor methods is checked.
对于这个例子,确保选中protectedFieldswithPublic accessor methods。
Properties enable data hiding, the accessor methods hide the implementation of the property.
属性启用数据隐藏,访问器方法隐藏属性的实现。
Add the private keyword before the val or var keyword and the accessor methods won't be generated.
在val或者var之前加上private关键字,访问器方法就不会被生成。
Take the following accessor methods, which provide a safe way to change the value of a counter.
感受下面的存储程序,它以一种安全的方式修改计数器的值。
Behind the scenes in the bean's implementation class all of the same accessor methods are being called.
bean的实现类在“幕后”调用所有相同的取值方法。
Accessor methods often implement important behavior that occurs whenever a value is retrieved or set.
存取方法常常实现重要行为是无论何时一个值被检索或者设置都会被重现。
This class contains variables and their respective accessor methods with 1-1 mapping to the Employee table columns.
这个类包含一些变量及其相应的访问方法,这些变量与employee表中的列存在1对1的映射。
Accessor methods come in two flavors: setters and getters (sometimes referred to as mutators and accessors, respectively).
访问器方法涉及两种方法:setters和getters(有时分别称为mutators和accessors)。
We also provided accessor methods for attributes of this class, but we've omitted these methods from this article for brevity.
我们还提供了这个类的一些属性的存取方法,但是为了简便起见,在本文中我们省略了这些方法。
This command loads the module named manager.py, which has a number of Manager accessor methods and some code to start the Manager.
该命令加载了名为manager.py 的模块,这个模块有很多Manager访问方法和一些代码来启动 Manager。
What this means is that the code above really boils down to a case where you're accessing member fields through accessor methods.
这意味着这些代码将直接存取成员变量表现为通过存取器方法访问。
Have each action store the window that created it, then it can use the accessor methods on that window to get to the objects it needs.
让每个操作存储创建它的窗口,然后对该窗口使用取值方法获取它所需的对象。
Here, the accessor methods for user and service data are synchronized, which means that they are synchronizing on the AttributesStore object.
这里,用户和服务数据的访问器方法是同步的,这意味着它们在AttributesStore对象上同步。
Using value objects in your EJB applications can yield tremendous performance advantages, especially in beans with multiple accessor methods.
在您的EJB应用程序中使用值对象可以产生极大的性能优势,在具有多个取值方法的bean中尤其是如此。
The SDO 1.0 specification did not have accessor methods to determine whether a DataObject was of mixed type (this has been addressed in the SDO 2.01 specification).
SDO 1.0规范并没有用于确定DataObject是否为混合类型的访问器方法(此问题已在SDO 2.01规范中进行了处理)。
In the second page of the wizard (shown in Figure 7), you can optionally specify whether to generate public or protected fields and with or without public accessor methods.
在该向导的第二个页面(如图7所示),可以指定生成public还是protected字段,是否包含public访问方法。
We'll see why when we discuss the Uniform Access Principle in the section called "when Accessor Methods and Fields Are Indistinguishable: the Uniform Access Principle" below.
我们会在“当方法和字段存取器无法区分时:唯一存取的原则”章节中讨论唯一存取原则时看到原因。
To remedy the previously mentioned anti-pattern, you can "hide the exposed instance variables and provide publicly exposed mutator and accessor methods as appropriate to access the object state."
要补救前面提到的反模式,您可以“隐藏暴露的实例变量,并且提供公开暴露的增变方法和访问方法,适用于访问对象状态”。
To update data objects, SDO clients typically use DataObject write accessor methods. For example, here we can see how the client modifies the data graph obtained for the employee Terence shorter.
SDO客户机一般使用DataObject写访问器方法更新数据对象。
You should expose properties instead of public fields from your components, because properties can be versioned, they allow data hiding, and the accessor methods can execute additional logic.
您应该公开组件的属性而不是公共字段,因为属性的版本可以控制,它们允许数据隐藏,并且访问器方法可以执行附加逻辑。
The field class itself is pretty simple; it pretty much consists of the instance variables of the field, accessor methods for those instance variables, a toString method, and a normal constructor.
Field类本身相当简单;它几乎包含了这个字段的实例变量,访问这些变量的方法,一个toString方法,和一个标准的构造方法。
We’ll discuss this more in the section called “When Accessor Methods and Fields Are Indistinguishable: The Uniform Access Principle” in Chapter 6, Advanced Object-Oriented Programming In Scala.
我们会在《第6章 -Scala高级面向对象编程》的“当方法和字段存取器无法区分时:唯一存取的原则”章节来更多的讨论这一点。
Because we are dealing with simple accessor methods for beans, we have one for the setter containing a single input message, and one for the getter containing a single output message (see listing 4).
因为我们是为bean处理简单的访问方法,所以包含一个输入消息的setter和包含一个输出消息的getter都有一个。如清单4所示。
应用推荐