import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.Status;
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
import org.slf4j.Logger;
private Status status = Status.CURRENT;
private String units;
- DerivedTypeBuilder(final T baseType, final SchemaPath path) {
- super(requireNonNull(baseType), path);
+ DerivedTypeBuilder(final T baseType, final QName qname) {
+ super(requireNonNull(baseType), qname);
checkArgument(baseType instanceof AbstractBaseType || baseType instanceof AbstractDerivedType
|| baseType instanceof AbstractRestrictedType,
final Optional<String> baseUnits = getBaseType().getUnits();
if (baseUnits.isPresent() && !units.equals(baseUnits.get())) {
- LOG.warn("Type {} uverrides 'units' of type {} to \"{}\"", getPath(), getBaseType(), units);
+ LOG.warn("Type {} uverrides 'units' of type {} to \"{}\"", getQName(), getBaseType(), units);
}
this.units = units;