2 * Copyright (c) 2018 AT&T Intellectual Property. 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.pcep.spi;
10 public abstract class CommonObjectParser implements ObjectParser {
11 private final int objectClass;
12 private final int objectType;
14 public CommonObjectParser(final int objectClass, final int objectType) {
15 this.objectClass = objectClass;
16 this.objectType = objectType;
20 public final int getObjectClass() {
21 return this.objectClass;
25 public final int getObjectType() {
26 return this.objectType;