Step 5: Define the XML output type.
步骤5:定义XML输出类型。
Step 1: Activate the JSON output type
步骤1:激活JSON输出类型
Step 2: Link routes with the new output type
步骤2:使用新的输出类型链接路由
Every output type definition has a unique name.
每个输出类型定义都有一个惟一名称。
Next, define a new JSON output type ( Listing 22)
接下来,定义一种新的JSON输出类型(清单22)
Creating a map between input and output type trees.
在输入类型树和输出类型树之间创建一个映射。
Step 3: Add support for the new output type in views.
步骤3:在视图中添加新的输出类型支持。
Like routes, output type configuration is expressed in XML.
和路由一样,输出类型配置也用XML表示。
The first argument is the output type — either XML or HTML.
第一个参数是输出类型,即XML或者HTML。
This table always contains 100 rows independently from the output type.
该表总是包含100行,与输出类型无关。
The number of rows produced in this table is independent from the output type.
该表中所生成的行的数量与输出类型无关。
Step 1: Define the output type, together with any headers, renderers, and layouts.
步骤1:定义输出类型以及任何标头、渲染器和布局。
Current output type temperature control system makes heating quicker and electricity saving.
电流输出式温度控制系统使加热快速省电。
The result of this operation is the same is if the rule had been run with its output type set to Statistics Only.
这一运行的结果与输出类型设置为StatisticsOnly的规则的结果相同。
Then, update the application's routing table and set up a catch-all route for the new XML output type (Listing 12).
然后,更新这个应用程序的路由表并为新的XML输出类型建立一个“全部捕获”路由(见清单12)。
If the output type is Statistics only, then the table is created, but then removed at the end of the execution.
如果输出类型为Statisticsonly,那么会创建表,但是会在执行的最后移除表。
The number of rows in this table is always the same as the number of tested records, independent of the output type of the rule.
此表中行数总是与所测试记录的数量相同,与规则的类型无关。
Download the Order.xsd file at the bottom of the article if you have not already done so and use it to create the output type tree.
如果没有完成上述过程,可以在本文结束部分下载Order .xsd文件,并使用它创建输出类型树。
If the output type is all records, then the table contains all of the evaluated records, independently from the result of the rule.
如果输出类型为allrecords,那么,表包含所有已评估记录,与规则的结果无关。
Register a new layout that uses it for the HTML output type in $WASP_ROOT/app/config/output_types.xml. Here's the addition you'll need to make
在 $WASP_ROOT/app/config/output_types.xml 中注册一个新布局,用于HTML输出类型。
Since this example REST API will initially support XML, it's necessary to define this output type, specify the relevant response headers and mark it as default.
由于该示例RESTAPI将初始地支持XML,所以有必要定义这种输出类型,指定相关的响应头并将之标记为默认。
The circuit can output analog voltage signals with positive and negative polarity according to the phase relation of encoder signals of orthogonal output type.
它可以根据正交输出型编码器信号的相位关系,输出具有正负极性的模拟电压信号。
The values in an enumeration set are typically used to provide input to a method although there are situations where they are useful to determine an output type.
枚举集中的值通常用于提供方法输入,但是有些情况下,它们还可用于判断输出的类型。
Taking a sensor of switch - output type NPN for example, its structural characteristic of the load driving unit and the driving pattern is introduced in this paper.
本文以三线制npn式开关量输出型传感器为例,介绍了传感器的负载驱动单元的结构特点及驱动方式。
If the output type is Statistics only, then the table is created and filled during the execution of the rule, but it is removed immediately after the rule terminates.
如果输出类型为Statisticsonly,那么将会在规则执行过程中创建并填充表,但是,在规则终止后会立即删除该表。
Through the magic of inheritance, you can now call this method in your SearchErrorView (Listing 16) to handle both validation and application errors for the XML output type.
通过神奇的继承关系,现在您可以在SearchErrorView(参见清单16)中调用这个方法来处理针对XML输出类型的验证和应用程序错误。
This route, placed at the top of the routing table, matches all requests ending with the.xml suffix and sets them up to use the XML output type. That's not all it does though.
这个路由放置在路由表的顶端,匹配所有以.xml后缀结尾的请求,并设置这些请求以使用xml输出类型。
This route, placed at the top of the routing table, matches all requests ending with the.json suffix and sets them up to use the json output type. That's not all it does though.
该路由放置在路由表的顶端,匹配所有以.json后缀结尾的请求,并将它们设置为使用json输出类型。
This means that URL requests that end in.rss are automatically set to use the RSS output type, URL requests that end in.pdf are automatically set to use the PDF output type, and so on.
这意味着以.rss结尾的URL请求被自动设置为使用rss输出类型,以.pdf结尾的URL请求被自动设置为使用pdf输出类型,以此类推。
If the output type is Meet all rules, then the table contains all of the evaluated records that verify the rule in case of a simple rule, or all records that verify all rules in case of a rule set.
如果输出类型是Meetallrules,那么,对于简单规则,该表包含已验证规则的所有已评估记录,对于规则集,则包含所有验证了全部规则的记录。
应用推荐