public class MockCursor extends Object implements org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
| Constructor and Description |
|---|
MockCursor(int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.apache.directory.shared.ldap.entry.ServerEntry element) |
void |
afterLast() |
boolean |
available() |
void |
before(org.apache.directory.shared.ldap.entry.ServerEntry element) |
void |
beforeFirst() |
void |
close() |
void |
close(Exception reason) |
boolean |
first() |
org.apache.directory.shared.ldap.entry.ServerEntry |
get() |
boolean |
hasMoreElements() |
boolean |
isClosed() |
boolean |
isElementReused() |
Iterator<org.apache.directory.shared.ldap.entry.ServerEntry> |
iterator() |
boolean |
last() |
boolean |
next() |
Object |
nextElement() |
boolean |
previous() |
void |
setClosureMonitor(org.apache.directory.shared.ldap.cursor.ClosureMonitor monitor) |
void |
setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) |
public boolean available()
available in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>public void close()
throws NamingException
close in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>NamingExceptionpublic boolean hasMoreElements()
public Object nextElement()
public void after(org.apache.directory.shared.ldap.entry.ServerEntry element)
throws Exception
after in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic void afterLast()
throws Exception
afterLast in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic void before(org.apache.directory.shared.ldap.entry.ServerEntry element)
throws Exception
before in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic void beforeFirst()
throws Exception
beforeFirst in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic boolean first()
throws Exception
first in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic org.apache.directory.shared.ldap.entry.ServerEntry get()
throws Exception
get in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic boolean isClosed()
throws Exception
isClosed in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic boolean isElementReused()
isElementReused in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>public boolean last()
throws Exception
last in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic boolean next()
next in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>public boolean previous()
throws Exception
previous in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic Iterator<org.apache.directory.shared.ldap.entry.ServerEntry> iterator()
public void close(Exception reason) throws Exception
close in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>Exceptionpublic void setClosureMonitor(org.apache.directory.shared.ldap.cursor.ClosureMonitor monitor)
setClosureMonitor in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>public void setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.