public interface EmbeddedMemberSource extends MemberSource
Modifier and Type | Method and Description |
---|---|
Member |
getUpstreamMember()
Retrieves an optional
Member reference pointing to a member of a foreign Java class that triggered
rendering of the class that contains the current member. |
getDeclaringClass, getReportingClass, getValueType
Member getUpstreamMember()
Member
reference pointing to a member of a foreign Java class that triggered
rendering of the class that contains the current member. This is useful for rendering containers such as
FieldSet
s.
Ex.: Class named "Foo
" contains the field private FooFieldset fooFieldset;
. Class named
"FooFieldset
" contains the field private String bar
. As the plugin renders markup for
Foo
, it needs to render members of FooFieldset
inside. As it reaches the field map bar
,
it will use the values reportingClass = Foo.class
and upstreamMember = Foo#fooFieldset
. These
values can be then used to form up a rendering context for the current field bar
: in particular, to get
embeddable settings
Member
referenceCopyright © 2024 Exadel, Inc.. All rights reserved.