2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
3 * This program and the accompanying materials are made available under the
4 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
5 * and is available at http://www.eclipse.org/legal/epl-v10.html
7 package org.opendaylight.yangtools.yang.parser.builder.api;
9 import org.opendaylight.yangtools.yang.common.QName;
10 import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
11 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
12 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
14 public interface UnknownSchemaNodeBuilder extends SchemaNodeBuilder, DocumentedNodeBuilder {
20 * Returns true if node was added via uses statement
22 * @return true if node was added via uses statement
24 boolean isAddedByUses();
27 * Sets flag if node was introduced by uses statement
29 * @param addedByUses true if node was introduced by uses, false otherwise
31 void setAddedByUses(boolean addedByUses);
35 * Returns QName associated with this unknown node.
37 * @return QName associated with this unknown node.
42 * Returns string representation of argument associated with this unknown node.
44 * @return string representation of argument associated with this unknown node.
46 String getNodeParameter();
49 * Sets string representation of argument associated with this unknown node.
50 * @param nodeParameter string representation of argument associated with this unknown node.
52 void setNodeParameter(String nodeParameter);
55 * Returns extension definition, which declares this unknown node
56 * @return extension definition, which declares this unknown node
58 ExtensionDefinition getExtensionDefinition();
61 * Sets extension definition, which declares this unknown node
62 * @param extensionDefinition extension definition, which declares this unknown node
64 void setExtensionDefinition(ExtensionDefinition extensionDefinition);
67 * Returns builder for extension, which declares this unknown node.
69 * @return builder for extension, which declares this unknown node.
71 ExtensionBuilder getExtensionBuilder();
74 * Sets extension builder, which declares this unknown node
75 * @param extensionBuilder extension definition, which declares this unknown node
77 void setExtensionBuilder(ExtensionBuilder extension);
80 UnknownSchemaNode build();
83 * Sets node type associated with this unknown schema node
85 * @param qName node type associated with this unknown schema node
87 void setNodeType(QName qName);