import java.util.List;
import java.util.Set;
-
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.util.RefineHolder;
/**
- * Interface for builders of 'uses' statement.
+ * Builder for 'uses' statement.
+ *
+ * @deprecated Pre-Beryllium implementation, scheduled for removal.
*/
+@Deprecated
public interface UsesNodeBuilder extends GroupingMember {
/**
* module, container, list, case, grouping, input, output, notification or
* augment, return type is DataNodeContainerBuilder.
*/
+ @Override
DataNodeContainerBuilder getParent();
/**
- * Get grouping path as string.
+ * Get target grouping path.
*
- * @return grouping path as String
+ * @return target grouping path
*/
- String getGroupingPathAsString();
+ SchemaPath getTargetGroupingPath();
/**
* Get grouping path.
/**
* Set information if this uses node is defined in augment.
*
- * @param augmenting
+ * @param augmenting information about augmentation
*/
void setAugmenting(boolean augmenting);
*
* @return list of RefineHolder objects
*/
- List<RefineHolder> getRefines();
+ List<RefineBuilder> getRefines();
/**
* Get refined nodes.
* @param refine
* new RefineHolder object
*/
- void addRefine(RefineHolder refine);
+ void addRefine(RefineBuilder refine);
/**
* Add refine node.
/**
* Build new UsesNode object.
+ *
+ *
+ * @return UsesNode Instance of {@link UsesNode} described by this builder.
*/
+ @Override
UsesNode build();
+ /**
+ *
+ * Returns true if uses node was resolved and {@link #getGroupingBuilder()}
+ * was instantiated for parent done of this node.
+ *
+ * @return true if uses node was resolved and associated nodes were instantiated in parent node.
+ */
boolean isResolved();
+ /**
+ *
+ * Sets state of instantiation of {@link #getGroupingBuilder()}
+ * into parent node of this node.
+ *
+ * @deprecated Do not use this, this should be internal to the implementation
+ * and public API contract.
+ *
+ * @param resolved resolved
+ */
+ @Deprecated
void setResolved(boolean resolved);
}