Interface ChangeRecordVisitor<R,​P>

  • Type Parameters:
    R - The return type of this visitor's methods. Use Void for visitors that do not need to return results.
    P - The type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.

    public interface ChangeRecordVisitor<R,​P>
    A visitor of ChangeRecords, in the style of the visitor design pattern.

    Classes implementing this interface can query change records in a type-safe manner. When a visitor is passed to a change record's accept method, the corresponding visit method most applicable to that change record is invoked.

    • Method Detail

      • visitChangeRecord

        R visitChangeRecord​(P p,
                            AddRequest change)
        Visits an Add change record.
        Parameters:
        p - A visitor specified parameter.
        change - The Add change record.
        Returns:
        Returns a visitor specified result.
      • visitChangeRecord

        R visitChangeRecord​(P p,
                            DeleteRequest change)
        Visits an Delete change record.
        Parameters:
        p - A visitor specified parameter.
        change - The Delete change record.
        Returns:
        Returns a visitor specified result.
      • visitChangeRecord

        R visitChangeRecord​(P p,
                            ModifyDNRequest change)
        Visits an ModifyDN change record.
        Parameters:
        p - A visitor specified parameter.
        change - The ModifyDN change record.
        Returns:
        Returns a visitor specified result.
      • visitChangeRecord

        R visitChangeRecord​(P p,
                            ModifyRequest change)
        Visits an Modify change record.
        Parameters:
        p - A visitor specified parameter.
        change - The Modify change record.
        Returns:
        Returns a visitor specified result.