Class SyncStateValueImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValueImpl
-
- All Implemented Interfaces:
SyncStateValue
,Control
public class SyncStateValueImpl extends 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.syncrepl.syncState.SyncStateValue
OID
-
-
Constructor Summary
Constructors Constructor Description SyncStateValueImpl()
SyncStateValueImpl Creates a new instance of SyncDoneValueImpl.SyncStateValueImpl(boolean isCritical)
Creates a new instance of SyncStateValueImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
byte[]
getCookie()
byte[]
getEntryUUID()
SyncStateTypeEnum
getSyncStateType()
int
hashCode()
void
setCookie(byte[] cookie)
void
setEntryUUID(byte[] entryUUID)
set the entryUUIDvoid
setSyncStateType(SyncStateTypeEnum syncStateType)
set the syncState's typeString
toString()
Return a String representing a Control-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
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 interfaceSyncStateValue
- Returns:
- the cookie
-
setCookie
public void setCookie(byte[] cookie)
- Specified by:
setCookie
in interfaceSyncStateValue
- Parameters:
cookie
- the cookie to set
-
getSyncStateType
public SyncStateTypeEnum getSyncStateType()
- Specified by:
getSyncStateType
in interfaceSyncStateValue
- Returns:
- the syncState's type
-
setSyncStateType
public void setSyncStateType(SyncStateTypeEnum syncStateType)
set the syncState's type- Specified by:
setSyncStateType
in interfaceSyncStateValue
- Parameters:
syncStateType
- the syncState's type
-
getEntryUUID
public byte[] getEntryUUID()
- Specified by:
getEntryUUID
in interfaceSyncStateValue
- Returns:
- the entryUUID
-
setEntryUUID
public void setEntryUUID(byte[] entryUUID)
set the entryUUID- Specified by:
setEntryUUID
in interfaceSyncStateValue
- Parameters:
entryUUID
- the entryUUID
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Description copied from class:AbstractControl
Return a String representing a Control- Overrides:
toString
in classAbstractControl
- See Also:
Object.toString()
-
-