de.smartics.maven.util.report.link.strategy
Class SingleDocumentLinkConstructorStrategy

Package class diagram package SingleDocumentLinkConstructorStrategy
java.lang.Object
  extended by de.smartics.maven.util.report.link.AbstractLinkConstructorStrategy
      extended by de.smartics.maven.util.report.link.strategy.SingleDocumentLinkConstructorStrategy
All Implemented Interfaces:
LinkConstructorStrategy
Direct Known Subclasses:
SurefireLinkConstructorStrategy

public class SingleDocumentLinkConstructorStrategy
     
     
extends AbstractLinkConstructorStrategy

Constructs a link to a document that contains all package, type and member information.


Field Summary
 
Fields inherited from class de.smartics.maven.util.report.link.AbstractLinkConstructorStrategy
config
 
Constructor Summary
SingleDocumentLinkConstructorStrategy(LinkConstructorStrategyConfig config)
          Default constructor.
 
Method Summary
protected  void addPackagePart(StringBuilder buffer, String packageName)
          Adds the package part of the link.
protected  void appendBasePathSeparator(StringBuilder buffer)
          Appends the separator between the base path and the package part.
protected  void appendMemberPart(StringBuilder buffer, String memberName)
          Adds the member part of the link if the configuration requires the member part to be rendered.
protected  void appendTypePart(StringBuilder buffer, String typeName)
          Adds the type part of the link.
protected  void constructFilePath(StringBuilder buffer, JavaElementRef ref)
           
 
Methods inherited from class de.smartics.maven.util.report.link.AbstractLinkConstructorStrategy
addQualifiedType, appendMemberPart, constructLink, getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleDocumentLinkConstructorStrategy

public SingleDocumentLinkConstructorStrategy(LinkConstructorStrategyConfig config)
Default constructor.

Parameters:
config - the configuration of this strategy instance.
Method Detail

appendBasePathSeparator

protected void appendBasePathSeparator(StringBuilder buffer)
Appends the separator between the base path and the package part.

Overrides:
appendBasePathSeparator in class AbstractLinkConstructorStrategy
Parameters:
buffer - the buffer to append to.

addPackagePart

protected void addPackagePart(StringBuilder buffer,
                              String packageName)
Adds the package part of the link.

Specified by:
addPackagePart in class AbstractLinkConstructorStrategy
Parameters:
buffer - the buffer to append to.
packageName - the name of the package to render.
See Also:
AbstractLinkConstructorStrategy.addPackagePart(java.lang.StringBuilder, java.lang.String)

appendTypePart

protected void appendTypePart(StringBuilder buffer,
                              String typeName)
Adds the type part of the link.

Overrides:
appendTypePart in class AbstractLinkConstructorStrategy
Parameters:
buffer - the buffer to append to.
typeName - the name of the package to render.

appendMemberPart

protected void appendMemberPart(StringBuilder buffer,
                                String memberName)
Adds the member part of the link if the configuration requires the member part to be rendered.

Parameters:
buffer - the buffer to append to.
memberName - the name of the memberName to render.

constructFilePath

protected void constructFilePath(StringBuilder buffer,
                                 JavaElementRef ref)
Overrides:
constructFilePath in class AbstractLinkConstructorStrategy


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.