}
@Override
- protected void addYangPathArgument(final InstanceIdentifier.PathArgument arg, final List<YangInstanceIdentifier.PathArgument> builder) {
+ protected void addYangPathArgument(final InstanceIdentifier.PathArgument arg,
+ final List<YangInstanceIdentifier.PathArgument> builder) {
/*
- * DOM Instance Identifier for list is always represent by two
- * entries one for map and one for children. This is also true for
- * wildcarded instance identifiers
+ * DOM Instance Identifier for list is always represent by two entries one for map and one for children. This
+ * is also true for wildcarded instance identifiers
*/
if (builder == null) {
return;
if (dom instanceof MapEntryNode && keyGetter.equals(method)) {
NodeIdentifierWithPredicates identifier = ((MapEntryNode) dom).getIdentifier();
return codec.deserialize(identifier).getKey();
- } else {
- return super.getBindingChildValue(method, dom);
}
+ return super.getBindingChildValue(method, dom);
}
@Override
- protected InstanceIdentifier.PathArgument getBindingPathArgument(final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument domArg) {
+ protected InstanceIdentifier.PathArgument getBindingPathArgument(final YangInstanceIdentifier.PathArgument domArg) {
if (domArg instanceof NodeIdentifierWithPredicates) {
return codec.deserialize((NodeIdentifierWithPredicates) domArg);
}
@Override
public YangInstanceIdentifier.PathArgument serializePathArgument(final InstanceIdentifier.PathArgument arg) {
- if(arg instanceof IdentifiableItem) {
+ if (arg instanceof IdentifiableItem) {
return codec.serialize((IdentifiableItem<?,?>) arg);
}
return super.serializePathArgument(arg);
@Override
public InstanceIdentifier.PathArgument deserializePathArgument(final YangInstanceIdentifier.PathArgument arg) {
- if(arg instanceof NodeIdentifierWithPredicates) {
+ if (arg instanceof NodeIdentifierWithPredicates) {
return codec.deserialize((NodeIdentifierWithPredicates) arg);
}
return super.deserializePathArgument(arg);
}
-
-
}