Fix eclipse/checkstyle warnings
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / AttributesContainer.java
1 /*
2  * Copyright (c) 2014 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.yangtools.yang.data.api;
9
10 import java.util.Map;
11 import org.opendaylight.yangtools.yang.common.QName;
12
13 /**
14  * Container of attributes, which may be attached to nodes.
15  */
16 public interface AttributesContainer {
17     /**
18      * Returns immutable map of QName and value of the attribute.
19      *
20      * @return immutable map of attribute names and values.
21      */
22     Map<QName, String> getAttributes();
23
24     /**
25      * Returns attribute value by supplied QName.
26      *
27      * @param name Attribute name
28      * @return Value of attribute if present, null otherwise.
29      */
30     Object getAttributeValue(QName name);
31 }