/** * Returns a <dsml:objectclass/> element for the supplied ldap attribute. * * @param doc to source elements from * @param attr ldap attribute to add * * @return element containing the attribute values */ protected Element createObjectclassElement(final Document doc, final LdapAttribute attr) { final Element ocElement = doc.createElement("dsml:objectclass"); for (String s : attr.getStringValues()) { final Element ocValueElement = doc.createElement("dsml:oc-value"); ocElement.appendChild(ocValueElement); setAttrValue(doc, ocValueElement, s, attr.isBinary()); } return ocElement; }
/** * Returns a <dsml:objectclass/> element for the supplied ldap attribute. * * @param doc to source elements from * @param attr ldap attribute to add * * @return element containing the attribute values */ protected Element createObjectclassElement(final Document doc, final LdapAttribute attr) { final Element ocElement = doc.createElement("dsml:objectclass"); for (String s : attr.getStringValues()) { final Element ocValueElement = doc.createElement("dsml:oc-value"); ocElement.appendChild(ocValueElement); setAttrValue(doc, ocValueElement, s, attr.isBinary()); } return ocElement; }
/** * Returns a <dsml:objectclass/> element for the supplied ldap attribute. * * @param doc to source elements from * @param attr ldap attribute to add * * @return element containing the attribute values */ protected Element createObjectclassElement(final Document doc, final LdapAttribute attr) { final Element ocElement = doc.createElement("dsml:objectclass"); for (String s : attr.getStringValues()) { final Element ocValueElement = doc.createElement("dsml:oc-value"); ocElement.appendChild(ocValueElement); setAttrValue(doc, ocValueElement, s, attr.isBinary()); } return ocElement; }
/** * Returns a <dsml:attr/> element for the supplied ldap attribute. * * @param doc to source elements from * @param attr ldap attribute to add * * @return element containing the attribute */ protected Element createAttrElement(final Document doc, final LdapAttribute attr) { final Element attrElement = doc.createElement("dsml:attr"); attrElement.setAttribute("name", attr.getName()); for (String s : attr.getStringValues()) { final Element valueElement = doc.createElement("dsml:value"); attrElement.appendChild(valueElement); setAttrValue(doc, valueElement, s, attr.isBinary()); } return attrElement; }
/** * Returns a <dsml:attr/> element for the supplied ldap attribute. * * @param doc to source elements from * @param attr ldap attribute to add * * @return element containing the attribute */ protected Element createAttrElement(final Document doc, final LdapAttribute attr) { final Element attrElement = doc.createElement("dsml:attr"); attrElement.setAttribute("name", attr.getName()); for (String s : attr.getStringValues()) { final Element valueElement = doc.createElement("dsml:value"); attrElement.appendChild(valueElement); setAttrValue(doc, valueElement, s, attr.isBinary()); } return attrElement; }
/** * Returns a <dsml:attr/> element for the supplied ldap attribute. * * @param doc to source elements from * @param attr ldap attribute to add * * @return element containing the attribute */ protected Element createAttrElement(final Document doc, final LdapAttribute attr) { final Element attrElement = doc.createElement("dsml:attr"); attrElement.setAttribute("name", attr.getName()); for (String s : attr.getStringValues()) { final Element valueElement = doc.createElement("dsml:value"); attrElement.appendChild(valueElement); setAttrValue(doc, valueElement, s, attr.isBinary()); } return attrElement; }