public void newEnumType(String domainName, String fullName) {
   if (domainName == null) {
     domainName = fullName;
   }
   checkValueTypeName(domainName);
   valueTypes.put(domainName, new EnumValueType(domainName, fullName));
 }
 public void newValueType(String domainName, ValueType valueType) {
   if (domainName == null) {
     domainName = valueType.getFullname();
   }
   valueType.getBaseType().setDomainName(domainName);
   checkValueTypeName(domainName);
   valueTypes.put(domainName, valueType);
 }