Code Review
/
mdsal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
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
diff --git
a/model/ietf/ietf-type-util/src/test/java/org/opendaylight/mdsal/model/ietf/util/MacUtil.java
b/model/ietf/ietf-type-util/src/test/java/org/opendaylight/mdsal/model/ietf/util/MacUtil.java
index 6861734aaa8f072f2f4ddfb745a852a9b275053f..2130d4c8e72729d79d6bfa987c4edd0a0641361e 100644
(file)
--- a/
model/ietf/ietf-type-util/src/test/java/org/opendaylight/mdsal/model/ietf/util/MacUtil.java
+++ b/
model/ietf/ietf-type-util/src/test/java/org/opendaylight/mdsal/model/ietf/util/MacUtil.java
@@
-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
*/
* 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;
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() {
MacUtil() {
- super(MacClass.class, PhysClass.class);
+ super(MacClass.class, PhysClass.class
, HexClass.class, QuadClass.class, UuidClass.class
);
}
@Override
}
@Override
@@
-19,7
+18,17
@@
final class MacUtil extends AbstractIetfYangUtil<MacClass, PhysClass> {
}
@Override
}
@Override
- protected String getPhysValue(PhysClass physAddress) {
+ protected String getPhysValue(
final
PhysClass physAddress) {
return physAddress.getValue();
}
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();
+ }
+}