*/
package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.KeyEffectiveStatementImpl;
+import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.KeyEffectiveStatementImpl;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
extends
AbstractStatementSupport<Collection<SchemaNodeIdentifier>, KeyStatement, EffectiveStatement<Collection<SchemaNodeIdentifier>, KeyStatement>> {
- public static final char SEPARATOR = ' ';
-
public Definition() {
super(Rfc6020Mapping.KEY);
}
public Collection<SchemaNodeIdentifier> parseArgumentValue(StmtContext<?, ?, ?> ctx, String value)
throws SourceException {
- Splitter keySplitter = Splitter.on(SEPARATOR).omitEmptyStrings().trimResults();
+ Splitter keySplitter = Splitter.on(StmtContextUtils.LIST_KEY_SEPARATOR).omitEmptyStrings().trimResults();
List<String> keyTokens = keySplitter.splitToList(value);
// to detect if key contains duplicates
for (String keyToken : keyTokens) {
SchemaNodeIdentifier keyNode = SchemaNodeIdentifier
- .create(true, Utils.qNameFromArgument(ctx, keyToken));
+ .create(false, Utils.qNameFromArgument(ctx, keyToken));
keyNodes.add(keyNode);
}