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; }
public boolean isTypeDef(String name) { Assert.notNull(name, "name"); return typeDefMap.containsKey(name) || (basisFormat != null && basisFormat.isTypeDef(name)); }