2 * Copyright (c) 2014 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.common.QName;
11 import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
12 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
13 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
15 public interface UnknownSchemaNodeBuilder extends SchemaNodeBuilder, DocumentedNodeBuilder {
21 * Returns true if node was added via uses statement
23 * @return true if node was added via uses statement
25 boolean isAddedByUses();
28 * Sets flag if node was introduced by uses statement
30 * @param addedByUses true if node was introduced by uses, false otherwise
32 void setAddedByUses(boolean addedByUses);
36 * Returns QName associated with this unknown node.
38 * @return QName associated with this unknown node.
43 * Returns string representation of argument associated with this unknown node.
45 * @return string representation of argument associated with this unknown node.
47 String getNodeParameter();
50 * Sets string representation of argument associated with this unknown node.
51 * @param nodeParameter string representation of argument associated with this unknown node.
53 void setNodeParameter(String nodeParameter);
56 * Returns extension definition, which declares this unknown node
57 * @return extension definition, which declares this unknown node
59 ExtensionDefinition getExtensionDefinition();
62 * Sets extension definition, which declares this unknown node
63 * @param extensionDefinition extension definition, which declares this unknown node
65 void setExtensionDefinition(ExtensionDefinition extensionDefinition);
68 * Returns builder for extension, which declares this unknown node.
70 * @return builder for extension, which declares this unknown node.
72 ExtensionBuilder getExtensionBuilder();
75 * Sets extension builder, which declares this unknown node
78 * extension builder, which declares this unknown node
80 void setExtensionBuilder(ExtensionBuilder extension);
83 UnknownSchemaNode build();
86 * Sets node type associated with this unknown schema node
88 * @param qName node type associated with this unknown schema node
90 void setNodeType(QName qName);