import org.opendaylight.yangtools.yang.model.api.GroupingDefinition;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.UsesNode;
-import org.opendaylight.yangtools.yang.parser.builder.impl.UnknownSchemaNodeBuilder;
import org.opendaylight.yangtools.yang.parser.util.RefineHolder;
/**
* Interface for builders of 'uses' statement.
*/
-public interface UsesNodeBuilder extends GroupingMember, Builder {
+public interface UsesNodeBuilder extends GroupingMember {
/**
* Get parent of this uses node. Since uses can be defined only under on of
*/
void setGrouping(GroupingBuilder grouping);
+ /**
+ * Get information if this uses node is defined in augment.
+ *
+ * @return true, if this node is defined under augment statement, false
+ * otherwise
+ */
boolean isAugmenting();
+ /**
+ * Set information if this uses node is defined in augment.
+ *
+ * @param augmenting
+ */
void setAugmenting(boolean augmenting);
- AugmentationSchemaBuilder getParentAugment();
-
- void setParentAugment(AugmentationSchemaBuilder augment);
-
/**
* Get augmentations defined in this uses node.
*
*/
UsesNode build();
- /**
- * Get child nodes defined in target grouping.
- *
- * @return set of DataSchemaNodeBuilder objects
- */
- Set<DataSchemaNodeBuilder> getTargetChildren();
-
- /**
- * Get groupings defined in target grouping.
- *
- * @return set of GroupingBuilder objects
- */
- Set<GroupingBuilder> getTargetGroupings();
-
- /**
- * Get type definitions defined in target grouping.
- *
- * @return set of typedefs defined in target grouping
- */
- Set<TypeDefinitionBuilder> getTargetTypedefs();
-
- /**
- * Get unknown nodes defined in target grouping.
- *
- * @return list of unknown nodes defined in target grouping
- */
- List<UnknownSchemaNodeBuilder> getTargetUnknownNodes();
-
- /**
- *
- * @return true, if this object was built based on another UsesNodeBuilder,
- * false otherwise
- */
- boolean isCopy();
-
- /**
- *
- * @return true, if target grouping objects was loaded already, false
- * otherwise
- */
- boolean isDataCollected();
+ boolean isResolved();
- /**
- * Set if target grouping objects was loaded already.
- *
- * @param dataCollected
- */
- void setDataCollected(boolean dataCollected);
+ void setResolved(boolean resolved);
}