public static interface DocumentFactoryBuilder.Navigate
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
navigate(java.lang.Object parent,
java.lang.Object value,
java.lang.String member,
java.lang.String metadata)
Plugin works by accepting parent object, current evaluated object, member used for navigation and detected metadata.
|
java.lang.Object navigate(java.lang.Object parent, java.lang.Object value, java.lang.String member, java.lang.String metadata)
Plugin works by accepting parent object, current evaluated object, member used for navigation and detected metadata. It is only invoked when metadata is present and custom navigation separator is specified.
By default value is provided by member evaluation of parent object. This means method or field evaluation, or value access in Map via key/member.
Metadata is extracted between navigation separator and navigation char. Example tag for semicolon navigation separator (:) and default navigation char (.):
[[items:at(1).property]]
will navigate from root object over items member and at(1)
metadata
This way plugin can intercept default navigation over items member
and instead of returning list will return second element of the list as a result.
All registered plugins will be called.
parent
- parent object instancevalue
- current result of navigationmember
- member specified in tag for navigationmetadata
- metadata part for navigation