/** * Calculate the tag. * * @return a tag for the reference element. */ public Tag getTag() { Tag ref = new Tag("reference"); ref.addAttribute("name", name); if (cardinality != null) ref.addAttribute("cardinality", cardinality.toString()); if (policy != null) ref.addAttribute("policy", policy.toString()); ref.addAttribute("interface", service); if (target != null) ref.addAttribute("target", target); if (bind != null && !"-".equals(bind)) ref.addAttribute("bind", bind); if (unbind != null && !"-".equals(unbind)) ref.addAttribute("unbind", unbind); if (updated != null && !"-".equals(updated)) ref.addAttribute("updated", updated); if (policyOption != null) ref.addAttribute("policy-option", policyOption.toString()); return ref; }
/** * Calculate the tag. * * @return a tag for the reference element. */ public Tag getTag() { Tag ref = new Tag("reference"); ref.addAttribute("name", name); if (cardinality != null) ref.addAttribute("cardinality", cardinality.toString()); if (policy != null) ref.addAttribute("policy", policy.toString()); ref.addAttribute("interface", service); if (target != null) ref.addAttribute("target", target); if (bind != null && !"-".equals(bind)) ref.addAttribute("bind", bind); if (unbind != null && !"-".equals(unbind)) ref.addAttribute("unbind", unbind); if (updated != null && !"-".equals(updated)) ref.addAttribute("updated", updated); if (policyOption != null) ref.addAttribute("policy-option", policyOption.toString()); if (scope != null) ref.addAttribute("scope", scope.toString()); return ref; }
/** * Calculate the tag. * * @return a tag for the reference element. */ public Tag getTag() { Tag ref = new Tag("reference"); ref.addAttribute("name", name); if (cardinality != null) ref.addAttribute("cardinality", cardinality.toString()); if (policy != null) ref.addAttribute("policy", policy.toString()); ref.addAttribute("interface", service); if (target != null) ref.addAttribute("target", target); if (bind != null && !"-".equals(bind)) ref.addAttribute("bind", bind); if (unbind != null && !"-".equals(unbind)) ref.addAttribute("unbind", unbind); if (updated != null && !"-".equals(updated)) ref.addAttribute("updated", updated); if (policyOption != null) ref.addAttribute("policy-option", policyOption.toString()); if (scope != null) ref.addAttribute("scope", scope.toString()); return ref; }