通过枚举器检索的每个值都应与结果集的一行对应。
Each value retrieved via the enumerator should correspond with one row of the resultset.
这个枚举器将使用比较器作为排序算法,从记录存储创建一个记录结果集。
The enumerator will create a result set of records from the record store, using the comparator as the sorting algorithm.
使用比较器进行排序是使用枚举器时的一种选择,另外一种选择是使用过滤器进行搜索。
Sorting with a comparator is one option when working with an enumerator, searching with a filter is the other.
如果将这三者——枚举器、比较器和过滤器——结合在一起,您将可以查找特定的记录,并按顺序返回结果。
If you combine all three — the enumerator, comparator, and filter — you can search for specific records and return them in sorted order.
枚举器将以记录比较器确定的顺序迭代所有记录(或者如果提供了一个可选的记录过滤器,那么只是一个子集)。
The enumerator will iterate over all of the records (or only a subset, if an optional record filter has been supplied) in an order determined by a record comparator.
测试枚举器中是否还含有元素。
用给定枚举器指定的序列替换受控序列。
Replaces the controlled sequence with the sequence that is designated by the given enumerator.
返回一个循环访问字符串的文本元素的枚举器。
Returns an enumerator that iterates through the text elements of a string.
提供枚举器以按级别(如计算机策略和用户策略)访问安全策略层次结构。
Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.
如果枚举器对象中至少还有一个元素可提供时,返回枚举器的下一个元素。
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
在代码中加入一个记录枚举器的一个最大好处在于枚举器中包含搜索记录存储以及以排序的顺序提取记录的选项。
One of the primary benefits of incorporating a record enumerator into your code is that it includes options for searching the record store, and for retrieving records in sorted order.
这个字符串被保存在私有变量中,这样当枚举器调用matches()方法创建结果集的时候就可以访问这个字符串。
The string is saved in a private variable so we have access to the string when the enumerator calls the matches() method to create the result set.
与RecordComparator类似,RecordFilter也是通过在枚举器代码中增加一个方法matches实现的。
Like the RecordComparator, the RecordFilter is implemented by the addition of a single method, matches , to the enumerator code.
用解析器验证枚举列表。
缺点:解析器不验证枚举值。
Disadvantage: Enumerated values are not validated by the parser.
如果既没有指定过滤器又没有指定比较器,枚举将以未定义的顺序遍历记录存储中的所有记录。
If neither the filter nor the comparator are specified, the enumeration will traverse all records in the record store in an undefined order.
便携设备:允许应用程序枚举诸如音乐播放器、数码相机等连接设备上的内容。
Portable devices: Allow applications to enumerate content on connected devices like music players, digital cameras etc.
如果不想在解析器中解析枚举值,可以考虑Genericode方法或使用解决方案5或解决方案6。
If you want to keep enumerated values out of the parser, consider the Genericode approach, or use solution 5 or solution 6.
在这里,布局枚举持有文件片段的服务器、每个服务器上文件片段的大小,以及每个片段的NFS文件句柄。
Here, the layout enumerates the servers that hold the pieces of the file, the size of the stripe on each server, and the NFS file handle of each segment.
紧跟comparator类之后的代码创建了一个比较器的实例,并在创建记录枚举时将其作为一个参数。
The comparator class is followed by the code to create an instance of the comparator and pass this as a parameter when creating a record enumeration.
查找器方法返回bean的Remote接口或一个Remote接口的枚举。
Finder methods return the bean's Remote interface or an enumeration of Remote interfaces.
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.
例如,如果语句以一个与“enum”(声明一个枚举)相应的标记作为开始,CDT解析器会试图将该语句同enum语句的抽象模型匹配起来。
For example, if a statement starts with a token corresponding to "enum" (declaring an enumeration), the CDT parser will try to match the statement to its abstract model of an enum statement.
在这个示例中,我们有一个数据库管理器的类,该类保持了所有到数据库的活动连接,并且提供了一个枚举所有这些连接的方法。
In this example, we have a database manager class that keeps track of all active connections to the database and provides a method for enumerating those connections.
无法枚举域。找不到浏览器服务器。
若没有这个值,一些编译器将允许这个枚举以非32位的方式编译。
Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits.
ClaimsIdentity的实例是调用用户管理器的CreateIdentityAsync方法而创建的,在其中传递了一个用户对象和DefaultAuthenticationTypes枚举中的一个值。
Instances of ClaimsIdentity are created by calling the user manager CreateIdentityAsync method, passing in a user object and a value from the DefaultAuthenticationTypes enumeration.
ClaimsIdentity的实例是调用用户管理器的CreateIdentityAsync方法而创建的,在其中传递了一个用户对象和DefaultAuthenticationTypes枚举中的一个值。
Instances of ClaimsIdentity are created by calling the user manager CreateIdentityAsync method, passing in a user object and a value from the DefaultAuthenticationTypes enumeration.
应用推荐