Pick up byte-buddy from yangtools
[mdsal.git] / binding / mdsal-binding-model-ri / src / main / java / org / opendaylight / mdsal / binding / model / ri / TypeConstants.java
index 20928e6c86dcc0ed22047dc01bf4cf0d6c73315a..0b3ebb364966ec8cf6676fa322be1632f794653a 100644 (file)
@@ -8,19 +8,17 @@
 package org.opendaylight.mdsal.binding.model.ri;
 
 import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.yangtools.yang.binding.BitsTypeObject;
 import org.opendaylight.yangtools.yang.binding.ScalarTypeObject;
 
 /**
  * Contains constants used in relations with <code>Type</code>.
  */
 public final class TypeConstants {
-
     /**
-     * Name or prefix (multiple patterns in builder class as composed with '_'
-     * and upper case of the field name) of the class constant which holds the map
-     * of regular expressions that need to be enforced on the string value.
-     * The map is keyed by Pattern-compatible string and values are XSD-compatible
-     * strings.
+     * Name or prefix (multiple patterns in builder class as composed with '_' and upper case of the field name) of the
+     * class constant which holds the map of regular expressions that need to be enforced on the string value. The map
+     * is keyed by Pattern-compatible string and values are XSD-compatible strings.
      */
     public static final @NonNull String PATTERN_CONSTANT_NAME = "PATTERN_CONSTANTS";
 
@@ -30,8 +28,13 @@ public final class TypeConstants {
     public static final @NonNull String VALUE_PROP = "value";
 
     /**
-     * Creation of new instance is prohibited.
+     * Name of the constant holding the names of valid {@code bit}s in a {@link BitsTypeObject}. This constant is
+     * protected and made accessible via {@link BitsTypeObject#validNames()} and its type matches the return type
+     * exactly.
      */
+    public static final @NonNull String VALID_NAMES_NAME = "VALID_NAMES";
+
     private TypeConstants() {
+        // Hidden on purpose
     }
 }