public class UnionTemplate extends ClassTemplate
allProperties, consts, enclosedGeneratedTypes, enums, finalProperties, genTO, parentProperties, properties, restrictions
importMap, type
Constructor and Description |
---|
UnionTemplate(GeneratedTransferObject genType)
Creates instance of this class with concrete
genType . |
Modifier and Type | Method and Description |
---|---|
CharSequence |
constructors() |
protected CharSequence |
copyConstructor() |
protected CharSequence |
getterMethod(GeneratedProperty field)
Template method which generates the getter method for
field |
boolean |
isReadOnly(GeneratedProperty field) |
String |
typeBuilder() |
allValuesConstructor, annotationDeclaration, bitsArgs, body, constantsDeclarations, defaultInstance, enumDeclarations, genConstructor, generateAsInnerClass, generateBody, generateClassDeclaration, generateEquals, generateFields, generateGetValueForBitsTypeDef, generateHashCode, generateStaticInitializationBlock, genUnionConstructor, getPropByName, innerClassesDeclarations, parentConstructor, propsAsArgs, suidDeclaration
asArguments, asArgumentsDeclaration, asCode, asJavadoc, asLink, emitConstant, encodeJavadocSymbols, fieldName, findProperty, formatDataForJavaDoc, formatDataForJavaDoc, formatDataForJavaDoc, formatToParagraph, generate, generateParameters, generateToString, getRestrictions, getterMethodName, importedName, importedName, imports, isAccessor, isLocalInnerClass, packageDefinition, propertyNameFromGetter, setterMethod, wrapToDocumentation
public UnionTemplate(GeneratedTransferObject genType)
genType
.genType
- generated transfer object which will be transformed to JAVA class source codepublic CharSequence constructors()
constructors
in class ClassTemplate
public String typeBuilder()
protected CharSequence getterMethod(GeneratedProperty field)
BaseTemplate
field
getterMethod
in class BaseTemplate
field
- generated property with data about field which is generated as the getter methodpublic boolean isReadOnly(GeneratedProperty field)
isReadOnly
in class ClassTemplate
protected CharSequence copyConstructor()
copyConstructor
in class ClassTemplate
Copyright © 2019 OpenDaylight. All rights reserved.