X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fbuilder%2Fimpl%2FUnionTypeBuilder.java;h=adb39dce786bd13fb9f3b9ecf204c5dbfc1e7fa1;hb=481a692d463636bbcf75f023da71703913e1b605;hp=9d68c53fb0a18cc2a8fa9d07264ab0e182e3c1e7;hpb=a2a6835fd0618578953744870a7a87bb0b1dbd0e;p=yangtools.git diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/impl/UnionTypeBuilder.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/impl/UnionTypeBuilder.java index 9d68c53fb0..adb39dce78 100644 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/impl/UnionTypeBuilder.java +++ b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/impl/UnionTypeBuilder.java @@ -10,7 +10,6 @@ package org.opendaylight.yangtools.yang.parser.builder.impl; import java.util.ArrayList; import java.util.Collections; import java.util.List; - import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.model.api.SchemaPath; import org.opendaylight.yangtools.yang.model.api.Status; @@ -40,12 +39,23 @@ public final class UnionTypeBuilder extends AbstractTypeAwareBuilder implements private UnionType instance; private boolean isBuilt; + private List baseTypesQNames = new ArrayList<>(); + public UnionTypeBuilder(final String moduleName, final int line) { super(moduleName, line, BaseTypes.UNION_QNAME); types = new ArrayList<>(); typedefs = new ArrayList<>(); } + public List getBaseTypeQNames() { + return baseTypesQNames; + } + + @Override + public void setTypeQName(final QName qname) { + baseTypesQNames.add(qname); + } + public List> getTypes() { return types; }