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对象中时,它首先从这个全局条目类查询属性描述。
Finally, the third kind of property in the example connector, the ad-hoc property, gives no way of determining what the property description should be.
最后,对于示例连接器中的第三种属性——专用属性,无法判断属性描述应该是什么。
All that you can do in this case is to define a generic, unrestrictive property description for each ad-hoc property, and use it to create each property object.
在这种情况下,只需为每个专用属性定义一个一般的不受限制的属性描述,并使用它创建每个Property对象。
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.
还可以使用不属于条目类的属性描述创建属性;不要求属性描述是条目类的一部分。
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.
还可以使用不属于条目类的属性描述创建属性;不要求属性描述是条目类的一部分。
应用推荐