// - Associations building -------------------------------------------------
// -------------------------------------------------------------------------
private static void buildFilter(FileFilter filter, AssociationBuilder builder) throws CommandException {
// Filter on the file type.
if(filter instanceof AttributeFileFilter) {
AttributeFileFilter attributeFilter;
attributeFilter = (AttributeFileFilter)filter;
switch(attributeFilter.getAttribute()) {
case HIDDEN:
builder.setIsHidden(!attributeFilter.isInverted());
break;
case SYMLINK:
builder.setIsSymlink(!attributeFilter.isInverted());
break;
}
}
else if(filter instanceof PermissionsFileFilter) {
PermissionsFileFilter permissionFilter;