UNPKG

481 BJavaScriptView Raw
1// Copyright 2011 Mark Cavage, Inc. All rights reserved.
2
3var assert = require('assert');
4var util = require('util');
5
6var parents = require('ldap-filter');
7
8var Filter = require('./filter');
9
10
11///--- API
12
13function NotFilter(options) {
14 parents.NotFilter.call(this, options);
15}
16util.inherits(NotFilter, parents.NotFilter);
17Filter.mixin(NotFilter);
18module.exports = NotFilter;
19
20
21NotFilter.prototype._toBer = function (ber) {
22 assert.ok(ber);
23
24 return this.filter.toBer(ber);
25};