public boolean isMultiple(Object parent, String name) { AccessMethod accessmethod = getAccessMethod(name); if (accessmethod == null) { throw UniversalRuntimeException.accumulate(new PropertyException(), "Property " + name + " of " + targetclass + " not found"); } return accessmethod.isDenumerable(); }
public static AccessMethod findSingleGetter(Class objclass, SAXalizerMappingContext context, String tagname) { MethodAnalyser ma = context.getAnalyser(objclass); AccessMethod method = ma.getAccessMethod(tagname); if (!method.canGet() || method.isDenumerable()) { throw new UniversalRuntimeException( "Located access method of unsuitable type for name " + tagname + " in " + objclass); } return method; }