如清单4所示,为单个自定义复杂类型数组生成的XML描述很长。
As shown in Listing 4, long XML descriptions are generated for a simple array of a self-defined complex type.
Rails同时为许多其他对象提供了合理的blank ?定义:true,false,空数组及哈希表,数值类型,甚至是Object类本身。
Rails provides reasonable definitions of blank? For several other objects too: true, false, empty arrays or hashes, numeric types, and even the object class.
GenericTemplate实例包含类的基本类型参数信息,还有为类定义的字段的数组。
The GenericTemplate instance holds the basic type parameter information for the class, along with the array of fields defined for the class.
简单的数据类型仅仅是冰山一角 —XJConf还能够定义相关配置变量的集合,并将其转化成原生PHP数组。
Simple data types are just the tip of the iceberg—XJConf also lets you define collections of related configuration variables, and converts these into native PHP arrays.
要将属性定义为数组类型,只需将maximum属性的缺省值从1更改为n,如图3所示。
To define attributes as an array type, you just change the default value of the Maximum attribute from 1 to n, as Figure 3 shows.
常见的基本类型有string、integer和boolean,不过,后面将看到还能将元素映射为数组或自定义类。
Common primitive types are string, integer and Boolean; however, as you'll see a little further along in this article, you can also map an element to an array or a custom class.
具有上面某个已定义类型的数组。
注意:数组需要在lsxsd . lss文件内定义的ARRAY_HOLDER数据类型之一中返回(本系列的上一篇文章更详细地讨论了这种情况)。
NOTE: the array needs to be returned within one of the ARRAY_HOLDER data types defined in the lsxsd.lss file (the previous article in this series discusses this situation in more detail).
TypeDescription类只是个抽象基类,其中定义了处理三种类型的方法:原生类型、数组和类实例。
The TypeDescription class is just an abstract base class with methods defined for dealing with three kinds of types: primitives, arrays, and instances of classes.
当然,字符串数组不是惟一可以接受或返回的数组类型,INTEGERARRAY_HOLDER、LONGARRAY_HOLDER、和lsxsd.lss 文件中定义的类似的类也可以为其他原生数据类型提供相同的功能。
Of course, string arrays are not the only kind of arrays you can accept or return. There are also INTEGERARRAY_HOLDER, LONGARRAY_HOLDER, and similar classes defined in the lsxsd.lss
UIMA还为Boolean、Integer和Double等特征定义基础范围类型,并为执行原始类型定义数组。
UIMA also defines basic range types for features such as Boolean, Integer, and Double, as well as arrays of these primitive types.
最后,您还可以找到由用户定义的XMLschema类型构造而成的数组。
Finally, you can also find arrays constructed from user-defined XML schema types. Listing 6 shows the definition of just such a type.
要创建一个类型为a [m]的一维数组(这里的m是一个已经被定义和初始化的整数变量),可以在uml模型中在这个数组变量a上运行cpp _type原型。
To create a single dimensional array of the type a [m] (where m is an integer variable already defined and initialized), apply the cpp_type stereotype on the array variable a in the UML model.
安全性自定义特性不支持数组或类型字段和属性。
Security custom attributes do not support array or Type fields and properties.
定义数据的最小单位。一个数据项类型可以表示一个值或一个取单值或多值的数组。
The smallest unit of defined data. A data item type can represent a single value or an array of one or more values.
通过将指定的特性数组用作筛选器并使用自定义类型说明符,返回指定组件的事件的集合。
Returns the collection of events for a specified component using a specified array of attributes as a filter and using a custom type descriptor.
数组类型的变量有三个重要的限制:数组长度固定不变,在编译时必须知道其长度,数组只在定义它的块语句内存在。
A variable of array type has three important limitations: Its size is fixed, the size must be known at compile time, and the array exists only until the end of the block in which it was defined.
用其他类型定义的类型,如引用。第四章将介绍另外两种复合类型:指针和数组。
A type, such as a reference, that is defined in terms of another type. Chapter 4 covers two additional compound types: Pointers and arrays.
通过将指定的特性数组用作筛选器并使用自定义类型说明符,返回指定组件的属性的集合。
Returns the collection of properties for a specified component using a specified array of attributes as a filter and using a custom type descriptor.
返回为此成员定义的自定义特性的数组(按类型标识)。
Returns an array of custom attributes that are defined for this member, identified by type.
返回此成员上定义的自定义特性的数组(由类型标识),如果该类型没有自定义特性,则返回空数组。
Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type.
由指针和数组定义可以看出,指针和数组是完全不同的类型。但数组名是指针吗?
Array types are characterized by their element type and by the number of elements in the array.
由指针和数组定义可以看出,指针和数组是完全不同的类型。但数组名是指针吗?
Array types are characterized by their element type and by the number of elements in the array.
应用推荐