2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.parser.builder.api;
10 import org.opendaylight.yangtools.yang.model.api.*;
13 * Interface for builders of 'augment' statement.
15 public interface AugmentationSchemaBuilder extends DataNodeContainerBuilder {
17 String getWhenCondition();
19 void addWhenCondition(String whenCondition);
21 String getDescription();
23 void setDescription(String description);
25 String getReference();
27 void setReference(String reference);
31 void setStatus(Status status);
34 * Get path to target node as single string.
36 * @return path to target node as String
38 String getTargetPathAsString();
41 * Get path to target node.
43 * Note that individual parts of path contain only prefix relative to
44 * current context and name of node.
47 * @return path to target node as SchemaPath
49 SchemaPath getTargetPath();
52 * Get schema path of target node.
54 * @return SchemaPath of target node
56 SchemaPath getTargetNodeSchemaPath();
59 * Set schema path of target node.
62 * SchemaPath of target node
64 void setTargetNodeSchemaPath(SchemaPath path);
66 AugmentationSchema build();
69 * Get information about augmentation process.
71 * @return true, if augmentation process was performed already, false
77 * Set information about augmentation process.
81 void setResolved(boolean resolved);