private static final QName READABLE_QNAME = new QName("", READABLE);
private static final QName WRITABLE_QNAME = new QName("", WRITEABLE);
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException
{
RoleInfo roleInfo = (RoleInfo)value;
context.startElement(name, attributes);
context.serialize(MAX_DEGREE_QNAME, null, new Integer(roleInfo.getMaxDegree()));
context.serialize(MIN_DEGREE_QNAME, null, new Integer(roleInfo.getMaxDegree()));
context.serialize(NAME_QNAME, null, roleInfo.getName());
context.serialize(DESCRIPTION_QNAME, null, roleInfo.getDescription());
context.serialize(REF_MBEAN_CLASS_NAME_QNAME, null, roleInfo.getRefMBeanClassName());
context.serialize(READABLE_QNAME, null, roleInfo.isReadable() ? Boolean.TRUE : Boolean.FALSE);
context.serialize(WRITABLE_QNAME, null, roleInfo.isWritable() ? Boolean.TRUE : Boolean.FALSE);
context.endElement();
}