org.apache.directory.server.core
Class MockCursor

java.lang.Object
  extended by org.apache.directory.server.core.MockCursor
All Implemented Interfaces:
java.lang.Iterable<org.apache.directory.shared.ldap.entry.ServerEntry>, org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>

public class MockCursor
extends java.lang.Object
implements org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>


Constructor Summary
MockCursor(int count)
           
 
Method Summary
 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(java.lang.Exception reason)
           
 boolean first()
           
 org.apache.directory.shared.ldap.entry.ServerEntry get()
           
 boolean hasMoreElements()
           
 boolean isClosed()
           
 boolean isElementReused()
           
 java.util.Iterator<org.apache.directory.shared.ldap.entry.ServerEntry> iterator()
           
 boolean last()
           
 boolean next()
           
 java.lang.Object nextElement()
           
 boolean previous()
           
 void setClosureMonitor(org.apache.directory.shared.ldap.cursor.ClosureMonitor monitor)
           
 void setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCursor

public MockCursor(int count)
Method Detail

available

public boolean available()
Specified by:
available in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>

close

public void close()
           throws javax.naming.NamingException
Specified by:
close in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
javax.naming.NamingException

hasMoreElements

public boolean hasMoreElements()

nextElement

public java.lang.Object nextElement()

after

public void after(org.apache.directory.shared.ldap.entry.ServerEntry element)
           throws java.lang.Exception
Specified by:
after in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

afterLast

public void afterLast()
               throws java.lang.Exception
Specified by:
afterLast in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

before

public void before(org.apache.directory.shared.ldap.entry.ServerEntry element)
            throws java.lang.Exception
Specified by:
before in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

beforeFirst

public void beforeFirst()
                 throws java.lang.Exception
Specified by:
beforeFirst in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

first

public boolean first()
              throws java.lang.Exception
Specified by:
first in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

get

public org.apache.directory.shared.ldap.entry.ServerEntry get()
                                                       throws java.lang.Exception
Specified by:
get in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

isClosed

public boolean isClosed()
                 throws java.lang.Exception
Specified by:
isClosed in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

isElementReused

public boolean isElementReused()
Specified by:
isElementReused in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>

last

public boolean last()
             throws java.lang.Exception
Specified by:
last in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

next

public boolean next()
Specified by:
next in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>

previous

public boolean previous()
                 throws java.lang.Exception
Specified by:
previous in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

iterator

public java.util.Iterator<org.apache.directory.shared.ldap.entry.ServerEntry> iterator()
Specified by:
iterator in interface java.lang.Iterable<org.apache.directory.shared.ldap.entry.ServerEntry>

close

public void close(java.lang.Exception reason)
           throws java.lang.Exception
Specified by:
close in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>
Throws:
java.lang.Exception

setClosureMonitor

public void setClosureMonitor(org.apache.directory.shared.ldap.cursor.ClosureMonitor monitor)
Specified by:
setClosureMonitor in interface org.apache.directory.shared.ldap.cursor.Cursor<org.apache.directory.shared.ldap.entry.ServerEntry>

setSchemaManager

public void setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.