通过对EZUSB枚举模式的研究,了解EZUSB怎样通过本身的接口下载程序,以便更好的发掘设备的功能。
We know that how EZUSB interface itself is used to download code via researching enumeration models of EZUSB, so that the functions of device are performed thoroughly.
除了标准化元数据术语之外,DCMI还提供了根据枚举或者模式规范选择值的建议。
In addition to standardizing metadata terms, DCMI provides recommendations for choosing values, either by enumeration or specification of patterns.
当然,编辑原始模式使其包含新枚举值是最直接的方法。
Editing the original schema to include the new enumerated values is, of course, the most direct approach.
如果想使用相同的语义元素来包含基本枚举列表和扩展枚举列表,可以考虑解决方案3(与模式联合)。
If you want to use the same semantic element to contain both base enumerations and extended enumerations, consider solution 3 (union with a pattern).
XML模式设计者和实现人员需要一种方法来扩展现有的枚举列表。
XML schema designers and implementers need a way to extend existing enumerated lists.
这些指导原则可以使模式设计者找到实用的最佳实践,而且可以帮助他们创建易于实现、可扩展的枚举列表。
These guidelines can empower schema designers with real-world, practical best practices and can help create easy-to-implement, extensible enumerated lists.
解决方案3:创建一个模式,并与原始枚举类型结合。
Solution 3: Create a pattern, and combine it with the original enumerated type.
我们会在《第13章-应用程序设计》的“枚举vs .模式匹配”章节重温这个话题。
We'll revisit this topic in the section called "Enumerations vs. Pattern Matching" in Chapter 13, Application Design.
使用所谓的facets,您可以派生新的类型,表示其他某个类型值的更小子集,比如通过枚举、范围或模式匹配来定义子集。
Using what are called facets, you can derive new types that represent a smaller subset of values of some other types, for example, to define a subset by enumeration, range, or pattern matching.
解决方案1:编辑原始模式使其包含新枚举值。
Solution 1: Edit the original schema to include the new enumerated values.
Genericode(参阅参考资料)建议在第二层对枚举列表进行验证,脱离初始的XML模式解析器验证过程。
The Genericode effort (see Resources) recommend the validation of enumerated lists in a second layer and outside the initial XML schema parser validation process.
可以使用模式来定义针对性别、婚姻状况和最喜欢颜色的枚举。
You'll use a schema that defines enumerations for gender, marital status, and favorite color. Here's a sample instance document.
保留模式的本地副本,然后编辑这些模式以支持公司使用的枚举值。
Keep a local copy of the schemas, and edit them to support the enumerated values your enterprise USES.
模式设计者和实现人员需要一种扩展XML模式中现有枚举列表的方法。
Schema designers and implementers need a way to extend existing enumerated lists in XML schema.
举例来说,一个团队需要处理一个区域产业协会的枚举列表(或任意现有列表)为例,并根据使用修改模式组件。
Take, for example, a team that works with a domain industry consortia enumerated list (or any preexisting list) and adapts schema components for its use cases.
当使用XML模式对数据建模时,枚举值被显式列出。
When you model data with XML schema, enumerated values are listed explicitly.
最后,模式(Schema)中的枚举类型可能是原始类型的联合(union)的一个组成部分。
Finally, an enumerated type may, in a Schema, be part of a union with a primitive type.
先前的模式提供 MaritalStatus组件和值的枚举列表,如 清单1 所示。
The preexisting schema offers a MaritalStatus component with an enumerated list of values, as in Listing 1.
它同样可以枚举所有支持显示模式。
此循环构造用于循环访问可枚举集合(例如,范围表达式、序列、列表、数组或其他支持枚举的构造)中的模式匹配项。
This looping construct is used to iterate over the matches of a pattern in an enumerable collection such as a range expression, sequence, list, array, or other construct that supports enumeration.
返回与搜索模式匹配的文件信息的可枚举集合。
Returns an enumerable collection of file information that matches a search pattern.
返回与搜索模式匹配的文件信息的可枚举集合。
Returns an enumerable collection of file information that matches a search pattern.
应用推荐