import com.google.common.base.Strings;
import com.google.common.collect.ImmutableSet;
-import java.net.URI;
-import java.util.Set;
import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.common.YangConstants;
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
/**
- * Utility methods and constants to work with built-in YANG types
- *
- *
+ * Utility methods and constants to work with built-in YANG types.
*/
public final class BaseTypes {
private BaseTypes() {
}
- /**
- * @deprecated Use {@link YangConstants#RFC6020_YANG_NAMESPACE} instead. To be removed in Boron release.
- */
- @Deprecated
- public static final URI BASE_TYPES_NAMESPACE = YangConstants.RFC6020_YANG_NAMESPACE;
- /**
- * @deprecated Use {@link YangConstants#RFC6020_YANG_MODULE} instead. To be removed in Boron release.
- */
- @Deprecated
- public static final QNameModule BASE_TYPES_MODULE = YangConstants.RFC6020_YANG_MODULE;
-
public static final QName BINARY_QNAME = constructQName("binary");
public static final QName BITS_QNAME = constructQName("bits");
public static final QName BOOLEAN_QNAME = constructQName("boolean");
public static final QName UINT64_QNAME = constructQName("uint64");
public static final QName UNION_QNAME = constructQName("union");
- private static final Set<QName> BUILT_IN_TYPES = ImmutableSet.<QName>builder()
+ private static final ImmutableSet<QName> BUILT_IN_TYPES = ImmutableSet.<QName>builder()
.add(BINARY_QNAME)
.add(BITS_QNAME)
.add(BOOLEAN_QNAME)
* Returns true if supplied type is representation of built-in YANG type as
* per RFC 6020.
*
+ * <p>
* See package documentation for description of base types.
*
- * @param type
+ * @param type A type name
* @return true if type is built-in YANG Types.
*/
public static boolean isYangBuildInType(final String type) {
* Returns true if supplied type is representation of built-in YANG type as
* per RFC 6020.
*
+ * <p>
* See package documentation for description of base types.
*
- * @param type
+ * @param type Type definition
* @return true if type is built-in YANG Types.
*/
public static boolean isYangBuildInType(final TypeDefinition<?> type) {