/** * Returns the Xml representation of this <code>LockEntry</code>. * * @return Xml representation * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) * @param document */ public Element toXml(Document document) { Element entry = DomUtil.createElement(document, XML_LOCKENTRY, NAMESPACE); entry.appendChild(getScope().toXml(document)); entry.appendChild(getType().toXml(document)); return entry; }
/** * Returns the Xml representation of this <code>LockEntry</code>. * * @return Xml representation * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) * @param document */ public Element toXml(Document document) { Element entry = DomUtil.createElement(document, XML_LOCKENTRY, NAMESPACE); entry.appendChild(getScope().toXml(document)); entry.appendChild(getType().toXml(document)); return entry; }
/** * Returns the Xml representation of this <code>LockEntry</code>. * * @return Xml representation * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) * @param document */ public Element toXml(Document document) { Element entry = DomUtil.createElement(document, XML_LOCKENTRY, NAMESPACE); entry.appendChild(getScope().toXml(document)); entry.appendChild(getType().toXml(document)); return entry; }
/** * Returns the xml representation of this lock info.<br> * NOTE however, that the depth and the timeout are not included * in the xml. They will be passed to the server using the corresponding * request headers. * * @param document * @return xml representation of this lock info. * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) */ public Element toXml(Document document) { if (isRefreshLock) { return null; } else { Element lockInfo = DomUtil.createElement(document, XML_LOCKINFO, NAMESPACE); lockInfo.appendChild(scope.toXml(document)); lockInfo.appendChild(type.toXml(document)); if (owner != null) { DomUtil.addChildElement(lockInfo, XML_OWNER, NAMESPACE, owner); } return lockInfo; } }
/** * Returns the xml representation of this lock info.<br> * NOTE however, that the depth and the timeout are not included * in the xml. They will be passed to the server using the corresponding * request headers. * * @param document * @return xml representation of this lock info. * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) */ public Element toXml(Document document) { if (isRefreshLock) { return null; } else { Element lockInfo = DomUtil.createElement(document, XML_LOCKINFO, NAMESPACE); lockInfo.appendChild(scope.toXml(document)); lockInfo.appendChild(type.toXml(document)); if (owner != null) { DomUtil.addChildElement(lockInfo, XML_OWNER, NAMESPACE, owner); } return lockInfo; } }
/** * Returns the xml representation of this lock info.<br> * NOTE however, that the depth and the timeout are not included * in the xml. They will be passed to the server using the corresponding * request headers. * * @param document * @return xml representation of this lock info. * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) */ public Element toXml(Document document) { if (isRefreshLock) { return null; } else { Element lockInfo = DomUtil.createElement(document, XML_LOCKINFO, NAMESPACE); lockInfo.appendChild(scope.toXml(document)); lockInfo.appendChild(type.toXml(document)); if (owner != null) { DomUtil.addChildElement(lockInfo, XML_OWNER, NAMESPACE, owner); } return lockInfo; } }
activeLock.appendChild(getScope().toXml(document));
activeLock.appendChild(getScope().toXml(document));
activeLock.appendChild(getScope().toXml(document));