2 * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.mdsal.binding.javav2.generator.util;
11 import org.opendaylight.mdsal.binding.javav2.generator.context.ModuleContext;
15 * Wraps combination of <code>packageName</code> and <code>name</code> to the
16 * object representation
19 public final class ReferencedTypeImpl extends AbstractBaseType {
22 * Creates instance of this class with concrete package name and type name
25 * string with the package name
27 * string with the name for referenced type
29 public ReferencedTypeImpl(String packageName, String name, ModuleContext context) {
30 super(packageName, name, context);
34 * Creates instance of this class with concrete package name and type name
35 * for already normalized identifier
38 * string with the package name
40 * string with the name for referenced type
42 * indicates if identifier name is normalized
44 public ReferencedTypeImpl(String packageName, String name, boolean isNormalized, ModuleContext context) {
45 super(packageName, name, isNormalized, context);
49 public String toString() {
50 StringBuilder builder = new StringBuilder();
51 builder.append("ReferencedTypeImpl [packageName=");
52 builder.append(getPackageName());
53 builder.append(", name=");
54 builder.append(getName());
56 return builder.toString();