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;
16 * @deprecated Pre-Beryllium implementation, scheduled for removal.
19 public interface UnknownSchemaNodeBuilder extends SchemaNodeBuilder, DocumentedNodeBuilder {
25 * Returns true if node was added via uses statement
27 * @return true if node was added via uses statement
29 boolean isAddedByUses();
32 * Sets flag if node was introduced by uses statement
34 * @param addedByUses true if node was introduced by uses, false otherwise
36 void setAddedByUses(boolean addedByUses);
40 * Returns QName associated with this unknown node.
42 * @return QName associated with this unknown node.
47 * Returns string representation of argument associated with this unknown node.
49 * @return string representation of argument associated with this unknown node.
51 String getNodeParameter();
54 * Sets string representation of argument associated with this unknown node.
55 * @param nodeParameter string representation of argument associated with this unknown node.
57 void setNodeParameter(String nodeParameter);
60 * Returns extension definition, which declares this unknown node
61 * @return extension definition, which declares this unknown node
63 ExtensionDefinition getExtensionDefinition();
66 * Sets extension definition, which declares this unknown node
67 * @param extensionDefinition extension definition, which declares this unknown node
69 void setExtensionDefinition(ExtensionDefinition extensionDefinition);
72 * Returns builder for extension, which declares this unknown node.
74 * @return builder for extension, which declares this unknown node.
76 ExtensionBuilder getExtensionBuilder();
79 * Sets extension builder, which declares this unknown node
82 * extension builder, which declares this unknown node
84 void setExtensionBuilder(ExtensionBuilder extension);
87 UnknownSchemaNode build();
90 * Sets node type associated with this unknown schema node
92 * @param qName node type associated with this unknown schema node
94 void setNodeType(QName qName);