The Item class is shown in Listing 3.
Ite m类如清单3所示。
Set all of the item attributes on Content, including item class name.
在Content上设置所有条目性质,包括条目类名。
First, we will add a stub method to the Item class, as shown in Listing 4-8.
首先,我们将对物品类添加一个占位方法,如清单4 - 8所示。
In some cases, there may be no item class on an item, so null can be returned.
在某些情况下,条目中没有条目类,所以可以返回null。
System property descriptions in the OmniFind connector are stored in a global item class.
OmniFind连接器中的系统属性描述存储在一个全局条目类中。
The Sales item class offers a good example of member and nonmember binary operators .
中给出了成员和非成员二元操作符的良好例子。
Like system properties, global property descriptions are stored in the global item class by the connector.
与系统属性相似,连接器将全局属性描述存储在一个全局条目类中。
This set of properties is often associated with an item class, as we discussed in the answer to the previous question.
正如在回答前面的问题时所讨论的那样,这组属性通常与一个项目类相关联。
Repositories with more rigid item classes will restrict metadata operations to those properties within the item class.
具有更加严格的项目类的存储库会将元数据操作限制到项目类内部的属性范围内。
Each Content object will then be a member of the global item class, which will contain all of the afore-mentioned properties.
每个Content对象是全局条目类的一个成员,它包含前面提到的所有属性。
The default item class on a RepoItem is null, so the item class on all Folder objects in the example connector will also be null.
RepoItem 上的默认条目类是null,所以示例连接器中所有Folder对象上的条目类也是 null。
On each result row is a certain number of properties that are always accessible, and these properties became the global item class.
对于结果的每一行,有一定数量的总是能够访问的属性,这些属性就变成了全局项目类。
For each property in the Item class, a new element is created and associated with an element that corresponds to the property name.
对于item类中的每个属性,一个新元素被创建并关联到一个与该属性名对应的元素。
You are also setting the name of the item class at this point in time, which will be discussed when we talk about item properties.
还可以设置条目类的名称,这将在讨论条目属性时讨论。
In this case, a global item class can be defined for the connector, to serve as a way to retrieve those properties that can always be accessed.
在这种情况下,可以为连接器定义一个全局项目类,作为对那些一直可以进行访问的属性进行检索的方法。
When the connector needs to add a system property to a Content object, it will first look up the property description from the global item class.
当连接器需要将一个系统属性添加到Content对象中时,它首先从这个全局条目类查询属性描述。
It's important to note that not all of the properties in the item class will necessarily exist on every Content object in that class, and that is acceptable.
一定要注意,条目类中的所有属性不一定在这个类中的每个Content对象上都存在,这是可以接受的。
The Item class is the same one used in the previous article, but it no longer implements any manual serialization methods. Figure 1 depicts this simple setup.
item类与前一篇文章中使用的一样,但是不再实现任何手工序列化方法。
Thus, the OmniFind connector would only support a single, global item class for content and there could be an unlimited number of other ad-hoc properties per item.
所以,OmniFind连接器只为内容支持一种单一的全局项目类,这样每个项目可能会有无限多的专门的其他属性。
OmniFind is a repository that does not have any notion of an item class; instead, it relies on the user to define what properties can be set for a particular item.
OmniFind是一种没有任何项目类概念的存储库,相反,它依靠用户来定义该为某一个项目设置什么样的属性。
If I decided to use both the taxonomy and the category as folders, then the connector would then most likely map an item class to each, in order to distinguish them.
如果决定将分类法和类别都用作文件夹,那么连接器很可能将一个项目类映射到这两者,以便区分它们。
Property descriptions that aren't part of an item class can still be used to create properties; it's not required that a property description be part of an item class.
还可以使用不属于条目类的属性描述创建属性;不要求属性描述是条目类的一部分。
First, a folder object must be created, and then a number of attributes must be set on the folder, including the item class (if folder item classes are supported).
首先,必须创建一个Folder对象,然后必须在文件夹上设置许多性质,包括条目类(如果支持文件夹条目类的话)。
Because the example connector cannot know about the existence of the ad-hoc properties ahead of time, it does not store their property descriptions in the global item class.
因为示例连接器无法提前知道专用属性的存在,所以不在全局条目类中存储它们的属性描述。
If your derived toolbox item class creates multiple components that are located in different assemblies, you must ensure that references to these assemblies exist in your project.
如果衍生的工具箱项目类别会建立多个位于不同组件的元件,您必须确保这些组件的参考存在于专案中。
In this above code, even if the Order or Item class is mapped with an annotation, a separate XML file, or not at all (I would then have to map each field), I can still override it with this XML.
在上面的代码中,即使使用注释、单独的XML文件或不使用任何内容(必须映射每个字段)来映射order或item类,我仍能够使用此XML覆盖它。
In this version, the domain class (in yellow) includes an interface that defines the semantics of a schedule item.
在此版本中,域类(黄色部分)包含了一个定义日程项目语义的界面。
As I covered in the last column, signatures are an item added to the class file format by generics; only references to generic types have signatures.
正如我在前一期中介绍的,签名是泛型添加到类文件格式中的项目;只有对泛型的引用才有签名。
Take careful note that the last item on the command line is a class name.
请务必注意命令行的最后一项是类名。
Item是一个抽象类。
应用推荐