org.kuali.maven.plugins.graph.tree
Class TreeHelper
java.lang.Object
org.kuali.maven.plugins.graph.tree.TreeHelper
public class TreeHelper
- extends Object
Method Summary |
protected void |
copyProperty(Object bean,
String name,
Object value)
|
void |
copyStyleProperties(Object dest,
Style style)
|
void |
exclude(Node<MavenContext> node,
NodeFilter<MavenContext> filter)
|
static String |
getArtifactId(org.apache.maven.artifact.Artifact a)
[groupId]:[artifactId]:[type]:[classifier]:[version] |
protected List<String> |
getArtifactIds(Collection<String> ids)
|
protected int |
getEdgeCount(List<Edge> edges)
|
List<Edge> |
getEdges(Node<MavenContext> node,
EdgeHandler handler)
|
protected GraphNode |
getGraphNode(org.apache.maven.shared.dependency.tree.DependencyNode dn)
|
List<GraphNode> |
getGraphNodes(Node<MavenContext> node)
|
List<MavenContext> |
getList(Node<MavenContext> node,
State state)
|
Map<String,MavenContext> |
getMap(Node<MavenContext> node,
List<Node<MavenContext>> list,
State state)
|
protected MavenContext |
getMavenContext(GraphNode gn,
org.apache.maven.shared.dependency.tree.DependencyNode dn)
|
TreeMetaData |
getMetaData(Node<MavenContext> node)
|
protected int |
getNodeCount(List<GraphNode> nodes)
|
static String |
getPartialArtifactId(org.apache.maven.artifact.Artifact a)
[groupId]:[artifactId]:[type]:[classifier] |
protected Properties |
getProperties()
|
protected String |
getProperty(Object bean,
String name)
|
static String |
getRelationshipLabel(Scope scope,
boolean optional,
State state)
|
protected List<MavenContextSanitizer> |
getSanitizers(Map<String,MavenContext> included)
|
protected int |
getStateCount(List<Node<MavenContext>> nodes,
State state)
|
Style |
getStyle(Scope scope,
boolean optional,
State state)
|
protected String |
getStyle(String property,
Scope scope,
boolean optional,
State state)
|
protected List<String> |
getStyleProperties()
|
Node<MavenContext> |
getTree(org.apache.maven.shared.dependency.tree.DependencyNode dependencyNode)
|
void |
hide(Node<MavenContext> node)
|
void |
hideTree(Node<MavenContext> node)
|
void |
include(Node<MavenContext> node,
NodeFilter<MavenContext> filter)
|
|
prune(Node<T> node,
NodeFilter<T> filter)
|
protected boolean |
replacementFound(MavenContext context,
Map<String,MavenContext> included)
|
void |
sanitize(Node<MavenContext> node)
|
void |
show(List<GraphNode> nodes,
List<Edge> edges)
|
void |
show(Node<MavenContext> node)
|
protected
|
show(String label,
List<T> list)
|
void |
show(TreeMetaData md)
|
void |
showPath(Node<MavenContext> node)
|
static String |
toIdString(List<String> strings)
|
static String |
toIdString(String... strings)
|
protected String |
toString(Tracker tracker)
|
protected void |
updateGraphNodeStyle(MavenContext context)
|
protected void |
updateMetaData(TreeMetaData md,
org.apache.maven.artifact.Artifact a)
|
protected void |
updateMetaData(TreeMetaData md,
MavenContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_FILL_COLOR
public static final String ROOT_FILL_COLOR
- See Also:
- Constant Field Values
OPTIONAL
public static final String OPTIONAL
- See Also:
- Constant Field Values
REQUIRED
public static final String REQUIRED
- See Also:
- Constant Field Values
TreeHelper
public TreeHelper()
include
public void include(Node<MavenContext> node,
NodeFilter<MavenContext> filter)
showPath
public void showPath(Node<MavenContext> node)
exclude
public void exclude(Node<MavenContext> node,
NodeFilter<MavenContext> filter)
hideTree
public void hideTree(Node<MavenContext> node)
show
public void show(Node<MavenContext> node)
hide
public void hide(Node<MavenContext> node)
prune
public <T> void prune(Node<T> node,
NodeFilter<T> filter)
getMavenContext
protected MavenContext getMavenContext(GraphNode gn,
org.apache.maven.shared.dependency.tree.DependencyNode dn)
getTree
public Node<MavenContext> getTree(org.apache.maven.shared.dependency.tree.DependencyNode dependencyNode)
sanitize
public void sanitize(Node<MavenContext> node)
getSanitizers
protected List<MavenContextSanitizer> getSanitizers(Map<String,MavenContext> included)
replacementFound
protected boolean replacementFound(MavenContext context,
Map<String,MavenContext> included)
getStateCount
protected int getStateCount(List<Node<MavenContext>> nodes,
State state)
getList
public List<MavenContext> getList(Node<MavenContext> node,
State state)
getMap
public Map<String,MavenContext> getMap(Node<MavenContext> node,
List<Node<MavenContext>> list,
State state)
show
public void show(TreeMetaData md)
getArtifactIds
protected List<String> getArtifactIds(Collection<String> ids)
toString
protected String toString(Tracker tracker)
show
protected <T> void show(String label,
List<T> list)
getMetaData
public TreeMetaData getMetaData(Node<MavenContext> node)
updateMetaData
protected void updateMetaData(TreeMetaData md,
MavenContext context)
updateMetaData
protected void updateMetaData(TreeMetaData md,
org.apache.maven.artifact.Artifact a)
updateGraphNodeStyle
protected void updateGraphNodeStyle(MavenContext context)
getGraphNode
protected GraphNode getGraphNode(org.apache.maven.shared.dependency.tree.DependencyNode dn)
getGraphNodes
public List<GraphNode> getGraphNodes(Node<MavenContext> node)
getEdges
public List<Edge> getEdges(Node<MavenContext> node,
EdgeHandler handler)
getRelationshipLabel
public static String getRelationshipLabel(Scope scope,
boolean optional,
State state)
toIdString
public static String toIdString(List<String> strings)
toIdString
public static String toIdString(String... strings)
copyStyleProperties
public void copyStyleProperties(Object dest,
Style style)
getStyleProperties
protected List<String> getStyleProperties()
getStyle
protected String getStyle(String property,
Scope scope,
boolean optional,
State state)
getStyle
public Style getStyle(Scope scope,
boolean optional,
State state)
getProperties
protected Properties getProperties()
getProperty
protected String getProperty(Object bean,
String name)
copyProperty
protected void copyProperty(Object bean,
String name,
Object value)
show
public void show(List<GraphNode> nodes,
List<Edge> edges)
getEdgeCount
protected int getEdgeCount(List<Edge> edges)
getNodeCount
protected int getNodeCount(List<GraphNode> nodes)
getPartialArtifactId
public static String getPartialArtifactId(org.apache.maven.artifact.Artifact a)
- [groupId]:[artifactId]:[type]:[classifier]
getArtifactId
public static String getArtifactId(org.apache.maven.artifact.Artifact a)
- [groupId]:[artifactId]:[type]:[classifier]:[version]
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.