com.mucommander.command
Interface AssociationBuilder

All Known Implementing Classes:
AssociationWriter

public interface AssociationBuilder

Receive notification of the logical structure of a custom association list.

Author:
Nicolas Rinaudo

Method Summary
 void endAssociation()
          Notifies the builder that the current association declaration is finished.
 void endBuilding()
          Notifies the builder that association building is finished.
 void setIsExecutable(boolean isExecutable)
          Adds a executable filter on the current association.
 void setIsHidden(boolean isHidden)
          Adds a hidden filter on the current association.
 void setIsReadable(boolean isReadable)
          Adds a readable filter on the current association.
 void setIsSymlink(boolean isSymlink)
          Adds a symlink filter on the current association.
 void setIsWritable(boolean isWritable)
          Adds a writable filter on the current association.
 void setMask(java.lang.String mask, boolean isCaseSensitive)
          Adds a mask to the current association.
 void startAssociation(java.lang.String command)
          Notifies the builder that a new association declaration is starting.
 void startBuilding()
          Notifies the builder that association building is about to start.
 

Method Detail

startBuilding

void startBuilding()
                   throws CommandException
Notifies the builder that association building is about to start.

Throws:
CommandException - if an error occurs.

endBuilding

void endBuilding()
                 throws CommandException
Notifies the builder that association building is finished.

Throws:
CommandException - if an error occurs.

startAssociation

void startAssociation(java.lang.String command)
                      throws CommandException
Notifies the builder that a new association declaration is starting.

Parameters:
command - command to call when the association is matched.
Throws:
CommandException - if an error occurs.

endAssociation

void endAssociation()
                    throws CommandException
Notifies the builder that the current association declaration is finished.

Throws:
CommandException - if an error ocurs.

setMask

void setMask(java.lang.String mask,
             boolean isCaseSensitive)
             throws CommandException
Adds a mask to the current association.

Parameters:
mask - regular expression that a file name must match in order to match the association.
isCaseSensitive - whether the regular expression is case sensitive.
Throws:
CommandException - if an error occurs.

setIsSymlink

void setIsSymlink(boolean isSymlink)
                  throws CommandException
Adds a symlink filter on the current association.

Parameters:
isSymlink - whether symbolic links must be refused or accepted by the association.
Throws:
CommandException - if an error occurs.

setIsHidden

void setIsHidden(boolean isHidden)
                 throws CommandException
Adds a hidden filter on the current association.

Parameters:
isHidden - whether hidden files must be refused or accepted by the association.
Throws:
CommandException - if an error occurs.

setIsReadable

void setIsReadable(boolean isReadable)
                   throws CommandException
Adds a readable filter on the current association.

Parameters:
isReadable - whether readable files must be refused or accepted by the association.
Throws:
CommandException - if an error occurs.

setIsWritable

void setIsWritable(boolean isWritable)
                   throws CommandException
Adds a writable filter on the current association.

Parameters:
isWritable - whether writable files must be refused or accepted by the association.
Throws:
CommandException - if an error occurs.

setIsExecutable

void setIsExecutable(boolean isExecutable)
                     throws CommandException
Adds a executable filter on the current association.

Parameters:
isExecutable - whether executable files must be refused or accepted by the association.
Throws:
CommandException - if an error occurs.


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard