java uml diagram   The quickest way to understand how Java code is structured

 

Index

 

DeclaredBy

Description

Use the DeclaredBy tag to specify that a Java element be declared within the scope of a Java type which confirms to a given type selector.

Parameters

Attribute Description Required
typeSelector the name of the type selector to which the declarer of this element must conform for this element to be included Yes
forwardedSwitches the comma separated names of the switches which the parent requires to be passed to the type selector No
anded give up assessing the Java element against sibling criteria if this one fails No

Declared in

TypeSelector, MethodSelector or FieldSelector

Examples

<FieldSelector name="valueField">
<DeclaredBy typeSelector="valueObjects"/>
</FieldSelector>

Declares a field selector which accepts all fields declared in a type accepted by the type selector named valueObjects.

<FieldSelector name="fieldDeclaredIn" requiredSwitches="declarerName">
<DeclaredBy typeSelector="typesNamed" forwardedSwitches="declarerName"/>
</FieldSelector>

Declares a field selector which accepts all fields declared in a type accepted by the type selector named valueObjects.