Listing 10 shows the amended Exporter: : add method.
清单10展示了修改后的Exporter: add方法。
The add method appends a validator instance to the array.
add方法可将一个验证器实例追加到该数组。
The add method adds a new item to the list, then returns the list in HTML.
add方法用于在列表中添加新的项目,然后再在HTML中返回列表。
The add method adds an E-mail to the queue and is meant to be used by the front end.
add方法向队列中添加一个电子邮件,这个方法由前端使用。
From there, you use the Add method, which creates a document and returns a reference to it.
从那里,您使用Add方法,这将创建一个文档并返回一个对该文档的引用。
All the test suites are eventually added to the master test suite using the add method.
最终使用add方法,把所有测试套件添加到主测试套件中。
The developer can also add method overloads that pass scenario-specific default values.
开发人员还可以添加一些方法重载,用于传递方案特定的默认值。
The client must convert the IOR to a realistic object with the Add method that it can call to.
客户机必须用add方法将IOR转换成它可以调用的实际对象。
From there, use the add method, which creates a new document and returns a reference to it.
然后使用add方法创建一个新文档并返回其引用。
It looks like the add method is something you should override in FixedList, as in Listing 11.
似乎add方法应当在FixedList中被重写,如清单11所示。
Finally, in the products add method, you could have checked to make sure the user had permissions.
最后,在productsadd方法中进行检查以确保用户具有权限。
You could fall back on type checking inside the add method, but that is not elegant and inflexible.
您可以依赖add方法内部的类型检查,但这并不优雅而且不固定。
The add method takes just one parameter, which is a string form of the value you want to provide.
add方法只采用了一个参数,该参数是想要提供的值的字符串形式。
The rest of the view provides a convenient way to add method overrides for common SIP servlet methods.
视图余下的部分提供了方便的方法来添加公共SIPservlet方法的方法覆盖。
To add a new Material object to your design, you need to invoke the add method of the Materials class.
要将一个新的Material对象添加到设计中,需要调用Materials类的add方法。
The add method just adds the to-do item to the table, then returns new contents for the results tag.
add方法把to - do项添加到表中,然后为得到的标记返回新的内容。
Write a couple of tests, as in Listing 16, to verify that the new overloaded add method behaves as expected.
编写两个测试,如清单16所示,检验新的重载后的add方法是否如期望的那样运行。
The add method is implemented within our server running in cyberspace at the address defined in the IOR.
add方法在服务器中实现,而该服务器在IOR中定义的地址上的电脑空间中运行。
Listing 1 illustrates another difference between SWT and the JDK: Composites lack the add method from containers.
清单1展示了SWT与jdk之间的另一个区别:组合没有容器中的add方法。
This page USES the form_remote_tag to submit the contents of the simple form to the add method in the controller.
这个页面使用form_remote_tag把简单表单的内容提交到控制器中的add方法。
Instead of throwing an unchecked exception with a call to the add method, you just get false returned by offer .
它不是对调用add方法抛出一个unchecked异常,而只是得到由offer返回的false。
The add method no longer does anything, because a new method called add_ajax handles the data coming back from the client.
add方法不再做任何事,因为有一个新的方法add_ajax处理客户机返回的数据。
For instance, adding elements to a Queue could be done with the add method of Collection, throwing an unchecked exception on failure.
例如,向Queue添加元素可以用Collection的add方法来实现,它在失败时会抛出未检测异常。
Now, the items array can be private because the descendant classes use the protected add method to add configuration items to the list.
现在,项阵列可以是private的,因为子类使用受保护的add方法将配置项添加到列表中。
For example, notice that Groovy allows me to omit parentheses in some places (like the ones around the argument to the add method).
例如,请注意Groovy允许在有些地方删除括号(像围绕add方法的参数这种情况)。
We use the extended add method so that we can listen to a server even if it is currently stopped (in which case the MBean is not yet activated).
我们使用扩展的添加方法,这样就能侦听服务器,即使它当前已停止(在此种情况下,MBean还未被激活)。
If some of your attributes are multivalued, you can call the add method for that attribute any number of times to supply all the required values.
如果某些属性是多值的,那么可以多次调用属性的add方法来提供必要的值。
The authorize.tag file (see Listing 14) has two attributes (named function and script) whose values are passed to the add method of AuthorizedCalls.
tag文件(见清单14)有两个属性(function和script),这两个属性的值被传递到Authorized Calls的add方法。
(Whether or not this add method should throw an UnsupportedOperationException like the other add method does is a design decision you can make on your own.)
(这个add方法是否应该像另一个add方法那样抛出一个UnsupportedOperationException,您可以自己做出这个设计决策)。
When you put the example SCA application into a debugger and place a breakpoint on the AddService add method, you see a call stack trace similar to Listing 4.
当使用调试器调试示例SCA应用程序并在AddServiceadd方法上设置断点时,将看到如清单 4 所示的调用堆栈跟踪。
应用推荐