private void doProvideCapability(ProvideCapability annotation) { StringBuilder sb = new StringBuilder(annotation.ns()); if (annotation.name() != null) sb.append(";").append(annotation.ns()).append("='").append(annotation.name()).append("'"); if (annotation.uses() != null) sb.append(";").append("uses:='").append(Strings.join(",", annotation.uses())).append("'"); if (annotation.mandatory() != null) sb.append(";").append("mandatory:='").append(Strings.join(",", annotation.mandatory())).append("'"); if (annotation.version() != null) sb.append(";").append("version:Version='").append(annotation.version()).append("'"); if (annotation.value() != null) sb.append(";").append(annotation.value()); if (annotation.effective() != null) sb.append(";effective:='").append(annotation.effective()).append("'"); add(Constants.PROVIDE_CAPABILITY, sb.toString()); }
private void doProvideCapability(ProvideCapability annotation) { StringBuilder sb = new StringBuilder(annotation.ns()); if (annotation.name() != null) sb.append(";").append(annotation.ns()).append("='").append(annotation.name()).append("'"); if (annotation.uses() != null) sb.append(";").append("uses:='").append(Strings.join(",", annotation.uses())).append("'"); if (annotation.mandatory() != null) sb.append(";").append("mandatory:='").append(Strings.join(",", annotation.mandatory())).append("'"); if (annotation.version() != null) sb.append(";").append("version:Version='").append(annotation.version()).append("'"); if (annotation.value() != null) sb.append(";").append(annotation.value()); if (annotation.effective() != null) sb.append(";effective:='").append(annotation.effective()).append("'"); add(Constants.PROVIDE_CAPABILITY, sb.toString()); }