@Override
protected void doCollect(IDOMElement target, String name, IFile file, INgBindingCollector collector) {
String tagName = target.getTagName();
int index = name.lastIndexOf('.');
if (index != -1) {
String part = name.substring(0, index);
if (ATTR_PROP.equals(part)) {
CMElementDeclaration eltDecl = CMNodeUtil.getElementDeclaration(target);
if (eltDecl != null) {
Iterator it = eltDecl.getAttributes().iterator();
CMAttributeDeclaration attr = null;
while (it.hasNext()) {
attr = (CMAttributeDeclaration) it.next();
collector.collect(name, part + "." + attr.getAttrName(),
null, this);
}
}
}
} else {
DomElementSchemaRegistry.INSTANCE.collectProperty(tagName,
DomElementSchemaRegistry.INSTANCE.getMappedPropName(name), this, collector);
collector.collect(name, ATTR_PROP, formatAttr(ATTR_PROP), this);
collector.collect(name, CLASS_PROP, formatAttr(CLASS_PROP), this);
}
}
}