001    package org.kuali.maven.plugins.graph.pojo;
002    
003    import org.apache.maven.shared.dependency.tree.DependencyNode;
004    
005    public class MavenContext {
006        int id;
007        String artifactIdentifier;
008        State state;
009        GraphNode graphNode;
010        DependencyNode dependencyNode;
011    
012        public MavenContext() {
013            this(null, null);
014        }
015    
016        public MavenContext(GraphNode graphNode, DependencyNode dependencyNode) {
017            super();
018            this.graphNode = graphNode;
019            this.dependencyNode = dependencyNode;
020        }
021    
022        public GraphNode getGraphNode() {
023            return graphNode;
024        }
025    
026        public void setGraphNode(GraphNode graphNode) {
027            this.graphNode = graphNode;
028        }
029    
030        public DependencyNode getDependencyNode() {
031            return dependencyNode;
032        }
033    
034        public void setDependencyNode(DependencyNode dependencyNode) {
035            this.dependencyNode = dependencyNode;
036        }
037    
038        public int getId() {
039            return id;
040        }
041    
042        public void setId(int id) {
043            this.id = id;
044        }
045    
046        @Override
047        public int hashCode() {
048            return id;
049        }
050    
051        @Override
052        public boolean equals(Object obj) {
053            if (this == obj) {
054                return true;
055            }
056            if (obj == null) {
057                return false;
058            }
059            if (getClass() != obj.getClass()) {
060                return false;
061            }
062            MavenContext other = (MavenContext) obj;
063            return id == other.id;
064        }
065    
066        public String getArtifactIdentifier() {
067            return artifactIdentifier;
068        }
069    
070        public void setArtifactIdentifier(String artifactId) {
071            this.artifactIdentifier = artifactId;
072        }
073    
074        public State getState() {
075            return state;
076        }
077    
078        public void setState(State state) {
079            this.state = state;
080        }
081    
082    }