@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append(specId); if (!params.isEmpty()) { buf.append(':'); StringUtils.append(buf, params.entrySet()); } return buf.toString(); } }
StringUtils.append(buf, params.entrySet()); StringUtils.append(buf, unsetParams); StringUtils.append(buf, resetParams); StringUtils.append(buf, deps.values()); StringUtils.appendList(buf, items);
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append('{'); buf.append(groupId).append(':').append(artifactId).append(':').append(version); buf.append(" inherit-packages=").append(inheritPackages); if(!includedPackages.isEmpty()) { buf.append(" included-packages="); StringUtils.appendList(buf, includedPackages); } if(!excludedPackages.isEmpty()) { buf.append(" excluded-packages="); StringUtils.appendList(buf, excludedPackages); } buf.append(" inherit-configs=").append(inheritConfigs); if(!includedConfigs.isEmpty()) { buf.append(" included-configs="); StringUtils.appendList(buf, includedConfigs); } if(!excludedConfigs.isEmpty()) { buf.append(" excluded-configs="); StringUtils.appendList(buf, excludedConfigs); } return buf.append('}').toString(); } }
if(!includedPackages.isEmpty()) { buf.append(" included-packages="); StringUtils.appendList(buf, includedPackages); StringUtils.appendList(buf, excludedPackages); StringUtils.appendList(buf, includedConfigs); StringUtils.appendList(buf, excludedConfigs);
static String frequencyNotSupported(final Collection<String> frequencies, FeaturePackLocation fpl) { final StringBuilder buf = new StringBuilder(); buf.append("The frequency specified in ").append(fpl).append(" is not supported, the producer "); if (frequencies.isEmpty()) { buf.append(" does not suport frequencies"); } else { buf.append("supported frequencies are "); final String[] arr = frequencies.toArray(new String[frequencies.size()]); Arrays.sort(arr); StringUtils.append(buf, Arrays.asList(arr)); } return buf.toString(); }
static String unsatisfiedPackageDependencies(FeaturePackLocation.FPID fpid, String packageName, Collection<String> unsatisfiedDeps) { final StringBuilder buf = new StringBuilder(); buf.append("Feature-pack ").append(fpid).append(" package ").append(packageName).append(" has unsatisfied dependencies on packages: "); StringUtils.append(buf, unsatisfiedDeps); return buf.toString(); }
static String failedToResolveReleaseVersions(Collection<FeaturePackLocation.ProducerSpec> channels) { final StringBuilder buf = new StringBuilder("Missing build number"); if(channels.size() > 1) { buf.append('s'); } buf.append(" for "); StringUtils.append(buf, channels); return buf.toString(); }
static String transitiveDependencyNotFound(ProducerSpec... producer) { final StringBuilder buf = new StringBuilder(); buf.append("Failed to locate "); StringUtils.append(buf, Arrays.asList(producer)); buf.append(" among transitive dependencies"); return buf.toString(); }
static String pluginOptionsNotRecognized(Collection<String> names) { final StringBuilder buf = new StringBuilder("The following plugin options are not recognized: "); if(names.size() > 1) { final List<String> list = new ArrayList<>(names); Collections.sort(list); names = list; } StringUtils.append(buf, names); return buf.toString(); }
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append(specId); if (!params.isEmpty()) { buf.append(':'); StringUtils.append(buf, params.entrySet()); } return buf.toString(); } }
static String pluginOptionIllegalValue(String name, String setValue, Collection<String> values) { final StringBuilder buf = new StringBuilder(); buf.append("Provisioning option ").append(name).append(" value ").append(setValue).append(" is not in the legal value set: "); StringUtils.append(buf, values); return buf.toString(); }
static String failedToInitializeForeignKeyParams(ResolvedSpecId specId, ResolvedFeatureId parentId, Map<String, ?> params) { final StringBuilder buf = new StringBuilder(); buf.append("Failed to initialize the foreign key parameters for the feature ").append(specId).append(" with parameters "); StringUtils.append(buf, params.entrySet()); buf.append(" referencing ID ").append(parentId); return buf.toString(); }
public String toString() { final StringBuilder buf = new StringBuilder().append('[').append(fpid); if(!packages.isEmpty()) { buf.append(' '); StringUtils.append(buf, packages.values()); } return buf.append(']').toString(); } }
static String featurePackInstallerNotFound(String universeFactory, Collection<String> installers) { final StringBuilder buf = new StringBuilder(); buf.append("Failed to locate an implementation of ") .append(UniverseFeaturePackInstaller.class.getName()) .append(" for universe factory ") .append(universeFactory) .append(" on the classpath."); if(!installers.isEmpty()) { buf.append(" Available universe factory installers include "); StringUtils.append(buf, installers); } return buf.toString(); }
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append("[state"); if(!featurePacks.isEmpty()) { buf.append(" feature-packs=["); StringUtils.append(buf, featurePacks.values()); buf.append(']'); } if(!configs.isEmpty()) { buf.append(" configs=["); StringUtils.append(buf, configs); buf.append(']'); } return buf.append(']').toString(); } }
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append('[').append(fpid); if(patchFor != null) { buf.append(" patch-for=").append(patchFor); } if(!fpDeps.isEmpty()) { buf.append("; dependencies: "); StringUtils.append(buf, fpDeps.keySet()); } if(!definedConfigs.isEmpty()) { buf.append("; defaultConfigs: "); StringUtils.append(buf, definedConfigs.values()); } if(!defPackages.isEmpty()) { buf.append("; defaultPackages: "); StringUtils.append(buf, defPackages); } return buf.append("]").toString(); } }
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append('['); if(id != null) { buf.append(id); } else { buf.append(specId); } if(!configParams.isEmpty()) { buf.append(" config-params:{"); StringUtils.append(buf, configParams.entrySet()); buf.append('}'); } return buf.append(']').toString(); } }
protected void append(StringBuilder builder) { if(!inheritConfigs) { builder.append(" inheritConfigs=false"); } if(!inheritModelOnlyConfigs) { builder.append(" inheritModelOnlyConfigs=false"); } if(!this.excludedModels.isEmpty()) { builder.append(" excluded models "); StringUtils.append(builder, excludedModels.entrySet()); } if(!excludedConfigs.isEmpty()) { builder.append(" excluded configs "); StringUtils.append(builder, excludedConfigs); } if(!includedConfigs.isEmpty()) { builder.append(" included configs "); StringUtils.append(builder, includedConfigs); } if(!definedConfigs.isEmpty()) { builder.append(" defined configs "); StringUtils.append(builder, definedConfigs.values()); } } }
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append('[').append(name); if(origin != null) { buf.append(" origin=").append(origin); } buf.append(" feature=").append(feature); if(nillable) { buf.append(" nillable"); } if(include) { buf.append(" auto-includes "); } if(!mappedParams.isEmpty()) { buf.append(' '); StringUtils.append(buf, mappedParams.entrySet()); } return buf.append(']').toString(); } }
@Override public String toString() { final StringBuilder buf = new StringBuilder(); buf.append('[').append(name); if(!providedCaps.isEmpty()) { buf.append(" provides="); StringUtils.append(buf, providedCaps); } if(!requiredCaps.isEmpty()) { buf.append(" requires="); StringUtils.append(buf, requiredCaps); } if(!featureDeps.isEmpty()) { buf.append(" deps="); StringUtils.append(buf, featureDeps.values()); } if(!featureRefs.isEmpty()) { buf.append(" refs="); StringUtils.append(buf, featureRefs.values()); } if(!params.isEmpty()) { buf.append(" params="); StringUtils.append(buf, params.values()); } return buf.append(']').toString(); } }