org.apache.directory.api.ldap.extras.controls
Class SyncDoneValueImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.controls.AbstractControl
      extended by org.apache.directory.api.ldap.extras.controls.SyncDoneValueImpl
All Implemented Interfaces:
SyncDoneValue, org.apache.directory.api.ldap.model.message.Control

public class SyncDoneValueImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements SyncDoneValue

A simple SyncDoneValue implementation to store control properties.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.SyncDoneValue
OID
 
Constructor Summary
SyncDoneValueImpl()
          Creates a new instance of SyncDoneValueImpl.
SyncDoneValueImpl(boolean isCritical)
          Creates a new instance of SyncDoneValueImpl.
 
Method Summary
 boolean equals(Object o)
           
 byte[] getCookie()
          
 int hashCode()
           
 boolean isRefreshDeletes()
          
 void setCookie(byte[] cookie)
          
 void setRefreshDeletes(boolean refreshDeletes)
          
 String toString()
           
 
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
 

Constructor Detail

SyncDoneValueImpl

public SyncDoneValueImpl()
Creates a new instance of SyncDoneValueImpl.


SyncDoneValueImpl

public SyncDoneValueImpl(boolean isCritical)
Creates a new instance of SyncDoneValueImpl.

Parameters:
isCritical - The critical flag
Method Detail

getCookie

public byte[] getCookie()

Specified by:
getCookie in interface SyncDoneValue
Returns:
the cookie

setCookie

public void setCookie(byte[] cookie)

Specified by:
setCookie in interface SyncDoneValue
Parameters:
cookie - cookie to be set

isRefreshDeletes

public boolean isRefreshDeletes()

Specified by:
isRefreshDeletes in interface SyncDoneValue
Returns:
true, if refreshDeletes flag is set, false otherwise

setRefreshDeletes

public void setRefreshDeletes(boolean refreshDeletes)

Specified by:
setRefreshDeletes in interface SyncDoneValue
Parameters:
refreshDeletes - set the refreshDeletes flag

hashCode

public int hashCode()
Overrides:
hashCode in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
See Also:
Object.hashCode()

equals

public boolean equals(Object o)
Overrides:
equals in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
See Also:
Object.equals(Object)

toString

public String toString()
Overrides:
toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
See Also:
Object.toString()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.