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 javax.management.ObjectName;
11 import javax.management.openmbean.SimpleType;
12 import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry;
13 import org.opendaylight.mdsal.binding.model.api.Type;
14 import org.opendaylight.mdsal.binding.model.util.Types;
15 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
17 public class DependencyAttribute extends AbstractDependencyAttribute {
20 public DependencyAttribute(final DataSchemaNode attrNode,
21 final ServiceInterfaceEntry sie, final boolean mandatory,
22 final String nullableDescription) {
23 super(attrNode, sie, mandatory, nullableDescription);
27 public Type getType() {
28 return Types.typeForClass(ObjectName.class);
32 public SimpleType<?> getOpenType() {
33 return SimpleType.OBJECTNAME;