expressionAttrList.setAttribute(META_NAMESPACE, "expert", "false");
expressionAttrList.setAttribute(META_NAMESPACE, "hidden", "false");
expressionAttrList.setAttribute(META_NAMESPACE, "preferred", "false");
writer.writeTag(META_NAMESPACE, "expression", expressionAttrList, XmlWriter.OPEN);
final ExpressionMetaData metaData;
if (ExpressionRegistry.getInstance().isExpressionRegistered(aClass.getName()))
{
metaData = ExpressionRegistry.getInstance().getExpressionMetaData(aClass.getName());
}
else
{
metaData = null;
}
final BeanInfo beanInfo = Introspector.getBeanInfo(aClass);
final PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors();
for (int j = 0; j < descriptors.length; j++)
{
final PropertyDescriptor descriptor = descriptors[j];
final String key = descriptor.getName();
if ("runtime".equals(key))
{
continue;
}
if ("active".equals(key))
{
continue;
}
if ("preserve".equals(key))
{
continue;
}
if (descriptor.getReadMethod() == null || descriptor.getWriteMethod() == null)
{
continue;
}
if (metaData != null)
{
final ExpressionPropertyMetaData data = metaData.getPropertyDescription(descriptor.getName());
if (data != null)
{
continue;
}
}