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