public class DependencyTree
extends javax.swing.tree.DefaultMutableTreeNode
| Constructor and Description |
|---|
DependencyTree() |
DependencyTree(java.lang.Object userObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectAllScopesAndLicenses(java.util.Set<Scope> allScopes,
java.util.Set<License> allLicenses)
Recursively, collect all scopes and licenses.
|
DependencyTree |
find(java.lang.String componentId)
Recursively find a node contains the input component ID.
|
java.util.Vector<DependencyTree> |
getChildren() |
java.lang.String |
getComponentId() |
GeneralInfo |
getGeneralInfo() |
int |
getIssueCount() |
java.util.Set<Issue> |
getIssues() |
java.util.Set<License> |
getLicenses() |
java.util.List<DependencyTree> |
getNodes() |
java.util.Set<Scope> |
getScopes() |
Issue |
getTopIssue() |
java.util.Set<License> |
getViolatedLicenses() |
boolean |
hasLoop(org.jfrog.build.api.util.Log logger)
Return true if the node contains a loop.
|
boolean |
isMetadata() |
java.util.Set<Issue> |
processTreeIssues()
1.
|
java.util.Set<License> |
processTreeViolatedLicenses()
1.
|
void |
setGeneralInfo(GeneralInfo generalInfo) |
void |
setIssues(java.util.Set<Issue> issues) |
void |
setLicenses(java.util.Set<License> licenses) |
void |
setMetadata(boolean metadata) |
void |
setPrefix(java.lang.String prefix) |
void |
setScopes(java.util.Set<Scope> scopes) |
void |
setViolatedLicenses(java.util.Set<License> violatedLicenses) |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic DependencyTree()
public DependencyTree(java.lang.Object userObject)
public void setViolatedLicenses(java.util.Set<License> violatedLicenses)
public java.util.Set<License> getViolatedLicenses()
public void setLicenses(java.util.Set<License> licenses)
public void setIssues(java.util.Set<Issue> issues)
public java.lang.String getComponentId()
public void setScopes(java.util.Set<Scope> scopes)
public void setGeneralInfo(GeneralInfo generalInfo)
public java.util.Set<License> getLicenses()
public java.util.Set<Issue> getIssues()
public java.util.Set<Scope> getScopes()
public GeneralInfo getGeneralInfo()
public Issue getTopIssue()
public boolean isMetadata()
public void setMetadata(boolean metadata)
public void setPrefix(java.lang.String prefix)
public int getIssueCount()
public java.util.Vector<DependencyTree> getChildren()
public java.util.List<DependencyTree> getNodes()
public java.util.Set<Issue> processTreeIssues()
public java.util.Set<License> processTreeViolatedLicenses()
public void collectAllScopesAndLicenses(java.util.Set<Scope> allScopes, java.util.Set<License> allLicenses)
allScopes - - Out - All dependency tree scopesallLicenses - - Out - All dependency tree licensespublic DependencyTree find(java.lang.String componentId)
componentId - - The component ID to searchpublic boolean hasLoop(org.jfrog.build.api.util.Log logger)
logger - - The logger