Refactored parsing of uses and augment statements.
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / builder / api / AugmentationSchemaBuilder.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.parser.builder.api;
9
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;
13
14 /**
15  * Interface for builders of 'augment' statement.
16  */
17 public interface AugmentationSchemaBuilder extends DataNodeContainerBuilder {
18
19     String getWhenCondition();
20
21     void addWhenCondition(String whenCondition);
22
23     String getDescription();
24
25     void setDescription(String description);
26
27     String getReference();
28
29     void setReference(String reference);
30
31     Status getStatus();
32
33     void setStatus(Status status);
34
35     String getTargetPathAsString();
36
37     SchemaPath getTargetPath();
38
39     void setTargetPath(SchemaPath path);
40
41     AugmentationSchema build();
42
43     boolean isResolved();
44
45     void setResolved(boolean resolved);
46
47 }