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.controller.config.yangjmxgenerator.attribute;
10 import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry;
11 import org.opendaylight.yangtools.binding.generator.util.Types;
12 import org.opendaylight.yangtools.sal.binding.model.api.Type;
13 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
15 import javax.management.ObjectName;
16 import javax.management.openmbean.SimpleType;
18 public class DependencyAttribute extends AbstractDependencyAttribute {
21 public DependencyAttribute(DataSchemaNode attrNode,
22 ServiceInterfaceEntry sie, boolean mandatory,
23 String nullableDescription) {
24 super(attrNode, sie, mandatory, nullableDescription);
28 public Type getType() {
29 return Types.typeForClass(ObjectName.class);
33 public SimpleType<?> getOpenType() {
34 return SimpleType.OBJECTNAME;