ModifiedBy

The element ModifiedBy refers to the code of a Modifier, which modifies the class and its descendants. In case the Modifier shall not modify a descendant of the Class the element ExcludeModifier must be defined at that specific descendant (see ExcludeModifier). EXAMPLE<Class code="C88" kind="category">...
  <SubClass code="C88.0"/>
  <SubClass code="C88.1"/>
  <ModifiedBy code="Md1" position="5"/>
</Class>
<Class code="C88.0" kind="category">
  <SuperClass code="C88"/>
</Class>
<Class code="C88.1" kind="category">
  <SuperClass code="C88"/>
  <ExcludeModifier code="Md1"/>
</Class>In the example both Class C88 and its descendant C88.0 are modified by Modifier Md1. At the descendant Class C88.1 the modifier is excluded, i.e. Class C88.1 is not modified by Modifier Md1.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
all xs:boolean true optional
The attribute all may be used to indicate that all ModifierClasses are valid. In such a case, the element ModifiedBy does not contain an element ValidModifierClass. The default value of the attribute all is true.
code xs:NMTOKEN required
The attribute code references the code of the Modifier.
position optional
The attribute position specifies the position for the code of the ModifierClass when the Modifier is used to generate the subclasses of the modified Class. The first position shall be specified by the number ‘1’.
variants xs:IDREFS optional
The attribute variants defines the list of variants in which this ModifiedBy element is valid. When the attribute is absent this ModifiedBy element is valid in all variants.

Used By

Element Class

Source

<xs:element name="ModifiedBy">
  <xs:annotation>
    <xs:documentation xml:lang="en-US">The element ModifiedBy refers to the code of a Modifier, which modifies the class and its descendants. In case the Modifier shall not modify a descendant of the Class the element ExcludeModifier must be defined at that specific descendant (see ExcludeModifier). EXAMPLE
      <Class code="C88" kind="category">...
        <SubClass code="C88.0"/>
        <SubClass code="C88.1"/>
        <ModifiedBy code="Md1" position="5"/>
      </Class>
      <Class code="C88.0" kind="category">
        <SuperClass code="C88"/>
      </Class>
      <Class code="C88.1" kind="category">
        <SuperClass code="C88"/>
        <ExcludeModifier code="Md1"/>
      </Class>In the example both Class C88 and its descendant C88.0 are modified by Modifier Md1. At the descendant Class C88.1 the modifier is excluded, i.e. Class C88.1 is not modified by Modifier Md1.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="Meta"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="ValidModifierClass"/>
    </xs:sequence>
    <xs:attributeGroup ref="attlist.ModifiedBy"/>
  </xs:complexType>
</xs:element>

Sample