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

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

public class SyncStateValueImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements SyncStateValue

A simple SyncStateValue Control implementation.

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

Field Summary
 
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.SyncStateValue
OID
 
Constructor Summary
SyncStateValueImpl()
          SyncStateValueImpl Creates a new instance of SyncDoneValueImpl.
SyncStateValueImpl(boolean isCritical)
          Creates a new instance of SyncStateValueImpl.
 
Method Summary
 boolean equals(Object o)
           
 byte[] getCookie()
          
 byte[] getEntryUUID()
          
 SyncStateTypeEnum getSyncStateType()
          
 int hashCode()
           
 void setCookie(byte[] cookie)
          
 void setEntryUUID(byte[] entryUUID)
          set the entryUUID
 void setSyncStateType(SyncStateTypeEnum syncStateType)
          set the syncState's type
 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

SyncStateValueImpl

public SyncStateValueImpl()
SyncStateValueImpl Creates a new instance of SyncDoneValueImpl.


SyncStateValueImpl

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

Parameters:
isCritical - The critical flag
Method Detail

getCookie

public byte[] getCookie()

Specified by:
getCookie in interface SyncStateValue
Returns:
the cookie

setCookie

public void setCookie(byte[] cookie)

Specified by:
setCookie in interface SyncStateValue
Parameters:
cookie - the cookie to set

getSyncStateType

public SyncStateTypeEnum getSyncStateType()

Specified by:
getSyncStateType in interface SyncStateValue
Returns:
the syncState's type

setSyncStateType

public void setSyncStateType(SyncStateTypeEnum syncStateType)
set the syncState's type

Specified by:
setSyncStateType in interface SyncStateValue
Parameters:
syncStateType - the syncState's type

getEntryUUID

public byte[] getEntryUUID()

Specified by:
getEntryUUID in interface SyncStateValue
Returns:
the entryUUID

setEntryUUID

public void setEntryUUID(byte[] entryUUID)
set the entryUUID

Specified by:
setEntryUUID in interface SyncStateValue
Parameters:
entryUUID - the entryUUID

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.