@JsonProperty(value = "constructCounter") public int countConstructs() { return ( this.getConstructs()==null ? 0 : this.getConstructs().size()); }
/** * Returns true if the application has {@link ConstructId}s and no {@link Dependency}s, false otherwise. * The invocation of {@link Application#isEmpty()} right after {@link Application#clear()} must return true. * @return */ public Boolean isEmpty() { return (this.getConstructs()==null || this.getConstructs().isEmpty()) && (this.getDependencies()==null || this.getDependencies().isEmpty()); }
@JsonProperty(value = "constructTypeCounters") public ConstructIdFilter countConstructTypes() { return new ConstructIdFilter(this.getConstructs()); }
public String toString(boolean _deep) { final StringBuilder builder = new StringBuilder(); if(_deep) { builder.append("Application ").append(this.toString(false)).append(System.getProperty("line.separator")); if(this.getConstructs()!=null) for(ConstructId cid: this.getConstructs()) builder.append(" ConstructId ").append(cid).append(System.getProperty("line.separator")); } else { builder.append("[").append(this.getMvnGroup()).append(":").append(this.getArtifact()).append(":").append(this.getVersion()).append("]"); } return builder.toString(); } }
log.info("Save app " + a + " with [" + a.getDependencies().size() + "] dependencies and [" + a.getConstructs().size() + "] constructs (uploadEmpty=" + upload_empty + ")"); BackendConnector.getInstance().uploadApp(this.getGoalContext(), a);