@Override
protected void postProcess(ParserContext context, BeanAssembler beanAssembler, Element element)
{
if (beanAssembler instanceof DefaultBeanAssembler)
{
DefaultBeanAssembler assembler = (DefaultBeanAssembler) beanAssembler;
if (assembler.isAnnotationsPropertyAvailable(assembler.getTarget().getBeanClassName()))
{
for (Node node = element.getFirstChild(); node != null; node = node.getNextSibling())
{
if (node.getNodeType() == Node.ELEMENT_NODE)
{
StringBuilder builder = new StringBuilder();
for (Node child = node.getFirstChild(); child != null; child = child.getNextSibling())
{
switch (child.getNodeType())
{
case Node.TEXT_NODE:
case Node.CDATA_SECTION_NODE:
builder.append(child.getNodeValue());
}
}
assembler.addAnnotationValue(context.getContainingBeanDefinition().getPropertyValues(),
new QName(node.getNamespaceURI(), node.getLocalName()),
builder.toString());
}
}
}