1 package org.apache.maven.artifact.resolver; 2 3 18 19 import java.util.HashSet ; 20 import java.util.Iterator ; 21 import java.util.Set ; 22 23 27 public class ArtifactResolutionResult 28 { 29 private Set resolutionNodes; 30 31 private Set artifacts; 33 34 public ArtifactResolutionResult() 35 { 36 } 37 38 public Set getArtifacts() 39 { 40 if ( artifacts == null ) 41 { 42 artifacts = new HashSet (); 43 44 for ( Iterator it = resolutionNodes.iterator(); it.hasNext(); ) 45 { 46 ResolutionNode node = (ResolutionNode) it.next(); 47 artifacts.add( node.getArtifact() ); 48 } 49 } 50 51 return artifacts; 52 } 53 54 public Set getArtifactResolutionNodes() 55 { 56 return resolutionNodes; 57 } 58 59 public void setArtifactResolutionNodes( Set resolutionNodes ) 60 { 61 this.resolutionNodes = resolutionNodes; 62 63 this.artifacts = null; 65 } 66 } 67 | Popular Tags |