2 * STANDARD_RIFT_IO_COPYRIGHT
5 * Created by onvelocity on 11/23/15.
10 import Position from '../../graph/Position'
11 import DescriptorModel from '../DescriptorModel'
12 import RspConnectionPointRef from './RspConnectionPointRef'
13 import VnfdConnectionPointRef from './VnfdConnectionPointRef'
16 * A VirtualNetworkFunctionConnectionPoint is always a child of a VNFD. We use it to build VnfdConnectionPointRef instances. So convenience
17 * methods are add to access the fields needed to do that.
19 export default class ClassifierMatchAttributes extends DescriptorModel {
22 return 'match-attributes';
25 static get className() {
26 return 'ClassifierMatchAttributes';
29 static get qualifiedType() {
30 return 'nsd.vnffgd.classifier.' + ClassifierMatchAttributes.type;
33 constructor(model, parent) {
35 this.type = ClassifierMatchAttributes.type;
36 this.uiState['qualified-type'] = ClassifierMatchAttributes.qualifiedType;
37 this.className = ClassifierMatchAttributes.className;
38 this.position = new Position();
42 return this.model[name];
45 setFieldValue(name, value) {
46 this.model[name] = value;
50 return this.parent.removeMatchAttributes(this);