Add BindingTypes.augmentation()
[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 import org.opendaylight.mdsal.binding.model.api.JavaTypeName;
11
12 /**
13  * Wraps combination of <code>packageName</code> and <code>name</code> to the object representation.
14  */
15 public final class ReferencedTypeImpl extends AbstractBaseType {
16     /**
17      * Creates instance of this class with concrete package name and type name.
18      *
19      * @param identifier JavaTypeName of the referenced type
20      */
21     public ReferencedTypeImpl(final JavaTypeName identifier) {
22         super(identifier);
23     }
24
25     @Override
26     public String toString() {
27         final StringBuilder builder = new StringBuilder();
28         builder.append("ReferencedTypeImpl [packageName=");
29         builder.append(getPackageName());
30         builder.append(", name=");
31         builder.append(getName());
32         builder.append("]");
33         return builder.toString();
34     }
35 }