Implement the create method from the Validator API.
实现ValidatorAPI的create方法。
RequestType — retrieves the HTTP request method from the request.
requestType——从请求检索HTTP请求方法。
Line 13 USES the observe_field method from the Prototype library.
第13行使用prototype库中的observe_field方法。
Doing so prevents the toString method from printing a lot of output.
这样做可以阻止toString方法输出过多内容。
In the default stateless session bean, add the remote method from Listing 1.
在缺省无状态会话Bean中,从清单1添加远程方法。
Select your publishing server and publishing method from the drop-down lists.
从下拉列表中选择发布服务器和发布方法。
Next, you instantiate the POJO by invoking the read method from the Serializer object.
接下来,通过从Serializer对象调用read方法,从而实例化POJO。
Let us use the method from the previous question and assume the 32-bit kernel is enabled.
让我们使用前一个问题中的方法并假设启用了32位内核。
To specify a particular method from overloaded methods, use the method-params element.
要指定重载方法中的特定方法,请使用method-params 元素。
The method from which the refactoring was originally done now contains a call to the new method.
首先完成重构的那个方法现在包括了一个对新方法的调用。
How do you prevent this method from getting called, while at the same time clicking the checkbox?
在单击复选框的同时如何才能避免调用该方法?
In this case you used the properties method from the Story class. Take a look at that in Listing 15.
在本例中,您使用的是Story类的properties方法,如清单15所示。
Notice that Listing 3 refactors the main() method from Listing 2 to the execute() method of the task.
注意,清单3 将 清单2 中的main()方法重构为任务的execute() 方法。
The next thing you have to do is override any method from the base class or classes to populate the column.
接下来需要覆盖来自基类或者类的任何方法来填充列。
First, I've used a FileScanner to find every checksum file created from the checksum method from Listing 8.
首先,我用FileScanner找到清单8中的checksum方法创建的每个校验和文件。
The first one, Extract method, as you might expect, will create a new method from code you've selected.
第一个Extract Method的意思您可能已经猜到了,它根据您选中的代码创建新的方法。
Select the method from the list that appears at the end of the drag action (for example, buttonPressedtest).
从在拖动操作(例如,buttonPressedtest)结束时出现的列表中选择。
As with properties, any attempt to call a private method from outside the containing class causes a fatal error.
与属性一样,尝试从包含类外部调用私有方法将导致致命错误。
Listing 1 illustrates another difference between SWT and the JDK: Composites lack the add method from containers.
清单1展示了SWT与jdk之间的另一个区别:组合没有容器中的add方法。
You access database metadata in JDBC by calling the appropriate method from the DatabaseMetaData object, as shown in Listing 3.
通过调用DatabaseMetaData对象中的适当方法在JDBC中访问数据库元数据,见清单 3。
You can call the same action method from multiple places in the parent view and pass it parameters to specify what is rendered.
你可以在父视图的不同位置调用相同的动作方法,通过参数传递决定要呈现什么。
After all the previously pickled instances have been updated and re-pickled, we can remove the _setstate_ method from the class definition.
更新和重新pickle先前进行过pickle的所有实例之后,现在可以从类定义中除去_ setstate _方法。
To call a static method from outside of its class, use the class name together with the scope resolution operator and the name of the method.
要从类外部调用静态方法,可使用类名加上范围解析符和方法名。
When you finally realize that a method has a parameter wrong, and in fact isn't overriding a method from a superclass, much bitterness can result.
当最后认识到方法的参数有错,且该方法实际上没有覆盖超类中的方法时,您可能更感到难受。
After calling Validator with the help of base , RequiredValidator deletes the base method from the current object because it is not needed anymore.
在base的协助下调用Validator之后,RequiredValidator从当前对象删除base方法,因为不再需要它。
To use the doQuery method, you need to establish a database connection and call the method from within a try ... catch block, as shown in Listing 4.
要使用doQuery方法,需要建立数据库连接并且从try ...catch块内调用方法,如清单4 所示。
As both decorators apply to the same set of workbench resources, the xml-only decorator can borrow the method from the coded decorator as we'll see shortly.
由于两种decorator都应用于同一组工作台资源,所以纯x ml的decorator可以从编码的decorator那里借用方法,如我们接下来马上要介绍的。
What's really nice is that you can double-click the method from the Metrics list and the plugin opens the source code for this method in the Eclipse editor.
真正妙的是您可以双击Metrics列表中的方法,该插件会在Eclipse编辑器中为此方法打开源代码。
This bit of code decoded the object and method from a SOAPenvelope, instantiated the local object, and returned the result to be wrapped up in a return SOAP envelope.
这个代码位将SOAP 信封的对象和方法进行解码,实例化本地对象,并返回将会在返回 SOAP 信封中被包装起来的结果。
When the project is built, an XML file will be created with all of the XML comments included. Here is a look at a method from the NUnit example documented with XML.
当该项目生成时,将创建一个XML文件,其中包含所有xml注释。
应用推荐