return LockToken.class.isAssignableFrom( c );
}
public void writeValue( XmlWriter writer, String nsUri, String prefix, String localName, Object val, String href, Map<String, String> nsPrefixes ) {
LockToken token = (LockToken) val;
Element lockDiscovery = writer.begin( "D:lockdiscovery" ).open();
if( token != null ) {
Element activeLock = writer.begin( "D:activelock" ).open();
LockInfo info = token.info;
lockWriterHelper.appendType( writer, info.type );
lockWriterHelper.appendScope( writer, info.scope );
lockWriterHelper.appendDepth( writer, info.depth );
lockWriterHelper.appendOwner( writer, info.lockedByUser );
lockWriterHelper.appendTimeout( writer, token.timeout.getSeconds() );
lockWriterHelper.appendTokenId( writer, token.tokenId );
lockWriterHelper.appendRoot( writer, href );
activeLock.close();
}
lockDiscovery.close();
}