use of lucee.runtime.ext.tag.DynamicAttributes in project Lucee by lucee.
the class TagUtil method setAttributes.
public static void setAttributes(PageContext pc, Tag tag, Map<Key, Object> att, int attrType) throws PageException {
Iterator<Entry<Key, Object>> it;
Entry<Key, Object> e;
// TagLibTag tlt=null;
if (TagLibTag.ATTRIBUTE_TYPE_DYNAMIC == attrType) {
DynamicAttributes da = (DynamicAttributes) tag;
it = att.entrySet().iterator();
while (it.hasNext()) {
e = it.next();
da.setDynamicAttribute(null, e.getKey(), e.getValue());
}
} else if (TagLibTag.ATTRIBUTE_TYPE_FIXED == attrType) {
it = att.entrySet().iterator();
while (it.hasNext()) {
e = it.next();
setAttribute(pc, false, true, tag, e.getKey().getLowerString(), e.getValue());
}
} else if (TagLibTag.ATTRIBUTE_TYPE_MIXED == attrType) {
it = att.entrySet().iterator();
while (it.hasNext()) {
e = it.next();
setAttribute(pc, true, true, tag, e.getKey().getLowerString(), e.getValue());
}
}
}
Aggregations