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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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>
NamingException
public 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>
Exception
public void afterLast() throws Exception
afterLast
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Exception
public 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>
Exception
public void beforeFirst() throws Exception
beforeFirst
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Exception
public boolean first() throws Exception
first
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Exception
public 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>
Exception
public boolean isClosed() throws Exception
isClosed
in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Exception
public 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>
Exception
public 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>
Exception
public 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>
Exception
public 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–2015 The Apache Software Foundation. All rights reserved.