Step 1: Activate the JSON output type
步骤1:激活JSON输出类型
Next, define a new JSON output type ( Listing 22)
接下来,定义一种新的JSON输出类型(清单22)
Creating a map between input and output type trees.
在输入类型树和输出类型树之间创建一个映射。
Like routes, output type configuration is expressed in XML.
和路由一样,输出类型配置也用XML表示。
This table always contains 100 rows independently from the output type.
该表总是包含100行,与输出类型无关。
Step 1: Define the output type, together with any headers, renderers, and layouts.
步骤1:定义输出类型以及任何标头、渲染器和布局。
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输出类型。
The project template that is associated with the project icon you choose determines the output type and other options available for that project.
与您所选择的专案图示相关的专案范本,会决定该专案的输出类型和可使用的其他选项。
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,那么,对于简单规则,该表包含已验证规则的所有已评估记录,对于规则集,则包含所有验证了全部规则的记录。
You can mark up every route definition in the application's routing table with an output_type attribute, which specifies the output type to be used for that particular route. Here's an example.
您可以使用一个output _ type属性标记每个路由定义,该属性指定某个特定的路由将使用的输出类型。
The oil development economic estimate by application of economic limited value can provide the gist for gaining the best profit in oil field companies which vary from output type to profit type.
应用经济界限值进行油田开发经济评价,对石油企业由产量型转为效益型,以期获取最大利润提供了科学依据。
The oil development economic estimate by application of economic limited value can provide the gist for gaining the best profit in oil field companies, which vary from output type to profit type .
本文主要应用经济界限值进行油田开发经济评价,对石油企业由产量型转为效益型,以便取得最大利润提供了科学依据。
Here you can also see whether the input or output message type is used by the variable.
在这里还可以看到该变量使用的是输入消息类型还是输出消息类型。
Many times, a method accepts as input or returns as output a type that is actually not what the method wants.
许多时候,方法作为输入接受的或者作为输出返回的类型实际上不是该方法想要的类型。
Many times, a method accepts as input or returns as output a type that is actually not what the method wants.
许多时候,方法作为输入接受的或者作为输出返回的类型实际上不是该方法想要的类型。
应用推荐