public final class JavaAttributeInfo extends Object
| Constructor and Description |
|---|
JavaAttributeInfo(YangType<?> attrType,
String name,
boolean isListAttr,
boolean isQualifiedName)
Creates object of java attribute info.
|
| Modifier and Type | Method and Description |
|---|---|
static JavaAttributeInfo |
getAttributeInfoForTheData(JavaQualifiedTypeInfoTranslator importInfo,
String attributeName,
YangType<?> attributeType,
boolean isQualifiedAccess,
boolean isListAttribute)
Returns java attribute info.
|
static JavaAttributeInfo |
getAttributeInfoForTheData(JavaQualifiedTypeInfoTranslator importInfo,
String attributeName,
YangType<?> attributeType,
boolean isQualifiedAccess,
boolean isListAttribute,
YangCompilerAnnotation compilerAnnotation)
Returns java attribute info.
|
String |
getAttributeName()
Returns name of the attribute.
|
YangType<?> |
getAttributeType()
Returns the data type info of attribute.
|
YangCompilerAnnotation |
getCompilerAnnotation()
Returns the compiler annotation.
|
JavaQualifiedTypeInfoTranslator |
getImportInfo()
Returns the import info for the attribute type.
|
boolean |
isIntConflict()
Returns true if conflict between int and uint.
|
boolean |
isListAttr()
Returns if the added attribute is a list of info.
|
boolean |
isLongConflict()
Returns true if conflict between long and uLong.
|
boolean |
isQualifiedName()
Returns if the added attribute has to be accessed in a fully qualified
manner.
|
void |
setAttributeName(String attrName)
Sets name of the attribute.
|
void |
setAttributeType(YangType<?> type)
Sets the data type info of attribute.
|
void |
setCompilerAnnotation(YangCompilerAnnotation compilerAnnotation)
Sets the compiler annotation.
|
void |
setImportInfo(JavaQualifiedTypeInfoTranslator importInfo)
Sets the import info for the attribute type.
|
public YangType<?> getAttributeType()
public void setAttributeType(YangType<?> type)
type - the data type info of attributepublic String getAttributeName()
public void setAttributeName(String attrName)
attrName - name of the attributepublic boolean isListAttr()
public boolean isQualifiedName()
public JavaQualifiedTypeInfoTranslator getImportInfo()
public void setImportInfo(JavaQualifiedTypeInfoTranslator importInfo)
importInfo - import info for the attribute typepublic YangCompilerAnnotation getCompilerAnnotation()
public void setCompilerAnnotation(YangCompilerAnnotation compilerAnnotation)
compilerAnnotation - the compiler annotation to setpublic boolean isIntConflict()
public boolean isLongConflict()
public static JavaAttributeInfo getAttributeInfoForTheData(JavaQualifiedTypeInfoTranslator importInfo, String attributeName, YangType<?> attributeType, boolean isQualifiedAccess, boolean isListAttribute)
importInfo - java qualified type infoattributeName - attribute nameattributeType - attribute typeisQualifiedAccess - is the attribute a qualified accessisListAttribute - is list attributepublic static JavaAttributeInfo getAttributeInfoForTheData(JavaQualifiedTypeInfoTranslator importInfo, String attributeName, YangType<?> attributeType, boolean isQualifiedAccess, boolean isListAttribute, YangCompilerAnnotation compilerAnnotation)
importInfo - java qualified type infoattributeName - attribute nameattributeType - attribute typeisQualifiedAccess - is the attribute a qualified accessisListAttribute - is list attributecompilerAnnotation - compiler annotationCopyright © 2016. All rights reserved.