Remove yang.model.util.BaseTypes
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / type / BinaryTypeDefinition.java
index 7d1a124277166ae76125507a00c2a4481548818b..767c728d87fef2bedaa540af003240fb93b35433 100644 (file)
@@ -10,23 +10,24 @@ package org.opendaylight.yangtools.yang.model.api.type;
 import java.util.Objects;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
+import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.common.YangConstants;
 
 /**
- * The binary built-in type represents any binary data, i.e., a sequence of
- * octets.
- * <br>
- * Binary values are encoded with the base64 encoding scheme (see <a
- * href="https://tools.ietf.org/html/rfc4648#section-4">[RFC4648], Section
- * 4</a>). <br>
- * The canonical form of a binary value follows the rules in <a
- * href="https://tools.ietf.org/html/rfc4648">[RFC4648]</a>.
+ * The binary built-in type represents any binary data, i.e., a sequence of octets. Binary values are encoded with the
+ * Base64 encoding scheme (see <a href="https://tools.ietf.org/html/rfc4648#section-4">[RFC4648], Section 4</a>).<br>
+ * The canonical form of a binary value follows the rules defined in
+ * <a href="https://tools.ietf.org/html/rfc4648">[RFC4648]</a>.
  *
- * <br>
- * This interface was modeled according to definition in <a
- * href="https://tools.ietf.org/html/rfc6020#section-9.8">[RFC-6020] The binary
- * Built-In Type</a>
+ * <p>
+ * This interface was modeled according to definition in
+ * <a href="https://tools.ietf.org/html/rfc6020#section-9.8">[RFC-6020] The binary Built-In Type</a>
  */
 public interface BinaryTypeDefinition extends LengthRestrictedTypeDefinition<BinaryTypeDefinition> {
+    /**
+     * Well-known QName of the {@code binary} built-in type.
+     */
+    QName QNAME = QName.create(YangConstants.RFC6020_YANG_MODULE, "binary").intern();
 
     static String toString(final @NonNull BinaryTypeDefinition type) {
         return TypeDefinitions.toStringHelper(type).add("length", type.getLengthConstraint().orElse(null)).toString();