This method is not really useful, as its equivalent can easily be
achieved via SchemaContext lookup. Deprecate it for removal.
JIRA: YANGTOOLS-1319
Change-Id: Ia8f04e4843438988c999d966b72cb078b3f905e3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
public interface UnknownSchemaNode extends SchemaNode, CopyableNode,
EffectiveStatementEquivalent<UnknownEffectiveStatement<?, ?>> {
/**
public interface UnknownSchemaNode extends SchemaNode, CopyableNode,
EffectiveStatementEquivalent<UnknownEffectiveStatement<?, ?>> {
/**
- * Returns QName instance with the name of the unknown node.
+ * Returns QName instance with the name of the unknown node. This corresponds to
+ * {@link ExtensionDefinition#getQName()} of the {@code extension} statement which defined it.
*
* @return QName with name the name of the unknown node.
*/
*
* @return QName with name the name of the unknown node.
*/
* Get extension definition which identifies this node.
*
* @return extension definition if exists, null otherwise
* Get extension definition which identifies this node.
*
* @return extension definition if exists, null otherwise
+ * @deprecated This method is can cause cyclic dependencies in the object graph. Use
+ * {@link SchemaContext#getExtensions()} with {@link #getNodeType()} instead.
+ // FIXME: YANGTOOLS-1317: remove this method
+ @Deprecated(forRemoval = true, since = "7.0.8")
ExtensionDefinition getExtensionDefinition();
}
ExtensionDefinition getExtensionDefinition();
}
@Override
public ExtensionDefinition getExtensionDefinition() {
return extension;
@Override
public ExtensionDefinition getExtensionDefinition() {
return extension;