All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.bluejoe.xmlbeans.writer.NodeCreatorContextImpl Maven / Gradle / Ivy

package cn.bluejoe.xmlbeans.writer;

import java.beans.PropertyDescriptor;

import cn.bluejoe.xmlbeans.node.XmlSerializableNode;
import cn.bluejoe.xmlbeans.node.value.ValueNode;
import cn.bluejoe.xmlbeans.writer.strategy.NoSuitableBeanWritterFormatException;

/**
 * @author [email protected]
 */
public class NodeCreatorContextImpl implements NodeCreatorContext
{
	public BeansWriterContext _beansWriterContext;

	public NodeCreatorContextImpl(BeansWriterContext beansWriterContext)
	{
		_beansWriterContext = beansWriterContext;
	}

	public void addTopBeanNode(Object bean) throws NoSuitableBeanWritterFormatException
	{
		_beansWriterContext.addTopBeanNode(bean);
	}

	public ValueNode createValueNode(XmlSerializableNode parentNode, Object bean)
			throws NoSuitableBeanWritterFormatException
	{
		return _beansWriterContext.createValueNode(parentNode, bean);
	}

	public PropertyDescriptor[] getBeanPropertySelection(Object bean) throws NoSuitableBeanWritterFormatException
	{
		return _beansWriterContext.getBeanPropertySelection(bean);
	}

	public boolean isWriteNullValue()
	{
		return false;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy