// Collect all general args
Collection argTags = method.getDoc().getTags("spring.validator-args");
for (Iterator argsIterator = argTags.iterator(); argsIterator.hasNext(); ) {
XTag tag = (XTag) argsIterator.next();
Collection attributeNames = tag.getAttributeNames();
for (Iterator attributesIterator = attributeNames.iterator(); attributesIterator.hasNext(); ) {
String name = (String) attributesIterator.next();
if (name.startsWith("arg")) {
args.put(name, tag.getAttributeValue(name));
}
}
}
// Collect all type-specific args
Collection argTypeTags = method.getDoc().getTags("spring.validator");
for (Iterator typeTagsIterator = argTypeTags.iterator(); typeTagsIterator.hasNext(); ) {
XTag tag = (XTag) typeTagsIterator.next();
Collection attributeNames = tag.getAttributeNames();
String type = tag.getAttributeValue("type");
for (Iterator attributesIterator = attributeNames.iterator(); attributesIterator.hasNext(); ) {
String name = (String) attributesIterator.next();
if (name.startsWith("arg")) {
args.put(name + "_" + type, tag.getAttributeValue(name));
}
}
}
}