package org.opendaylight.yangtools.yang.model.api.type;
import java.util.List;
-
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
-public interface UnionTypeDefinition extends
- TypeDefinition<UnionTypeDefinition> {
+/**
+ * Contains the method which access union item in the union type.
+ */
+public interface UnionTypeDefinition extends TypeDefinition<UnionTypeDefinition> {
- public List<TypeDefinition<?>> getTypes();
+ /**
+ * Returns type definitions which represent the values of the arguments for
+ * all YANG <code>type</code> substatement in the main <code>union</code>
+ * statement.
+ *
+ * @return list of the type definition which contains the union items.
+ */
+ List<TypeDefinition<?>> getTypes();
}