/* **************************************************************************** * toDOM() **************************************************************************** */ /** * This method will make DOM using the specified document. If any DOM state * has been stored with the obj, it will not be used in this method. * This method generates a reference-free copy of new DOM. * @param oDoc - The document to use for generating DOM */ public XmlElement toDOM(XmlDocument oDoc) { // for this particular toDOM implementation, oDoc must not be null if (oDoc == null) { return null; } XmlElement oElem = oDoc.createElementNS(Tags.NS_SAML, Tags.TAG_ATTRIBUTESTATEMENT); if (moAttr != null) { XmlElement oChildElem = (XmlElement) moAttr.toDOM(oDoc); oElem.AppendChild(oChildElem); } return oElem; }
/* **************************************************************************** * toDOM() **************************************************************************** */ /** * This method will make DOM using the specified document. If any DOM state * has been stored with the obj, it will not be used in this method. * This method generates a reference-free copy of new DOM. * @param oDoc - The document to use for generating DOM */ public XmlElement toDOM(XmlDocument oDoc) { // for this particular toDOM implementation, oDoc must not be null if (oDoc == null) { return null; } XmlElement oElem = oDoc.createElementNS(Tags.NS_SAML, Tags.TAG_CONDITIONS); return oElem; }