When shouldn't you use accessors?
何时不应该使用读写方法?
Accessors and mutators are also added.
访问器和调整器也添加了进来。
Accessors and interceptors are discussed later in this document.
访问器和拦截器将在本文档的后面讨论。
Accessors do not have memory references to other accessors.
内存中accessors没有对其他accessors的引用。
It contains accessors for properties and a validation method.
它包含属性访问程序和一个验证方法。
In the "Choose new accessors" dialog of the wizard, select Next.
在向导的“Choosenew accessors”对话框中,选择Next。
The control data accessors used in the methods are defined in next step.
这些方法中使用的控制数据访问器在下一步中定义。
As we have seen, accessors are endpoints that return resource representations.
正如我们所知,访问器是返回资源表示的端点。
Another (much misunderstood) setting also affects the reflection accessors.
另一种(极易造成误解的)设置也会影响反射存取器。
Fields should never be accessed directly; instead, accessors should be used.
决不应该直接访问字段;而应该使用访问器。
In the "new ActionForm class - Create new accessors..." dialog, select Add....
在“new ActionFormclass-Createnew accessors…”对话框中,选择add…。
This way these generic accessors can be used on any number of wrapped point objects.
这样的话,这些通用的访问器可以用在任意数量的包装的point对象上。
Properties with these illegal accessors tend to be ignored when mapping a bean to WSDL.
在将一个Bean映射到WSDL时,带有这些非法访问器的属性往往被忽略。
There are several X509 certificate property accessors on the X509Certificate class.
在 X509Certificate 类中有一些X509证书属性访问器。
In the create new accessors dialog, we create all the variables that we want to use.
在Createnew accessors对话框中,我们创建所有想要使用的变量。
As with accessors, the specified callbacks are invoked whenever a property is accessed.
像访问器一样,当一个属性被访问时指定的回调函数就会被激活。
Figure 4 shows some important accessors; it omits the corresponding accessor factories.
图4显示了一些重要的访问器;其中省略了对应的访问器工厂。
When the C# property has both get and set accessors, the read & write value should be used.
当 C#属性有get和set存取器时,应该使用read&write值。
You then use standard accessors to "inject" references to the objects your classes depend on.
然后用标准访问器将引用“注入”到类所依赖的对象中。
The important thing to understand is that you don't need to make all of your accessors public.
要明白重要的事情是不需要使所有的读写方法具有公有可视性。
After the fields and their accessors are declared, the methods of the Employee class come next.
字段及其访问器声明之后,下面出现的是employee类的方法。
The accessors read directly from, or write to, the respective positions in the state document model.
访问器直接对状态文档模型中的各个位置进行读写。
ActiveRecord dynamically creates accessors based on the column names of the database table that it is mapped to.
ActiveRecord根据映射的数据库表的列名动态创建访问器。
Several other methods, including text , HTML , and XML , perform double duty as both accessors and mutators.
还有一些方法,包括text 、html和xml,作为accessor和mutator同时执行两种任务。
It has fields corresponding to the database columns and the usual accessors (getters and setters) for each field.
它有与数据库列对应的字段及用于每个字段的常用存取器(getter和setter)。
Let's say that as a user of the Widget class, you don't know whether the accessors have value or reference semantics.
假设您是Widget类的一个使用者,您并不知道存取器具有值语义还是引用语义。
Set the accessors stereotype property to true, thereby indicating that add and remove accessors will be specified.
将accessors原型属性设置为true,从而说明将指定add和remove accessors。
Accessor methods come in two flavors: setters and getters (sometimes referred to as mutators and accessors, respectively).
访问器方法涉及两种方法:setters和getters(有时分别称为mutators和accessors)。
My experience is that you should always strive to make accessors protected, so only subclasses can access the attributes.
我的经验是应该总是使读写方法受保护,所以只有子类可以访问其属性。
Accessors reduce the risk of the fragile base class problem where changes in a superclass ripple throughout its subclasses.
读写方法减少了超类中的更改影响到其子类的这种脆弱的基类问题所带来的风险。
应用推荐