2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.parser.parameter;
10 import org.opendaylight.protocol.bgp.parser.BGPParameter;
13 * Capability parameter superclass.
15 * @see <a href="http://tools.ietf.org/html/rfc3392#section-4">Capabilities Optional Parameter</a>
17 public abstract class CapabilityParameter implements BGPParameter {
19 private final int TYPE = 2;
21 private final int code;
23 CapabilityParameter(final int code) {
28 * Returns capability code specific capability parameter.
30 * @return capability code
32 public int getCode() {
37 public int getType() {