public class SOAPFaultInfoSerializer extends ObjectSerializerBase implements Initializable
| Modifier and Type | Field and Description |
|---|---|
protected static CombinedSerializer |
_XSDQNameSerializer |
protected static CombinedSerializer |
_XSDStringSerializer |
protected static QName |
DETAIL_QNAME |
protected static QName |
FAULTACTOR_QNAME |
protected static QName |
FAULTCODE_QNAME |
protected static QName |
FAULTSTRING_QNAME |
protected static QName |
SOAPELEMENT_QNAME |
protected static QName |
XSD_QNAME_TYPE_QNAME |
protected static QName |
XSD_STRING_TYPE_QNAME |
encodeType, encodingStyle, isNullable, typeDONT_ENCODE_TYPE, DONT_SERIALIZE_AS_REF, ENCODE_TYPE, NOT_NULLABLE, NOT_REFERENCEABLE, NULLABLE, REFERENCEABLE, REFERENCED_INSTANCE, SERIALIZE_AS_REF, UNREFERENCED_INSTANCE| Constructor and Description |
|---|
SOAPFaultInfoSerializer(boolean encodeType,
boolean isNullable) |
SOAPFaultInfoSerializer(boolean encodeType,
boolean isNullable,
String encodingStyle) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
deserializeDetail(SOAPDeserializationState state,
XMLReader reader,
SOAPDeserializationContext context,
SOAPFaultInfo instance) |
protected Object |
deserializeDetail(XMLReader reader,
SOAPDeserializationContext context) |
Object |
doDeserialize(SOAPDeserializationState state,
XMLReader reader,
SOAPDeserializationContext context)
Deserialize each element coming out of
reader into state with the aid of context |
void |
doSerializeInstance(Object obj,
XMLWriter writer,
SOAPSerializationContext context)
Serialize each data member of
obj into writer with the aid of context |
void |
initialize(InternalTypeMappingRegistry registry)
Allows the implementors to retrieve and cache serializers during
system intialization
|
protected void |
serializeDetail(Object detail,
XMLWriter writer,
SOAPSerializationContext context) |
protected void |
skipRemainingDetailEntries(XMLReader reader) |
deserialize, doSerializeAttributes, registerWithMemberState, serialize, serializeNulldecodeBoolean, deserialize, getEncodeType, getEncodingStyle, getID, getInnermostSerializer, getMechanismType, getName, getNullStatus, getType, getXmlType, isAcceptableType, isNullable, skipEmptyContent, typeIsEmpty, verifyName, verifyTypeprotected static final QName FAULTACTOR_QNAME
protected static final QName XSD_STRING_TYPE_QNAME
protected static final QName XSD_QNAME_TYPE_QNAME
protected static final CombinedSerializer _XSDStringSerializer
protected static final CombinedSerializer _XSDQNameSerializer
protected static final QName FAULTCODE_QNAME
protected static final QName FAULTSTRING_QNAME
protected static final QName DETAIL_QNAME
protected static final QName SOAPELEMENT_QNAME
public SOAPFaultInfoSerializer(boolean encodeType,
boolean isNullable)
public SOAPFaultInfoSerializer(boolean encodeType,
boolean isNullable,
String encodingStyle)
public void initialize(InternalTypeMappingRegistry registry) throws Exception
Initializableinitialize in interface InitializableException - This exception may be
thrown if there is a problem initializingpublic Object doDeserialize(SOAPDeserializationState state, XMLReader reader, SOAPDeserializationContext context) throws Exception
ObjectSerializerBasereader into state with the aid of context
Example:
protected Object doDeserialize(SOAPDeserializationState state, XMLReader reader, SOAPDeserializationContext context)
throws Exception {
Foo instance = new Foo();
Foo_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
elementName = reader.getName();
if (elementName.equals(FooMember_QNAME)) { // check to see if this is the name of the next expected member
member = FooMemberDeserializer.deserialize(FooMember_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new FooMemberBuilder();
}
state = registerWithMemberState(instance, state, member, MEMBER_INDEX, builder); // MEMBER_INDEX is the index of the member within the object
isComplete = false;
} else {
instance.setMember((FooMember)member); // "setMember" is whatever setter is appropriate for the member
}
}
reader.nextElementContent();
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
doDeserialize in class ObjectSerializerBaseExceptionpublic void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception
ObjectSerializerBaseobj into writer with the aid of contextdoSerializeInstance in class ObjectSerializerBaseExceptionprotected Object deserializeDetail(SOAPDeserializationState state, XMLReader reader, SOAPDeserializationContext context, SOAPFaultInfo instance) throws Exception
Exceptionprotected void serializeDetail(Object detail, XMLWriter writer, SOAPSerializationContext context) throws Exception
Exceptionprotected Object deserializeDetail(XMLReader reader, SOAPDeserializationContext context) throws Exception
ExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.