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连接器中的系统属性描述存储在一个全局条目类中。
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。
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对象上都存在,这是可以接受的。
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.
还可以使用不属于条目类的属性描述创建属性;不要求属性描述是条目类的一部分。
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.
因为示例连接器无法提前知道专用属性的存在,所以不在全局条目类中存储它们的属性描述。
First, we will add a stub method to the Item class, as shown in Listing 4-8.
首先,我们将对物品类添加一个占位方法,如清单4 - 8所示。
For each property in the Item class, a new element is created and associated with an element that corresponds to the property name.
对于item类中的每个属性,一个新元素被创建并关联到一个与该属性名对应的元素。
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类与前一篇文章中使用的一样,但是不再实现任何手工序列化方法。
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类与前一篇文章中使用的一样,但是不再实现任何手工序列化方法。
应用推荐