* constructed from XML.
* @param newValue node's value or null.
*/
public void setObjectValue(Object newValue) throws SOAPException {
if (children != null && !children.isEmpty()) {
SOAPException exc = new SOAPException(JavaUtils.
getMessage("childPresent"));
log.error(JavaUtils.getMessage("childPresent"), exc);
throw exc;
}
if (elementRep != null) {
SOAPException exc = new SOAPException(JavaUtils.
getMessage("xmlPresent"));
log.error(JavaUtils.getMessage("xmlPresent"), exc);
throw exc;
}
if (textRep != null) {
SOAPException exc = new SOAPException(JavaUtils.
getMessage("xmlPresent"));
log.error(JavaUtils.getMessage("xmlPresent"), exc);
throw exc;
}
this.objectValue = newValue;