X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FDerivableSchemaNode.java;h=7dd80983ad99e4ff258c12cadc6ca721422b4fc5;hb=76943f2ec79511177e9fddc4c2f4a888ccfb0b09;hp=7dd248cf379e8adc48c78bb580c52e56a4b8b19e;hpb=0f5fb5eca68b21101f7f0f359740958c4c34ef6f;p=yangtools.git diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DerivableSchemaNode.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DerivableSchemaNode.java index 7dd248cf37..7dd80983ad 100644 --- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DerivableSchemaNode.java +++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DerivableSchemaNode.java @@ -1,14 +1,19 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.yangtools.yang.model.api; -import com.google.common.base.Optional; +import java.util.Optional; /** - * Schema Node which may be derived from other schema node - * using augmentation or uses statement. - * + * Schema Node which may be derived from other schema node using augmentation or uses statement. */ +// FIXME: 8.0.0: refactor this interface to take into account CopyableNode and AddedByUsesAware public interface DerivableSchemaNode extends DataSchemaNode { - /** * If this node is added by uses, returns original node definition from * grouping where it was defined. @@ -16,6 +21,6 @@ public interface DerivableSchemaNode extends DataSchemaNode { * @return original node definition from grouping if this node is added by * uses, Optional.absent otherwise */ + // FIXME: 8.0.0: this should be a type capture as it always matches this node's type Optional getOriginal(); - }