Add new revision for pcep types model
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / CommonObjectParser.java
1 /*
2  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.pcep.spi;
9
10 public abstract class CommonObjectParser implements ObjectParser {
11     private final int objectClass;
12     private final int objectType;
13
14     public CommonObjectParser(final int objectClass, final int objectType) {
15         this.objectClass = objectClass;
16         this.objectType = objectType;
17     }
18
19     @Override
20     public final int getObjectClass() {
21         return this.objectClass;
22     }
23
24     @Override
25     public final int getObjectType() {
26         return this.objectType;
27     }
28 }