activeLock.appendChild(getScope().toXml(document)); activeLock.appendChild(getType().toXml(document)); activeLock.appendChild(DomUtil.depthToXml(isDeep(), document)); long timeout = getTimeout(); if (!isExpired() && timeout != UNDEFINED_TIMEOUT) { activeLock.appendChild(DomUtil.timeoutToXml(timeout, document)); if (getOwner() != null) { DomUtil.addChildElement(activeLock, XML_OWNER, NAMESPACE, getOwner()); if (getToken() != null) { Element lToken = DomUtil.addChildElement(activeLock, XML_LOCKTOKEN, NAMESPACE); lToken.appendChild(DomUtil.hrefToXml(getToken(), document));
activeLock.appendChild(getScope().toXml(document)); activeLock.appendChild(getType().toXml(document)); activeLock.appendChild(DomUtil.depthToXml(isDeep(), document)); long timeout = getTimeout(); if (!isExpired() && timeout != UNDEFINED_TIMEOUT) { activeLock.appendChild(DomUtil.timeoutToXml(timeout, document)); if (getOwner() != null) { DomUtil.addChildElement(activeLock, XML_OWNER, NAMESPACE, getOwner()); if (getToken() != null) { Element lToken = DomUtil.addChildElement(activeLock, XML_LOCKTOKEN, NAMESPACE); lToken.appendChild(DomUtil.hrefToXml(getToken(), document)); if (getLockroot() != null) { Element lroot = DomUtil.addChildElement(activeLock, XML_LOCKROOT, NAMESPACE); lroot.appendChild(DomUtil.hrefToXml(getLockroot(), document));
activeLock.appendChild(getScope().toXml(document)); activeLock.appendChild(getType().toXml(document)); activeLock.appendChild(DomUtil.depthToXml(isDeep(), document)); long timeout = getTimeout(); if (!isExpired() && timeout != UNDEFINED_TIMEOUT) { activeLock.appendChild(DomUtil.timeoutToXml(timeout, document)); if (getOwner() != null) { DomUtil.addChildElement(activeLock, XML_OWNER, NAMESPACE, getOwner()); if (getToken() != null) { Element lToken = DomUtil.addChildElement(activeLock, XML_LOCKTOKEN, NAMESPACE); lToken.appendChild(DomUtil.hrefToXml(getToken(), document)); if (getLockroot() != null) { Element lroot = DomUtil.addChildElement(activeLock, XML_LOCKROOT, NAMESPACE); lroot.appendChild(DomUtil.hrefToXml(getLockroot(), document));