Add HexString/DottedQuad/Uuid support to IetfYangUtil
[mdsal.git] / model / ietf / ietf-type-util / src / test / java / org / opendaylight / mdsal / model / ietf / util / MacUtil.java
index 6861734aaa8f072f2f4ddfb745a852a9b275053f..2130d4c8e72729d79d6bfa987c4edd0a0641361e 100644 (file)
@@ -5,12 +5,11 @@
  * 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.mdsal.model.ietf.util;
 
-final class MacUtil extends AbstractIetfYangUtil<MacClass, PhysClass> {
+final class MacUtil extends AbstractIetfYangUtil<MacClass, PhysClass, HexClass, QuadClass, UuidClass> {
     MacUtil() {
-        super(MacClass.class, PhysClass.class);
+        super(MacClass.class, PhysClass.class, HexClass.class, QuadClass.class, UuidClass.class);
     }
 
     @Override
@@ -19,7 +18,17 @@ final class MacUtil extends AbstractIetfYangUtil<MacClass, PhysClass> {
     }
 
     @Override
-    protected String getPhysValue(PhysClass physAddress) {
+    protected String getPhysValue(final PhysClass physAddress) {
         return physAddress.getValue();
     }
-}
\ No newline at end of file
+
+    @Override
+    protected String getHexValue(final HexClass hexString) {
+        return hexString.getValue();
+    }
+
+    @Override
+    protected String getQuadValue(final QuadClass dottedQuad) {
+        return dottedQuad.getValue();
+    }
+}