Bug 1411-3: MDSAL Binding2 Generator Util
[mdsal.git] / binding2 / mdsal-binding2-generator-util / src / main / java / org / opendaylight / mdsal / binding2 / generator / util / ReferencedTypeImpl.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.mdsal.binding2.generator.util;
10
11 /**
12  *
13  * Wraps combination of <code>packageName</code> and <code>name</code> to the
14  * object representation
15  *
16  */
17 public final class ReferencedTypeImpl extends AbstractBaseType {
18
19     /**
20      * Creates instance of this class with concrete package name and type name
21      *
22      * @param packageName
23      *            string with the package name
24      * @param name
25      *            string with the name for referenced type
26      */
27     public ReferencedTypeImpl(String packageName, String name) {
28         super(packageName, name);
29     }
30
31     @Override
32     public String toString() {
33         StringBuilder builder = new StringBuilder();
34         builder.append("ReferencedTypeImpl [packageName=");
35         builder.append(getPackageName());
36         builder.append(", name=");
37         builder.append(getName());
38         builder.append("]");
39         return builder.toString();
40     }
41 }