Integrate JavaTypeName as Identifier
[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  *
14  * Wraps combination of <code>packageName</code> and <code>name</code> to the
15  * object representation
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 identifier JavaTypeName of the referenced type
23      */
24     public ReferencedTypeImpl(final JavaTypeName identifier) {
25         super(identifier);
26     }
27
28     @Override
29     public String toString() {
30         final StringBuilder builder = new StringBuilder();
31         builder.append("ReferencedTypeImpl [packageName=");
32         builder.append(getPackageName());
33         builder.append(", name=");
34         builder.append(getName());
35         builder.append("]");
36         return builder.toString();
37     }
38 }