This set of properties is often associated with an item class, as we discussed in the answer to the previous question.
正如在回答前面的问题时所讨论的那样,这组属性通常与一个项目类相关联。
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.
在这种情况下,可以为连接器定义一个全局项目类,作为对那些一直可以进行访问的属性进行检索的方法。
In this version, the domain class (in yellow) includes an interface that defines the semantics of a schedule item.
在此版本中,域类(黄色部分)包含了一个定义日程项目语义的界面。
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.
如果决定将分类法和类别都用作文件夹,那么连接器很可能将一个项目类映射到这两者,以便区分它们。
On each result row is a certain number of properties that are always accessible, and these properties became the global item class.
对于结果的每一行,有一定数量的总是能够访问的属性,这些属性就变成了全局项目类。
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.
正如我在前一期中介绍的,签名是泛型添加到类文件格式中的项目;只有对泛型的引用才有签名。
Repositories with more rigid item classes will restrict metadata operations to those properties within the item class.
具有更加严格的项目类的存储库会将元数据操作限制到项目类内部的属性范围内。
Like system properties, global property descriptions are stored in the global item class by the connector.
与系统属性相似,连接器将全局属性描述存储在一个全局条目类中。
Take careful note that the last item on the command line is a class name.
请务必注意命令行的最后一项是类名。
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覆盖它。
For each property in the Item class, a new element is created and associated with an element that corresponds to the property name.
对于item类中的每个属性,一个新元素被创建并关联到一个与该属性名对应的元素。
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.
还可以使用不属于条目类的属性描述创建属性;不要求属性描述是条目类的一部分。
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类与前一篇文章中使用的一样,但是不再实现任何手工序列化方法。
Change the type of Item: : comment to the newly created comment class.
将Item:comment的类型改为新建立的comment类。
The one line of code in the class body of Order defines its relationship to the Item object.
在Order类体中有一行代码定义了它与Item对象的关系。
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是一种没有任何项目类概念的存储库,相反,它依靠用户来定义该为某一个项目设置什么样的属性。
For each item type there is a separate item handle class used to represent references to items of that type; item handles consist of item type and item id.
对于每个项类型,存在一个单独的项句柄类,用于表示对该类型的项的引用;项句柄由项类型和项id组成。
System property descriptions in the OmniFind connector are stored in a global item class.
OmniFind连接器中的系统属性描述存储在一个全局条目类中。
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对象上都存在,这是可以接受的。
Given an object being tested (such as item in Listing 5) and a target class (Integer) being cast to, the class loader checks the following rules.
当检查对象(例如清单5中的item)并把类型转换成目标类(Integer)时,类装入器会检查以下规则。
It's just important that the ShoppingListManager class does something to persist the user's shopping list item.
重要的是,ShoppingListManager类做了一些事情来持久化用户的购物清单中的商品。
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。
The Item class is shown in Listing 3.
Ite m类如清单3所示。
When you have added the definition for the factory, you get a text item with the fully qualified package and class name for it.
添加了工厂的定义之后,您将获得一个文本项,其中包含工厂的完全限定包和类名。
These classes define methods for modifying all aspects of the item represented by the class, including the actual bytecode body of a method or constructor.
这些类定义了修改由它们所表示的对象的所有方法的方法,包括方法或者构造函数中的实际字节码内容。
After it has determined the item type, your connector will need to construct the item in the appropriate class and return it to the user.
在判断条目类型之后,连接器需要在适当的类中构造条目,并将它返回给用户。
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.
因为示例连接器无法提前知道专用属性的存在,所以不在全局条目类中存储它们的属性描述。
应用推荐