Remove 'model' from package names in yang-model-parser-impl.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / parser / builder / api / TypeAwareBuilder.java
diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/api/TypeAwareBuilder.java b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/api/TypeAwareBuilder.java
new file mode 100644 (file)
index 0000000..1f4986c
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.yang.parser.builder.api;
+
+import org.opendaylight.controller.yang.model.api.TypeDefinition;
+
+/**
+ * Builders of all nodes, which can have 'type' statement must implement this interface.
+ * [typedef, type, leaf, leaf-list, deviate]
+ */
+public interface TypeAwareBuilder extends Builder {
+
+    TypeDefinition<?> getType();
+
+    TypeDefinitionBuilder getTypedef();
+
+    void setType(TypeDefinition<?> type);
+
+    void setType(TypeDefinitionBuilder typedef);
+
+}