Class InterfaceTemplate
java.lang.Object
org.opendaylight.yangtools.binding.codegen.BaseTemplate
org.opendaylight.yangtools.binding.codegen.InterfaceTemplate
Template for generating JAVA interfaces.
-
Constructor Summary
ConstructorsConstructorDescriptionInterfaceTemplate
(GeneratedType genType) Creates the instance of this class which is used for generating the interface file source code fromgenType
. -
Method Summary
Modifier and TypeMethodDescriptionbody()
Template method which generate the whole body of the interface.protected static Optional
<MethodSignature> getterByName
(Iterable<MethodSignature> methods, String implMethodName) protected static String
propertyNameFromGetter
(String getterName) protected static String
Methods inherited from class org.opendaylight.yangtools.binding.codegen.BaseTemplate
asArguments, asArgumentsDeclaration, asJavadoc, asLink, asNonNullArgumentsDeclaration, checkArgument, emitConstant, formatDataForJavaDoc, formatDataForJavaDoc, formatReference, formatToParagraph, generateAnnotation, generateCheckers, generateParameters, getterMethod, setterMethod, wrapToDocumentation
-
Constructor Details
-
InterfaceTemplate
Creates the instance of this class which is used for generating the interface file source code fromgenType
.- Throws:
NullPointerException
- ifgenType
isnull
-
-
Method Details
-
body
Template method which generate the whole body of the interface.- Returns:
- string with code for interface body in JAVA format
-
generateBindingHashCode
-
generateBindingToString
-
getterByName
protected static Optional<MethodSignature> getterByName(Iterable<MethodSignature> methods, String implMethodName) -
propertyNameFromGetter
-
propertyNameFromGetter
-