-import org.opendaylight.yangtools.binding.generator.util.Types;
-import org.opendaylight.yangtools.sal.binding.model.api.Type;
+import org.opendaylight.mdsal.binding.model.api.Type;
+import org.opendaylight.mdsal.binding.model.util.Types;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
public class ListAttribute extends AbstractAttribute implements TypedAttribute {
private final String nullableDescription, nullableDefault;
private final TypedAttribute innerAttribute;
public class ListAttribute extends AbstractAttribute implements TypedAttribute {
private final String nullableDescription, nullableDefault;
private final TypedAttribute innerAttribute;
- public static ListAttribute create(ListSchemaNode node,
- TypeProviderWrapper typeProvider, String packageName) {
+ public static ListAttribute create(final ListSchemaNode node,
+ final TypeProviderWrapper typeProvider, final String packageName) {
- public static ListAttribute create(LeafListSchemaNode node,
- TypeProviderWrapper typeProvider) {
+ public static ListAttribute create(final LeafListSchemaNode node,
+ final TypeProviderWrapper typeProvider) {
- ListAttribute(DataSchemaNode attrNode, TypedAttribute innerAttribute,
- String description) {
+ ListAttribute(final DataSchemaNode attrNode, final TypedAttribute innerAttribute,
+ final String description) {
}
@Override
public String toString() {
return "ListAttribute{" + getAttributeYangName() + "," + "to="
}
@Override
public String toString() {
return "ListAttribute{" + getAttributeYangName() + "," + "to="
- if (nullableDefault != null ? !nullableDefault
- .equals(that.nullableDefault) : that.nullableDefault != null)
+ if (this.nullableDefault != null ? !this.nullableDefault
+ .equals(that.nullableDefault) : that.nullableDefault != null) {
throw new RuntimeException("Unable to create " + ArrayType.class
+ " with inner element of type " + innerOpenType, e);
}
throw new RuntimeException("Unable to create " + ArrayType.class
+ " with inner element of type " + innerOpenType, e);
}