opennms
Version:
Client API for the OpenNMS network monitoring platform
22 lines (17 loc) • 542 B
text/typescript
import {Operator} from './Operator';
import {Restriction} from './Restriction';
import {NestedRestriction} from './NestedRestriction';
/**
* A restriction and boolean operator pair.
* @module Clause
*/
export class Clause {
/** The associated restriction. */
public restriction: Restriction|NestedRestriction;
/** The boolean operator to apply. */
public operator: Operator;
constructor(restriction: Restriction|NestedRestriction, operator: Operator) {
this.restriction = restriction;
this.operator = operator;
}
}