public String getArtifactId() { return model.getArtifactId(); }
private void appendArtifactTypeClassifierString( StringBuffer sb ) { sb.append( model.getArtifactId() ); sb.append( ":" ); sb.append( getType() ); if ( hasClassifier() ) { sb.append( ":" ); sb.append( getClassifier() ); } }
/** * Method toString */ public java.lang.String toString() { StringBuffer buf = new StringBuffer(); buf.append( "groupId = '" ); buf.append( getGroupId() + "'" ); buf.append( "\n" ); buf.append( "artifactId = '" ); buf.append( getArtifactId() + "'" ); buf.append( "\n" ); buf.append( "version = '" ); buf.append( getVersion() + "'" ); buf.append( "\n" ); buf.append( "classifier = '" ); buf.append( getClassifier() + "'" ); buf.append( "\n" ); buf.append( "type = '" ); buf.append( getType() + "'" ); return buf.toString(); } //-- java.lang.String toString()
public int hashCode() { final int PRIME = 31; int result = 1; if ( model != null ) { result = PRIME * result + ( ( model.getGroupId() == null ) ? 0 : model.getGroupId().hashCode() ); result = PRIME * result + ( ( model.getArtifactId() == null ) ? 0 : model.getArtifactId().hashCode() ); result = PRIME * result + ( ( model.getVersion() == null ) ? 0 : model.getVersion().hashCode() ); result = PRIME * result + ( ( model.getClassifier() == null ) ? 0 : model.getClassifier().hashCode() ); result = PRIME * result + ( ( model.getType() == null ) ? 0 : model.getType().hashCode() ); } return result; }
/** * Method equals * * @param other */ public boolean equals(Object other) { if ( this == other) { return true; } if ( !(other instanceof ArchivaArtifactModel) ) { return false; } ArchivaArtifactModel that = (ArchivaArtifactModel) other; boolean result = true; result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) ); result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) ); result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) ); result = result && ( getClassifier() == null ? that.getClassifier() == null : getClassifier().equals( that.getClassifier() ) ); result = result && ( getType() == null ? that.getType() == null : getType().equals( that.getType() ) ); return result; } //-- boolean equals(Object)