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.AugmentationSchema;
11 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
12 import org.opendaylight.yangtools.yang.model.api.Status;
15 * Interface for builders of 'augment' statement.
17 public interface AugmentationSchemaBuilder extends DataNodeContainerBuilder {
19 String getWhenCondition();
21 void addWhenCondition(String whenCondition);
23 String getDescription();
25 void setDescription(String description);
27 String getReference();
29 void setReference(String reference);
33 void setStatus(Status status);
36 * Get path to target node as single string.
38 * @return path to target node as String
40 String getTargetPathAsString();
43 * Get path to target node.
45 * Note that individual parts of path contain only prefix relative to
46 * current context and name of node.
49 * @return path to target node as SchemaPath
51 SchemaPath getTargetPath();
54 * Get schema path of target node.
56 * @return SchemaPath of target node
58 SchemaPath getTargetNodeSchemaPath();
61 * Set schema path of target node.
64 * SchemaPath of target node
66 void setTargetNodeSchemaPath(SchemaPath path);
68 AugmentationSchema build();
71 * Get information about augmentation process.
73 * @return true, if augmentation process was performed already, false
79 * Set information about augmentation process.
83 void setResolved(boolean resolved);