class Artifact {

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();

        sb.append(groupId);
        sb.append(":");
        sb.append(artifactId);
        sb.append(":");
        sb.append(version);
        if (!(classifier == null || "".equals(classifier.trim()))){
            sb.append(":");
            sb.append(classifier);
        }
        if (!(type == null || "".equals(type.trim()))){
            sb.append(":");
            sb.append(type);
        }
        if (!(extension == null || "".equals(extension.trim()))){
            sb.append(":");
            sb.append(extension);
        }
        sb.append(":");
        sb.append(origin);

        return sb.toString();
    }

    protected  Artifact();

}