org.apache.maven.doxia.site.decoration.inheritance
Class DefaultDecorationModelInheritanceAssembler

java.lang.Object
  extended by org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler
All Implemented Interfaces:
DecorationModelInheritanceAssembler

public class DefaultDecorationModelInheritanceAssembler
extends java.lang.Object
implements DecorationModelInheritanceAssembler

Manage inheritance of the decoration model.

Version:
$Id: DefaultDecorationModelInheritanceAssembler.java 884677 2009-11-26 19:39:01Z hboutemy $
Author:
Brett Porter, Henning P. Schmiedehausen

Nested Class Summary
 class DefaultDecorationModelInheritanceAssembler.URLContainer
          Contains an old and a new path.
 
Field Summary
 
Fields inherited from interface org.apache.maven.doxia.site.decoration.inheritance.DecorationModelInheritanceAssembler
ROLE
 
Constructor Summary
DefaultDecorationModelInheritanceAssembler()
           
 
Method Summary
 void assembleModelInheritance(java.lang.String name, DecorationModel child, DecorationModel parent, java.lang.String childBaseUrl, java.lang.String parentBaseUrl)
          Manage inheritance of the decoration model between a parent and child.
 void resolvePaths(DecorationModel decoration, java.lang.String baseUrl)
          Resolve relative paths for a DecorationModel given a base URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDecorationModelInheritanceAssembler

public DefaultDecorationModelInheritanceAssembler()
Method Detail

assembleModelInheritance

public void assembleModelInheritance(java.lang.String name,
                                     DecorationModel child,
                                     DecorationModel parent,
                                     java.lang.String childBaseUrl,
                                     java.lang.String parentBaseUrl)
Manage inheritance of the decoration model between a parent and child.

Specified by:
assembleModelInheritance in interface DecorationModelInheritanceAssembler
Parameters:
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.

resolvePaths

public void resolvePaths(DecorationModel decoration,
                         java.lang.String baseUrl)
Resolve relative paths for a DecorationModel given a base URL.

Specified by:
resolvePaths in interface DecorationModelInheritanceAssembler
Parameters:
decoration - the DecorationModel.
baseUrl - the base URL.


Copyright © 2005-2011. All Rights Reserved.