int i = ruleEnd;
// First loop is always safe
do
{
MetaRule rule = _rules.get(i);
data = rule.applyRule(entry.getKey(), entry.getValue(), target);
i--;
} while (data == null && i >= 0);
if (data == null)
{
if (log.isLoggable(Level.SEVERE))
{
log.severe(entry.getValue() + " Unhandled by MetaTagHandler for type " + _type.getName());
}
}
else
{
_mappers.add(data);
}
}
}
if (_passthroughAttributes.length > 0 &&
_passthroughRules.size() > 0)
{
if (target == null)
{
target = this._getMetadataTarget();
}
int ruleEnd = _passthroughRules.size() - 1;
// now iterate over attributes
for (TagAttribute passthroughAttribute : _passthroughAttributes)
{
Metadata data = null;
int i = ruleEnd;
// First loop is always safe
do
{
MetaRule rule = _passthroughRules.get(i);
data = rule.applyRule(passthroughAttribute.getLocalName(),
passthroughAttribute, target);
i--;
} while (data == null && i >= 0);
if (data == null)