Fix checkstyle warnings in yang-jmx-generator.
[controller.git] / opendaylight / config / yang-jmx-generator / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / attribute / DependencyAttribute.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.controller.config.yangjmxgenerator.attribute;
9
10 import javax.management.ObjectName;
11 import javax.management.openmbean.SimpleType;
12 import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry;
13 import org.opendaylight.yangtools.binding.generator.util.Types;
14 import org.opendaylight.yangtools.sal.binding.model.api.Type;
15 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
16
17 public class DependencyAttribute extends AbstractDependencyAttribute {
18
19
20     public DependencyAttribute(DataSchemaNode attrNode,
21             ServiceInterfaceEntry sie, boolean mandatory,
22             String nullableDescription) {
23         super(attrNode, sie, mandatory, nullableDescription);
24     }
25
26     @Override
27     public Type getType() {
28         return Types.typeForClass(ObjectName.class);
29     }
30
31     @Override
32     public SimpleType<?> getOpenType() {
33         return SimpleType.OBJECTNAME;
34     }
35
36 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.