// Copyright 2001-2002 Omni Development, Inc.  All rights reserved.
//
// This software may only be used and reproduced according to the
// terms in the file OmniSourceLicense.html, which should be
// distributed with this project and can also be found at
// http://www.omnigroup.com/DeveloperResources/OmniSourceLicense.html.

#import "OWFilteredAddressProcessor.h"

#import <Foundation/Foundation.h>
#import <OmniBase/OmniBase.h>
#import <OmniFoundation/OmniFoundation.h>

#import "OWContentType.h"

RCS_ID("$Header: /Network/Source/CVS/OmniGroup/Frameworks/OWF/Processors.subproj/OWFilteredAddressProcessor.m,v 1.4 2002/03/09 01:53:52 kc Exp $")

@implementation OWFilteredAddressProcessor

static OWContentType *sourceContentType;

+ (void)initialize;
{
    OBINITIALIZE;

    sourceContentType = [OWContentType contentTypeForString:@"Omni/FilteredAddress"];
}

+ (void)didLoad;
{
    [self registerProcessorClass:self fromContentType:sourceContentType toContentType:[OWContentType wildcardContentType] cost:1.0];
}

+ (OWContentType *)sourceContentType;
{
    return sourceContentType;
}

// OWProcessor subclass

- (void)process;
{
    [NSException raise:@"FilteredAddress" format:NSLocalizedStringFromTableInBundle(@"This address has been filtered by your privacy settings", @"OWF", [OWFilteredAddressProcessor bundle], filtered address exception)];
}

@end
