public class JavaQualifiedTypeInfoTranslator extends JavaQualifiedTypeInfo implements Comparable<JavaQualifiedTypeInfoTranslator>, Serializable
classInfo, pkgInfo| Constructor and Description |
|---|
JavaQualifiedTypeInfoTranslator()
Creates a java qualified type info object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(JavaQualifiedTypeInfoTranslator other)
Checks that there is no 2 objects with the same class name.
|
boolean |
equals(Object obj) |
boolean |
exactMatch(JavaQualifiedTypeInfoTranslator importInfo)
Checks if the import info matches.
|
String |
getClassInfo()
Returns the imported class/interface info.
|
String |
getPkgInfo()
Returns the imported package info.
|
static JavaQualifiedTypeInfoTranslator |
getQualifiedTypeInfoOfCurNode(YangNode curNode,
String attributeName)
Returns the import info for an attribute, which needs to be used for code
generation for import or for qualified access.
|
int |
hashCode() |
void |
setClassInfo(String classInfo)
Sets the imported class/interface info.
|
void |
setPkgInfo(String pkgInfo)
Sets the imported package info.
|
String |
toString() |
static void |
updateLeavesJavaQualifiedInfo(JavaLeafInfoContainer leaf)
Updates the leaf's java information.
|
public JavaQualifiedTypeInfoTranslator()
public String getPkgInfo()
getPkgInfo in class JavaQualifiedTypeInfopublic void setPkgInfo(String pkgInfo)
pkgInfo - the imported package infopublic String getClassInfo()
getClassInfo in class JavaQualifiedTypeInfopublic void setClassInfo(String classInfo)
classInfo - the imported class/interface infopublic static void updateLeavesJavaQualifiedInfo(JavaLeafInfoContainer leaf)
leaf - leaf whose java information is being updatedpublic static JavaQualifiedTypeInfoTranslator getQualifiedTypeInfoOfCurNode(YangNode curNode, String attributeName)
curNode - current data model node for which the java file is being
generatedattributeName - name of the attribute being added, it will used in
import info for child classpublic boolean exactMatch(JavaQualifiedTypeInfoTranslator importInfo)
importInfo - matched importpublic int compareTo(JavaQualifiedTypeInfoTranslator other)
compareTo in interface Comparable<JavaQualifiedTypeInfoTranslator>other - compared import info.Copyright © 2016. All rights reserved.