|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DecorationModelInheritanceAssembler
Manage inheritance of the decoration model.
| Field Summary | |
|---|---|
static String |
ROLE
Plexus lookup role. |
| Method Summary | |
|---|---|
void |
assembleModelInheritance(String name,
DecorationModel child,
DecorationModel parent,
String childBaseUrl,
String parentBaseUrl)
Manage inheritance of the decoration model between a parent and child. |
void |
resolvePaths(DecorationModel decoration,
String baseUrl)
Resolve relative paths for a DecorationModel given a base URL. |
| Field Detail |
|---|
static final String ROLE
| Method Detail |
|---|
void assembleModelInheritance(String name,
DecorationModel child,
DecorationModel parent,
String childBaseUrl,
String parentBaseUrl)
name - a name, used for breadcrumb.
If the parent model contains breadcrumbs and the child doesn't,
a child breadcrumb will be added to the merged model with this name. Not null.child - the child DecorationModel to be merged with parent.
Not null. If parent == null, the child is unchanged, otherwise
child will contain the merged model upon exit.parent - the parent DecorationModel. Unchanged upon exit.
May be null in which case the child is not changed.childBaseUrl - the child base URL.
May be null, in which case relative links inherited from the parent
will not be resolved in the merged child.parentBaseUrl - the parent base URL.
May be null, in which case relative links inherited from the parent
will not be resolved in the merged child.
void resolvePaths(DecorationModel decoration,
String baseUrl)
URI.relativize(java.net.URI), ie if any link in the decoration model
has a base URL that is equal to the given baseUrl, it is replaced by a relative link
with respect to that base.
decoration - the DecorationModel.
Not null.baseUrl - the base URL.
May be null in which case the decoration model is unchanged.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||