/**
* create data items from the properties
*/
protected void createDataItems ( final Class<?> targetClazz )
{
try
{
final BeanInfo bi = Introspector.getBeanInfo ( targetClazz );
for ( final PropertyDescriptor pd : bi.getPropertyDescriptors () )
{
final DataItem item = createItem ( pd, targetClazz );
this.items.put ( pd.getName (), item );
final Map<String, Variant> itemAttributes = new HashMap<String, Variant> ();
fillAttributes ( pd, itemAttributes );
this.attributes.put ( pd.getName (), itemAttributes );
initAttribute ( pd );
}
}
catch ( final IntrospectionException e )
{
logger.info ( "Failed to read initial item", e );
}
}
AbstractObjectExporter.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:neoscada
作者:
评论列表
文章目录