3 * Copyright 2016 RIFT.IO Inc
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 import DescriptorModel
from '../DescriptorModel'
22 import DescriptorModelFactory
from '../DescriptorModelFactory'
24 export default class InternalConnectionPointRef
extends DescriptorModel
{
27 return 'internal-connection-point';
30 static get className() {
31 return 'InternalConnectionPointRef';
34 static get qualifiedType() {
35 return 'vnfd.internal-vld.' + InternalConnectionPointRef
.type
;
38 constructor(m
, parent
) {
41 this.type
= InternalConnectionPointRef
.type
;
42 this.uiState
['qualified-type'] = InternalConnectionPointRef
.qualifiedType
;
43 this.className
= InternalConnectionPointRef
.className
;
47 return this.model
['id-ref'];
51 return this.model
['id-ref'];
55 return this.model
['id-ref'] = id
;
59 return this.uiState
.cpNumber
;
63 this.uiState
.cpNumber
= n
;
67 return this.parent
.removeInternalConnectionPointRefForId(this.idRef
);