<memberOf>

<memberOf> specifies class membership of the parent element or class.
組件tagdocs — 22 Documentation Elements
屬性
keyspecifies the identifier for a class of which the documented element or class is a member or subclass
狀態 非必備的
資料類型
data.name
modespecifies the effect of this declaration on its parent module.
狀態 非必備的
合法的值是:
add
this declaration is added to the current definitions [預設值]
delete
this declaration and all of its children are removed from the current setup
屬於classes
可包含
gaiji: g
宣告
element memberOf
{
   att.global.attributes,
   attribute key { data.name }?,
   attribute mode { "add" | "delete" }?,
   macro.xtext
}
例子
<memberOf key="model.divLike"/>
<memberOf key="att.identified"/>

This element will appear in any content model which references model.divLike, and will have attributes defined in att.identified (in addition to any defined explicitly for this element).

Elements or classes which are members of multiple (unrelated) classes will have more than one <memberOf> element, grouped by a <classes> element. If an element is a member of a class C1, which is itself a subclass of a class C2, there is no need to state this, other than in the documentation for class C1.
Any additional comment or explanation of the class membership may be provided as content for this element.