X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fapi%2FActionSpec.java;h=554fa5f4a8bebc070cfe1236ef7a455f237c1633;hb=05e8a84eedb4030d0396fce17c8b5456bdf2b7bb;hp=206fed3f48c820a04eae313a803b1654028e7e4f;hpb=54cf838b1a16c1f911963e23e738b1eef753c421;p=mdsal.git diff --git a/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/ActionSpec.java b/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/ActionSpec.java index 206fed3f48..554fa5f4a8 100644 --- a/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/ActionSpec.java +++ b/binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/ActionSpec.java @@ -26,7 +26,11 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdenti /** * A combination of an {@link Action} class and its corresponding instantiation wildcard, expressed as - * an {@link InstanceIdentifier}. This glue is required because action interfaces are generated at the place of their + * an {@link InstanceIdentifier}. This means that {@code list}s are treated exactly as @{code container}s are, e.g. + * without a key value specification. + * + *

+ * This glue is required because action interfaces are generated at the place of their * definition, most importantly in {@code grouping} and we actually need to bind to a particular instantiation (e.g. a * place where {@code uses} references that grouping). * @@ -34,7 +38,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdenti * @param

Action parent type */ @Beta -public final class ActionSpec, ?, ?>, P extends DataObject> +public final class ActionSpec, ?, ?>, P extends DataObject> implements Immutable { private final @NonNull InstanceIdentifier

path; private final @NonNull Class type; @@ -108,7 +112,8 @@ public final class ActionSpec, ?, ?>, P e return castThis(); } - public , ?, ?>> @NonNull ActionSpec build(final Class type) { + public , ?, ?>> @NonNull ActionSpec build( + final Class type) { return new ActionSpec<>(type, pathBuilder.build()); }