public class DefaultDecorationModelInheritanceAssembler extends Object implements DecorationModelInheritanceAssembler
Modifier and Type | Class and Description |
---|---|
class |
DefaultDecorationModelInheritanceAssembler.URLContainer
Contains an old and a new path.
|
ROLE
Constructor and Description |
---|
DefaultDecorationModelInheritanceAssembler() |
Modifier and Type | Method and Description |
---|---|
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.
|
public DefaultDecorationModelInheritanceAssembler()
public void assembleModelInheritance(String name, DecorationModel child, DecorationModel parent, String childBaseUrl, String parentBaseUrl)
assembleModelInheritance
in interface DecorationModelInheritanceAssembler
name
- a name, used for breadcrumb.child
- the child DecorationModel to be merged with parent.parent
- the parent DecorationModel not null.childBaseUrl
- the child base URL.parentBaseUrl
- the parent base URL.public void resolvePaths(DecorationModel decoration, String baseUrl)
resolvePaths
in interface DecorationModelInheritanceAssembler
decoration
- the DecorationModel.baseUrl
- the base URL.Copyright © 2005–2017. All rights reserved.