org.gcube.vremanagement.softwaregateway.impl.repositorymanager.maven
Class ArtifactTreeNode

java.lang.Object
  extended by org.gcube.vremanagement.softwaregateway.impl.repositorymanager.maven.ArtifactTreeNode

public class ArtifactTreeNode
extends Object

Author:
Luca Frosini (ISTI-CNR)

Field Summary
protected static org.gcube.common.core.utils.logging.GCUBELog logger
          Class logger.
 
Constructor Summary
ArtifactTreeNode(ArtifactTreeNode parent, ArtifactCoordinates item, int deep)
          Constructor
 
Method Summary
 void addSon(ArtifactTreeNode son)
          Add a son to this node
 int getDeep()
           
 ArtifactCoordinates getItem()
          Get the Artifact
 ArtifactTreeNode getParent()
           
 void listDependency(List<String> dep)
           
 String printTree()
           
 void removeSon(ArtifactTreeNode son)
          Remove a son from this node
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final org.gcube.common.core.utils.logging.GCUBELog logger
Class logger.

Constructor Detail

ArtifactTreeNode

public ArtifactTreeNode(ArtifactTreeNode parent,
                        ArtifactCoordinates item,
                        int deep)
                 throws Exception
Constructor

Parameters:
parent - parent node
item - value
deep - deep
Throws:
Exception - if fails
Method Detail

addSon

public void addSon(ArtifactTreeNode son)
            throws Exception
Add a son to this node

Parameters:
son - to add
Throws:
Exception - if fails

removeSon

public void removeSon(ArtifactTreeNode son)
               throws Exception
Remove a son from this node

Parameters:
son - to remove
Throws:
Exception - if fails

getItem

public ArtifactCoordinates getItem()
Get the Artifact

Returns:
the Artifact

getDeep

public int getDeep()
Returns:
deep

getParent

public ArtifactTreeNode getParent()
Returns:
parent TreeNode;

toString

public String toString()

Overrides:
toString in class Object

printTree

public String printTree()
Returns:
XML tree representation

listDependency

public void listDependency(List<String> dep)
                    throws Exception
Parameters:
dep - dependency List fileld with dependecy information
Throws:
Exception - if fails


Copyright © 2013. All Rights Reserved.