Adjust to yangtools-2.0.0 changes
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / main / twirl / org / opendaylight / mdsal / binding / javav2 / generator / impl / yangTemplateWriteFeature.scala.txt
index 1b2376419ae130e71c9528b68d1253dfc6f245e5..2cb553462d6429ba34d2fb4555e2e4eef25d4726 100644 (file)
 
 @(feature: FeatureDefinition)
 feature @{feature.getQName().getLocalName()} {
-    @if(feature.getDescription() != null && !feature.getDescription().isEmpty()) {
-        description "@{feature.getDescription()}";
+    @if(feature.getDescription().isPresent()) {
+        description "@{feature.getDescription().get()}";
     }
-    @if(feature.getReference() != null && !feature.getReference().isEmpty()) {
-        reference "@{feature.getReference()}";
+    @if(feature.getReference().isPresent()) {
+        reference "@{feature.getReference().get()}";
     }
     @if(feature.getStatus() != Status.CURRENT) {
         status @{feature.getStatus()};
     }
-}
\ No newline at end of file
+}