public void setObjectValue(Object objValue) { soapContent = new ObjectContent(this); soapContent.setObjectValue(objValue); }
SOAPContent transitionTo(State nextState) { SOAPContent next = null; if (nextState == State.XML_VALID) { XMLFragment fragment = marshallObjectContents(); XMLContent xmlValid = new XMLContent(container); xmlValid.setXMLFragment(fragment); next = xmlValid; } else if (nextState == State.OBJECT_VALID) { next = this; } else if (nextState == State.DOM_VALID) { // first transition to XML valid XMLFragment fragment = marshallObjectContents(); XMLContent tmp = new XMLContent(container); tmp.setXMLFragment(fragment); // finally from XML valid to DOM valid next = tmp.transitionTo(State.DOM_VALID); } else { throw new IllegalArgumentException(BundleUtils.getMessage(bundle, "ILLEGAL_STATE_REQUESTED", nextState)); } return next; }
if (objectValue != null) AbstractSerializerFactory serializerFactory = getSerializerFactory(typeMapping, javaType, xmlType); ser = (SerializerSupport)serializerFactory.getSerializer();
SOAPContent objectValid = new ObjectContent(container); objectValid.setObjectValue(obj); next = objectValid;