Class item onto a class diagram.
“抽象类”项拖到类图上。
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.
与系统属性相似,连接器将全局属性描述存储在一个全局条目类中。
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.
因为示例连接器无法提前知道专用属性的存在,所以不在全局条目类中存储它们的属性描述。
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对象的关系。
Note that you added an Action and also mentioned a class that would be invoked when a user clicks the menu item.
请注意,您添加了一项Action,并且还提供了当用户单击该菜单项时应该调用的类。
The last recipe item in the list, shown in Listing 5, contains an additional HTML class: online-required.
列表中的最后一个食谱项目,如清单5所示,包含一个额外的html类:online - required。
What my todo class doesn't allow me to do yet is save that todo item so I can see it again.
我的todo类还不允许我保存那个todo项,如果允许的话我就可以再次看到它。
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是一种没有任何项目类概念的存储库,相反,它依靠用户来定义该为某一个项目设置什么样的属性。
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)时,类装入器会检查以下规则。
Each Content object will then be a member of the global item class, which will contain all of the afore-mentioned properties.
每个Content对象是全局条目类的一个成员,它包含前面提到的所有属性。
It's just important that the ShoppingListManager class does something to persist the user's shopping list item.
重要的是,ShoppingListManager类做了一些事情来持久化用户的购物清单中的商品。
应用推荐