BUG-47 : unfinished PCEP migration to generated DTOs.
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / object / PCEPExcludeRouteObjectParser.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  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.impl.object;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.ExcludeRouteObject;
11
12 /**
13  * Parser for {@link ExcludeRouteObject}
14  */
15 // FIXME: fix model, this object is not used in a message
16 public final class PCEPExcludeRouteObjectParser { // extends AbstractObjectParser<ExcludeRouterBuilder> {
17
18         public static final int CLASS = 7; // FIXME: to actual value
19
20         public static final int TYPE = 1;
21
22         // public PCEPExcludeRouteObjectParser(final HandlerRegistry registry) {
23         // super(registry);
24         // }
25         //
26         // @Override
27         // public ExcludeRouteObject parseObject(final ObjectHeader header, final byte[] bytes) throws
28         // PCEPDeserializerException,
29         // PCEPDocumentedException {
30         // if (bytes == null || bytes.length == 0)
31         // throw new IllegalArgumentException("Byte array is mandatory. Can't be null or empty.");
32         //
33         // final ExcludeRouterBuilder builder = new ExcludeRouterBuilder();
34         //
35         // builder.setIgnore(header.isIgnore());
36         // builder.setProcessingRule(header.isProcessingRule());
37         // // FIXME: add subobjects
38         // return builder.build();
39         // }
40         //
41         // @Override
42         // public void addTlv(final ExcludeRouterBuilder builder, final Tlv tlv) {
43         // // No tlvs defined
44         // }
45         //
46         // @Override
47         // public byte[] serializeObject(final Object object) {
48         // if (!(object instanceof ExcludeRouteObject))
49         // throw new IllegalArgumentException("Wrong instance of PCEPObject. Passed " + object.getClass() +
50         // ". Needed ExcludeRouteObject.");
51         //
52         // assert !(((ExcludeRouteObject) object).getSubobjects().isEmpty()) : "Empty Excluded Route Object.";
53         //
54         // // return PCEPEROSubobjectParser.put(((ExplicitRouteObject) obj).getSubobjects());
55         //
56         // // FIXME: add subobjects
57         // return null;
58         // }
59         //
60         // @Override
61         // public int getObjectType() {
62         // return TYPE;
63         // }
64         //
65         // @Override
66         // public int getObjectClass() {
67         // return CLASS;
68         // }
69 }