Add DataSchemaNode.effectiveConfig()
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / EffectiveStmtCtx.java
index 6b0b7d544b14362c787c442001540ab0869c4da1..db76b1cbdeefb5fb6ce339a0cfdf3b7a5912e0de 100644 (file)
@@ -78,23 +78,13 @@ public interface EffectiveStmtCtx extends CommonStmtCtx, StmtContextCompat, Immu
             }
 
             /**
-             * Return this value as a legacy boolean for use with {@link DataSchemaNode#isConfiguration()}.
+             * Return this value as a {@link Boolean} for use with {@link DataSchemaNode#effectiveConfig()}.
              *
-             * @return A simple boolean
-             * @deprecated This method is only for transition and should be eliminated once DataSchemaNode is fixed.
+             * @return A boolean or null
              */
-            @Deprecated
-            public boolean asLegacy() {
-                return config == null || config;
-            }
-
             public @Nullable Boolean asNullable() {
                 return config;
             }
-
-            public Optional<Boolean> asOptional() {
-                return Optional.ofNullable(config);
-            }
         }
 
         /**