20 package net.sf.gridarta.model.archetypetype;
22 import java.util.Collections;
23 import java.util.HashMap;
24 import java.util.HashSet;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
57 public void put(@NotNull
final String
name, @NotNull
final String value) {
59 throw new IllegalArgumentException(
"empty name");
62 if (value.isEmpty()) {
63 throw new IllegalArgumentException(
"empty value for name '" +
name +
"'");
67 throw new IllegalArgumentException(
"duplicate value '" + value +
"' for name '" +
name +
"'");
77 public Iterable<String>
get(@NotNull
final String
name) {
79 return values ==
null ? null : Collections.unmodifiableCollection(values);