attributes.setAttribute(mPlexAttribute, mPlexValue);
}
final AttributeDefinition[] attribDefs = this.factory.getAttributeDefinitions();
final ArrayList properties = new ArrayList();
for (int i = 0; i < attribDefs.length; i++) {
final AttributeDefinition adef = attribDefs[i];
final String pName = adef.getAttributeName();
final Object propValue = this.factory.getProperty(adef.getPropertyName());
if (propValue != null) {
Log.debug(
"Here: " + this.factory.getBaseClass() + " -> " + adef.getPropertyName()
);
final String value = adef.getHandler().toAttributeValue(propValue);
if (value != null) {
attributes.setAttribute(pName, value);
}
}
properties.add(adef.getPropertyName());
}
writer.writeTag(tagName, attributes, false);
writer.startBlock();
final PropertyDefinition[] propertyDefs = this.factory.getPropertyDefinitions();