示例#1
0
 public Type getTypeDef(String name) {
   Assert.notNull(name, "name");
   Type type = typeDefMap.get(name);
   if (type == null) {
     type = basisFormat != null ? basisFormat.getTypeDef(name) : null;
   }
   if (type == null) {
     throw new IllegalArgumentException(
         MessageFormat.format("Type definition ''{0}'' not found", name));
   }
   return type;
 }
示例#2
0
 public boolean isTypeDef(String name) {
   Assert.notNull(name, "name");
   return typeDefMap.containsKey(name) || (basisFormat != null && basisFormat.isTypeDef(name));
 }