Bug 8002 - Fixing and cleanup of templates for binding2
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / main / twirl / org / opendaylight / mdsal / binding / javav2 / generator / impl / yangTemplateWriteFeature.scala.txt
index e81e358401d14ffa5fd113270a4c6fb8b3790873..1b2376419ae130e71c9528b68d1253dfc6f245e5 100644 (file)
 * Twirl is transformed to Scala and compiled. Then,       *
 * it can be called from Java with particular input        *
 * parameters to render desired output code.               *
-*                                                         *
-* Note: we should introduce our own format instead of txt *
 ***********************************************************@
 
 @import org.opendaylight.yangtools.yang.model.api.FeatureDefinition
+@import org.opendaylight.yangtools.yang.model.api.Status
 
 @(feature: FeatureDefinition)
 feature @{feature.getQName().getLocalName()} {
@@ -25,7 +24,7 @@ feature @{feature.getQName().getLocalName()} {
     @if(feature.getReference() != null && !feature.getReference().isEmpty()) {
         reference "@{feature.getReference()}";
     }
-    @if(feature.getStatus() != null) {
+    @if(feature.getStatus() != Status.CURRENT) {
         status @{feature.getStatus()};
     }
 }
\ No newline at end of file