String nodetext = node.getTextContent();
String vis = node.getAttribute(UtilsXML.NAMEATTRIBUTE_VISIBILITY);
if (nodetext != null && !nodetext.isEmpty())
{
ValoreDTO valueDTO = new ValoreDTO(nodetext);
if (vis == null || vis.isEmpty())
{
// check old value
vis = checkOldVisibility(applicationService, rpPD, old,
nodetext, vis);
}
if (vis != null && !vis.isEmpty())
{
valueDTO.setVisibility((Integer.parseInt(vis) == 1 ? true
: false));
}
// ValoreDTO oldValue = checkOldValue(applicationService, rpPD,
// old, nodetext, valueDTO.getVisibility());
// if(oldValue==null) {
values.add(valueDTO);
log.debug("Write text field " + rpPD.getShortName()
+ " with value: " + nodetext + " visibility: "
+ valueDTO.getVisibility());
// }
}
}
}