|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.util.report.link.AbstractLinkConstructorStrategy
public abstract class AbstractLinkConstructorStrategy
Base implementation of the LinkConstructorStrategy
interface.
Field Summary | |
---|---|
protected LinkConstructorStrategyConfig |
config The configuration of this strategy instance. |
Constructor Summary | |
---|---|
protected |
AbstractLinkConstructorStrategy(LinkConstructorStrategyConfig config) Default constructor. |
Method Summary | |
---|---|
protected abstract void |
addPackagePart(StringBuilder buffer, String packageName) Adds the package part of the link. |
protected void |
addQualifiedType(StringBuilder buffer, JavaElementRef ref) |
protected void |
appendBasePathSeparator(StringBuilder buffer) Appends the separator between the base path and the package part. |
protected void |
appendMemberPart(StringBuilder buffer, de.smartics.util.source.MethodInfo method) 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) |
String |
constructLink(String baseLink, JavaElementRef ref) Constructs a path to the specified Java element. |
LinkConstructorStrategyConfig |
getConfig() Returns the configuration of this strategy instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final LinkConstructorStrategyConfig config
Constructor Detail |
---|
protected AbstractLinkConstructorStrategy(LinkConstructorStrategyConfig config) throws org.apache.commons.lang.NullArgumentException
config
- the configuration of this strategy instance.
org.apache.commons.lang.NullArgumentException
- if
config
is
null
.
Method Detail |
---|
public LinkConstructorStrategyConfig getConfig()
getConfig
in interface
LinkConstructorStrategy
public String constructLink(String baseLink, JavaElementRef ref)
constructLink
in interface
LinkConstructorStrategy
baseLink
- the base link to prepend.
ref
- the element in the report to reference.
null
if the referenced element does not exit (only the existence of the file is checked, not the element within the file).
protected void constructFilePath(StringBuilder buffer, JavaElementRef ref)
protected void addQualifiedType(StringBuilder buffer, JavaElementRef ref)
protected void appendBasePathSeparator(StringBuilder buffer)
buffer
- the buffer to append to.
protected abstract void addPackagePart(StringBuilder buffer, String packageName)
buffer
- the buffer to append to.
packageName
- the name of the package to render.
protected void appendTypePart(StringBuilder buffer, String typeName)
buffer
- the buffer to append to.
typeName
- the name of the package to render.
protected void appendMemberPart(StringBuilder buffer, de.smartics.util.source.MethodInfo method)
buffer
- the buffer to append to.
method
- the name of the member to render.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |