2 * Copyright (c) 2014 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.yangtools.yang.data.api;
12 import org.opendaylight.yangtools.yang.common.QName;
16 * Container of attributes, which may be attached to {@link Node}
19 public interface AttributesContainer {
22 * Returns immutable map of QName and value of the attribute.
24 * @return immutable map of attribute names and values.
26 Map<QName, String> getAttributes();
29 * Returns attribute value by supplied QName
32 * @param name Attribute name
33 * @return Value of attribute if present, null otherwise.
35 Object getAttributeValue(QName name);