/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.model.api.type; import java.util.List; import org.opendaylight.yangtools.yang.model.api.SchemaNode; import org.opendaylight.yangtools.yang.model.api.TypeDefinition; /** * * Makes is possible to access to the individual bits values of this type. * */ public interface BitsTypeDefinition extends TypeDefinition { /** * Returns all bit values. * * @return list of Bit type instastances with data about all * individual bits of bits YANG built-in type */ List getBits(); /** * * Contains the methods for accessing the data about the individual bit of * bits YANG type. */ interface Bit extends SchemaNode { /** * The position value MUST be in the range 0 to 4294967295, and it MUST * be unique within the bits type. * * @return The position value of bit in range from 0 to 4294967295. */ Long getPosition(); /** * Returns the name of the concrete bit. * * @return string with the name of the concrete bit */ String getName(); } }